Zenny writes: > Here it comes: > > org-latex-pdf-process is a variable defined in ‘ox-latex.el’. > > Its value is > ("pdflatex -interaction nonstopmode -output-directory %o %f" > "bibtex %b" "pdflatex -shell-escape -interaction nonstopmode - > output-directory %o %f" "pdflatex -shell-escape -interaction > nonstopmode -output-directory %o %f") > Original value was > ("latexmk -f -pdf -%latex -interaction=nonstopmode - > output-directory=%o %f")
It seems that you have modified the original value. Besides, the docstring says: [...] %latex is the LaTeX compiler (see ‘org-latex-compiler’) [...] If you put 'pdflatex ...', it will always compile with pdflatex. I would recommend that you restore the original value of org-latex-pdf-process, which uses latexmk (if it is installed, which seems to be your case), which executes '%latex' (= `org-latex-compiler'). latexmk is a perl script included in texlive that is responsible for executing all the necessary compilations (including the call to the bibliographic engine[1]). [1] In some cases some configuration is required for latexmk via a ~/latexmkrc file, but by default everything should work fine.