From 4ccab5440a3bc2b8878c1d723835be897bcda6ec Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 27 Dec 2020 17:02:18 +0100 Subject: [PATCH] [Emacs] Run bibtex when exporting org to latex --- org/config/emacs.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org/config/emacs.org b/org/config/emacs.org index f2795c3..0350ed3 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -2914,11 +2914,12 @@ By the way, reference links in LaTeX should be written in this format: (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. +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. Don’t forget to also run bibtex! #+NAME: org-latex-pdf-process #+BEGIN_SRC emacs-lisp (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")) #+END_SRC