mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2024-12-22 20:49:04 +00:00
use correct backend
This commit is contained in:
parent
174c645594
commit
36cd273cbe
1 changed files with 4 additions and 4 deletions
|
@ -18,17 +18,17 @@
|
|||
|
||||
(copy-file (concat cwd "doc/smile.png") workdir)
|
||||
|
||||
(defun export-latex (file)
|
||||
(defun export-latex (backend file)
|
||||
(let ((workfile (concat workdir file))
|
||||
(outfile (concat workdir file ".tex")))
|
||||
(message (format "%s exists: %s" workfile (file-exists-p workfile)))
|
||||
(find-file workfile)
|
||||
(org-mode)
|
||||
(org-export-to-file 'altacv outfile)
|
||||
(org-export-to-file backend outfile)
|
||||
(shell-command (format "pdflatex %s" outfile))
|
||||
(copy-file (concat file ".pdf") cwd)
|
||||
))
|
||||
|
||||
(export-latex "altacv.org")
|
||||
(export-latex "moderncv.org")
|
||||
(export-latex 'altacv "altacv.org")
|
||||
(export-latex 'moderncv "moderncv.org")
|
||||
(copy-directory workdir cwd)
|
||||
|
|
Loading…
Reference in a new issue