[Emacs] Switch from XeTeX to Tectonic

This commit is contained in:
Lucien Cartier-Tilet 2022-10-04 13:01:05 +02:00
parent 2ac463bf17
commit d87719a476
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -5026,7 +5026,6 @@ packages:
(delete package org-latex-default-packages-alist)) (delete package org-latex-default-packages-alist))
(dolist (package '(("capitalize" "cleveref") (dolist (package '(("capitalize" "cleveref")
("" "svg")
("" "booktabs") ("" "booktabs")
("" "tabularx"))) ("" "tabularx")))
(add-to-list 'org-latex-default-packages-alist package t)) (add-to-list 'org-latex-default-packages-alist package t))
@ -5041,16 +5040,12 @@ since we are using ~cleveref~:
(setq org-export-latex-hyperref-format "\\ref{%s}") (setq org-export-latex-hyperref-format "\\ref{%s}")
#+END_SRC #+END_SRC
When it comes to the export itself, the latex file needs to be [[https://tectonic-typesetting.github.io/en-US/][Tectonic]] is awesome for processing LaTeX documents! Look how simple it
processed several times through XeLaTeX in order to get some is!
references right. Dont forget to also run bibtex!
#+NAME: org-latex-pdf-process #+NAME: org-latex-pdf-process
#+BEGIN_SRC emacs-lisp :tangle no #+BEGIN_SRC emacs-lisp :tangle no
(setq org-latex-pdf-process (setq org-latex-pdf-process
'("xelatex -8bit -shell-escape -interaction nonstopmode -output-directory %o %f" '("tectonic -Z shell-escape --synctex --outdir=%o %f"))
"bibtex %b"
"xelatex -8bit -shell-escape -interaction nonstopmode -output-directory %o %f"
"xelatex -8bit -shell-escape -interaction nonstopmode -output-directory %o %f"))
#+END_SRC #+END_SRC
Finally, org-mode is supposed to automatically clean logfiles after it Finally, org-mode is supposed to automatically clean logfiles after it