mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2024-12-22 04:29:04 +00:00
Update alta & modern to use new date and host properties
This commit is contained in:
parent
4ac644cc34
commit
eae0b9a789
2 changed files with 8 additions and 12 deletions
12
ox-altacv.el
12
ox-altacv.el
|
@ -37,7 +37,7 @@
|
|||
(add-to-list 'org-latex-classes
|
||||
'("altacv"
|
||||
"\\documentclass{altacv}"
|
||||
("\\section{%s}" . "\\section*{%s}")
|
||||
("\n\\section{%s}" . "\n\\section*{%s}")
|
||||
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
|
||||
|
||||
|
@ -83,8 +83,7 @@
|
|||
colorlinks=true,
|
||||
urlcolor=olive!50!black!30!green,
|
||||
}
|
||||
"
|
||||
)
|
||||
")
|
||||
;;;; Template
|
||||
;;
|
||||
;; Template used is similar to the one used in `latex' back-end,
|
||||
|
@ -195,11 +194,10 @@ CONTENTS holds the contents of the headline. INFO is a plist used
|
|||
as a communication channel."
|
||||
(let* ((entry (org-cv-utils--parse-cventry headline info))
|
||||
(divider (if (org-export-last-sibling-p headline info) "\n" "\\divider")))
|
||||
(format "\n\\cvevent{%s}{%s}{%s}{%s}%s\n%s"
|
||||
(format "\n\\cvevent{%s}{%s}{%s}{%s}%s\n%s\n\n"
|
||||
(alist-get 'title entry)
|
||||
(alist-get 'employer entry)
|
||||
(org-cv-utils--format-time-window (alist-get 'from-date entry)
|
||||
(alist-get 'to-date entry))
|
||||
(alist-get 'host entry)
|
||||
(alist-get 'date entry)
|
||||
(alist-get 'location entry) contents divider)))
|
||||
|
||||
;;;; Headline
|
||||
|
|
|
@ -185,12 +185,10 @@ CONTENTS holds the contents of the headline. INFO is a plist used
|
|||
as a communication channel."
|
||||
(let* ((entry (org-cv-utils--parse-cventry headline info))
|
||||
(note (or (org-element-property :NOTE headline) "")))
|
||||
|
||||
(format "\\cventry{\\textbf{%s}}{%s}{%s}{%s}{%s}{%s}\n"
|
||||
(org-cv-utils--format-time-window (alist-get 'from-date entry)
|
||||
(alist-get 'to-date entry))
|
||||
(format "\\cventry{%s}{%s}{%s}{%s}{%s}{%s}\n"
|
||||
(alist-get 'date entry)
|
||||
(alist-get 'title entry)
|
||||
(alist-get 'employer entry)
|
||||
(alist-get 'host entry)
|
||||
(alist-get 'location entry)
|
||||
note contents)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue