emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 32739e3: ox-latex: Change default compiler to latex


From: ELPA Syncer
Subject: [elpa] externals/org 32739e3: ox-latex: Change default compiler to latexmk
Date: Fri, 9 Jul 2021 12:57:13 -0400 (EDT)

branch: externals/org
commit 32739e35e3da37ea8eddaf8c65abc5c1b442a2e5
Author: TEC <tec@tecosaur.com>
Commit: TEC <tec@tecosaur.com>

    ox-latex: Change default compiler to latexmk
    
    * lisp/ox-latex.el (org-latex-pdf-process): Check for the presence of
    latexmk when setting the default, and use it when available.  Fall back
    to the current default.  This is important for the incoming citation
    support, as PDF generation will now need to involve bibliography
    generation.  By using latexmk this is taken care of for us.  The -%latex
    part of the command is slightly hacky, but allows latexmk to behave more
    intelligently for non-pdflatex options.  Note that latexmk also seems to
    care about the order of the arguments.
---
 lisp/ox-latex.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index c878013..1dca628 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1180,9 +1180,11 @@ A better approach is to use a compiler suit such as 
`latexmk'."
   :package-version '(Org . "9.0"))
 
 (defcustom org-latex-pdf-process
-  '("%latex -interaction nonstopmode -output-directory %o %f"
-    "%latex -interaction nonstopmode -output-directory %o %f"
-    "%latex -interaction nonstopmode -output-directory %o %f")
+  (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.
 
 This is a list of strings, each of them will be given to the
@@ -1226,7 +1228,7 @@ file name as its single argument."
          (const :tag "texi2dvi"
                 ("cd %o; LATEX=\"%latex\" texi2dvi -p -b -V %b.tex"))
          (const :tag "latexmk"
-                ("latexmk -g -pdf -pdflatex=\"%latex\" -outdir=%o %f"))
+                ("latexmk -f -pdf -%latex -interaction=nonstopmode 
-output-directory=%o %f"))
          (function)))
 
 (defcustom org-latex-logfiles-extensions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]