mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2024-11-23 14:38:35 +00:00
ox-hugo uses dash
And more debugging
This commit is contained in:
parent
eae0b9a789
commit
c3e111b18e
2 changed files with 9 additions and 4 deletions
12
genfiles.el
12
genfiles.el
|
@ -1,7 +1,7 @@
|
||||||
(defvar cv-cwd default-directory
|
(defvar cv-cwd default-directory
|
||||||
"remember the current directory, find-file changes it")
|
"remember the current directory, find-file changes it")
|
||||||
(defvar cv-workdir "/tmp/org-cv-exports/")
|
(defvar cv-workdir "/tmp/org-cv-exports/")
|
||||||
|
(toggle-debug-on-error)
|
||||||
(with-current-buffer (find-file-noselect "/tmp/install-org.el")
|
(with-current-buffer (find-file-noselect "/tmp/install-org.el")
|
||||||
(eval-buffer))
|
(eval-buffer))
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
(use-package ox-moderncv
|
(use-package ox-moderncv
|
||||||
:load-path cv-cwd
|
:load-path cv-cwd
|
||||||
|
:ensure dash
|
||||||
:init
|
:init
|
||||||
(require 'ox-moderncv)
|
|
||||||
(require 'ox-altacv)
|
(require 'ox-altacv)
|
||||||
(require 'ox-hugocv)
|
(require 'ox-hugocv)
|
||||||
(require 'ox-awesomecv))
|
(require 'ox-awesomecv))
|
||||||
|
@ -26,8 +26,11 @@
|
||||||
(with-current-buffer
|
(with-current-buffer
|
||||||
(find-file-noselect workfile)
|
(find-file-noselect workfile)
|
||||||
(org-mode)
|
(org-mode)
|
||||||
|
(message "back %S, out %S" backend outfile)
|
||||||
(org-export-to-file backend outfile)
|
(org-export-to-file backend outfile)
|
||||||
(shell-command (format "lualatex %s" outfile) "*Messages*" "*Messages*")
|
(message (format "%s exists: %s" outfile (file-exists-p outfile)))
|
||||||
|
(shell-command (format "xelatex --output-directory=%s %s" cv-workdir outfile) "*Messages*" "*Messages*")
|
||||||
|
(message (format "%s exists: %s" pdffile (file-exists-p pdffile)))
|
||||||
(copy-file pdffile (concat cv-cwd "/doc/static/" (concat file ".pdf")) t))))
|
(copy-file pdffile (concat cv-cwd "/doc/static/" (concat file ".pdf")) t))))
|
||||||
|
|
||||||
(let ((readme (concat cv-cwd "readme.org")))
|
(let ((readme (concat cv-cwd "readme.org")))
|
||||||
|
@ -39,7 +42,8 @@
|
||||||
|
|
||||||
(copy-file (concat cv-cwd "doc/smile.png") cv-workdir t)
|
(copy-file (concat cv-cwd "doc/smile.png") cv-workdir t)
|
||||||
(make-directory (concat cv-cwd "/doc/static/") t)
|
(make-directory (concat cv-cwd "/doc/static/") t)
|
||||||
(export-latex 'altacv "altacv.org")
|
(message "alta %s" (featurep 'ox-altacv))
|
||||||
(export-latex 'moderncv "moderncv.org")
|
(export-latex 'moderncv "moderncv.org")
|
||||||
|
(export-latex 'altacv "altacv.org")
|
||||||
(export-latex 'awesomecv "awesomecv.org")
|
(export-latex 'awesomecv "awesomecv.org")
|
||||||
(export-latex 'awesomecv "awesome-letter.org")
|
(export-latex 'awesomecv "awesome-letter.org")
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
;;; ox-hugocv.el --- LaTeX hugocv Back-End for Org Export Engine -*- lexical-binding: t; -*-
|
;;; ox-hugocv.el --- LaTeX hugocv Back-End for Org Export Engine -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
;; Package-Requires: ((dash "2.19.1"))
|
||||||
;; Copyright (C) 2018 Free Software Foundation, Inc.
|
;; Copyright (C) 2018 Free Software Foundation, Inc.
|
||||||
|
|
||||||
;; Author: Oscar Najera <hi AT oscarnajera.com DOT com>
|
;; Author: Oscar Najera <hi AT oscarnajera.com DOT com>
|
||||||
|
|
Loading…
Reference in a new issue