mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2025-04-17 02:39:29 +00:00
altacv: Support :cvsection: tag on headers
This means a fork of AltaCV doesn't need to be used anymore
This commit is contained in:
parent
1d73bde623
commit
f07dc8571a
1 changed files with 12 additions and 0 deletions
12
ox-altacv.el
12
ox-altacv.el
|
@ -213,6 +213,16 @@ as a communication channel."
|
|||
(alist-get 'date entry)
|
||||
(alist-get 'location entry) contents divider)))
|
||||
|
||||
(defun org-altacv--format-cvsection (headline contents info)
|
||||
"Format HEADLINE as as cvsection.
|
||||
CONTENTS holds the contents of the headline. INFO is a plist used
|
||||
as a communication channel."
|
||||
(let* ((divider (if (org-export-last-sibling-p headline info) "\n" "\\divider")))
|
||||
(format "\n\\cvsection{%s}%s"
|
||||
(car (org-element-property :title headline))
|
||||
contents)))
|
||||
|
||||
|
||||
;;;; Headline
|
||||
(defun org-altacv-headline (headline contents info)
|
||||
"Transcode HEADLINE element into altacv code.
|
||||
|
@ -225,6 +235,8 @@ as a communication channel."
|
|||
;; is a cv entry
|
||||
((member "cventry" environment)
|
||||
(org-altacv--format-cventry headline contents info))
|
||||
((member "cvsection" environment)
|
||||
(org-altacv--format-cvsection headline contents info))
|
||||
((org-export-with-backend 'latex headline contents info))))))
|
||||
|
||||
(provide 'ox-altacv)
|
||||
|
|
Loading…
Add table
Reference in a new issue