On Thu, Sep 21, 2023 at 9:32 PM Juan Manuel Macías wrote: > 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]). > When I checked the `ox-latex.el` it appears using latexmk (defcustom org-latex-pdf-process > (if (executable-find "latexmk") > '("latexmk -f -pdf -%latex -interaction=nonstopmode > -output-directory=%o %f") > '("%latex -interaction nonstopmode -output-directory %o %f" > "%latex -interaction nonstopmode -output-directory %o %f" > "%latex -interaction nonstopmode -output-directory %o %f")) > "Commands to process a LaTeX file to a PDF file. > And latexmk is already installed by texlive: $ which latexmk > /opt/texlive/2023/bin/x86_64-linux/latexmk > Or do you mean to change latexmk in init.el? Thanks! > > [1] In some cases some configuration is required for latexmk via a > ~/latexmkrc file, but by default everything should work fine. > > > -- Cheers, /z -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-. CONFIDENTIALITY NOTICE AND DISCLAIMER: Access to this e-mail and its contents by anyone other than the intended recipient is unauthorized as it contains privileged and confidential information, and is subject to legal privilege. Please do not re/distribute it. If you are not the intended recipient (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver the email and part of its contents to anyone this message (or any part of its contents or take any action in connection to it. In such case, you should destroy this message, and notify the sender immediately. If you have received this email in error, please notify the sender or your sysadmin immediately by e-mail or telephone, and delete the e-mail from any computer. If you or your employer does not consent to internet e-mail messages of this kind, please notify the sender immediately. All reasonable precautions have been taken to ensure no viruses are present in this e-mail and attachments included. As the sender cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments it is recommended that you are responsible to follow your virus checking procedures prior to use. The views, opinions, conclusions and other informations expressed in this electronic mail are not given or endorsed by any company including the network providers unless otherwise indicated by an authorized representative independent of this message. -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.