[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
1 changed files with 3 additions and 8 deletions

View File

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