mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2024-12-03 11:28:34 +00:00
Added support for PAGEBREAK attribute in headings in the AwesomeCV exporter.
This commit is contained in:
parent
de6feffebe
commit
c9ddf59080
3 changed files with 19 additions and 12 deletions
|
@ -143,6 +143,8 @@ these support additional property fields:
|
|||
| | to the entry. |
|
||||
| RIGHT\_IMG | path to an image to include floating to the right of a `cventry`, |
|
||||
| | a `cvsubentry` or `cvschool` entry. Meant to be used to show a logo. |
|
||||
| PAGEBREAK | Causes a LaTeX `\clearpage` statement to be inserted in the |
|
||||
| | exported output before the heading. |
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -283,18 +283,21 @@ CONTENTS is the contents of the headline. INFO is a plist used
|
|||
as a communication channel."
|
||||
(unless (org-element-property :footnote-section-p headline)
|
||||
(let ((environment (let ((env (org-element-property :CV_ENV headline)))
|
||||
(or (org-string-nw-p env) "block"))))
|
||||
(cond
|
||||
;; is a cv entry or subentry
|
||||
((or (string= environment "cventry")
|
||||
(string= environment "cvsubentry")
|
||||
(string= environment "cvemployer")
|
||||
(string= environment "cvschool")
|
||||
(string= environment "cvhonor"))
|
||||
(org-awesomecv--format-cventry headline contents info))
|
||||
((or (string= environment "cventries") (string= environment "cvhonors"))
|
||||
(org-awesomecv--format-cvenvironment environment headline contents info))
|
||||
((org-export-with-backend 'latex headline contents info))))))
|
||||
(or (org-string-nw-p env) "block")))
|
||||
(pagebreak (org-string-nw-p (org-element-property :PAGEBREAK headline))))
|
||||
(concat
|
||||
(when pagebreak "\\clearpage\n")
|
||||
(cond
|
||||
;; is a cv entry or subentry
|
||||
((or (string= environment "cventry")
|
||||
(string= environment "cvsubentry")
|
||||
(string= environment "cvemployer")
|
||||
(string= environment "cvschool")
|
||||
(string= environment "cvhonor"))
|
||||
(org-awesomecv--format-cventry headline contents info))
|
||||
((or (string= environment "cventries") (string= environment "cvhonors"))
|
||||
(org-awesomecv--format-cvenvironment environment headline contents info))
|
||||
((org-export-with-backend 'latex headline contents info)))))))
|
||||
|
||||
;;;; Plain List, to intercept and transform "cvskills" lists
|
||||
|
||||
|
|
|
@ -256,6 +256,8 @@ these support additional property fields:
|
|||
| | to the entry. |
|
||||
| RIGHT_IMG | path to an image to include floating to the right of a =cventry=, |
|
||||
| | a =cvsubentry= or =cvschool= entry. Meant to be used to show a logo. |
|
||||
| PAGEBREAK | Causes a LaTeX =\clearpage= statement to be inserted in the |
|
||||
| | exported output before the heading. |
|
||||
|
||||
All the supported values of =CV_ENV= are described below.
|
||||
|
||||
|
|
Loading…
Reference in a new issue