2018-03-22 17:04:26 +00:00
|
|
|
(require 'cl-lib)
|
|
|
|
(require 'ox-latex)
|
|
|
|
|
|
|
|
;; Install a default set-up for Beamer export.
|
|
|
|
(unless (assoc "orgcv" org-latex-classes)
|
|
|
|
(add-to-list 'org-latex-classes
|
|
|
|
'("orgcv"
|
|
|
|
"\\documentclass{moderncv}"
|
|
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
|
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
|
|
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
|
|
|
|
|
|
|
|
|
|
|
|
;;; User-Configurable Variables
|
|
|
|
|
|
|
|
(defgroup org-export-cv nil
|
|
|
|
"Options specific for using the moderncv class in LaTeX export."
|
|
|
|
:tag "Org moderncv"
|
|
|
|
:group 'org-export
|
|
|
|
:version "25.3")
|
2018-03-22 17:23:22 +00:00
|
|
|
|
|
|
|
;;; Define Back-End
|
|
|
|
(org-export-define-derived-backend 'orgcv 'latex)
|