From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iBcRBB7+vGDBuAAAgWs5BA (envelope-from ) for ; Sun, 06 Jun 2021 18:55:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ABToOh3+vGB3ewAAB5/wlQ (envelope-from ) for ; Sun, 06 Jun 2021 16:55:57 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 756A6BDE9 for ; Sun, 6 Jun 2021 18:55:57 +0200 (CEST) Received: from localhost ([::1]:54008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpw44-0006C3-Ga for larch@yhetil.org; Sun, 06 Jun 2021 12:55:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpw3V-0006Be-7f for emacs-orgmode@gnu.org; Sun, 06 Jun 2021 12:55:21 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:40658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpw3M-0004U6-CU for emacs-orgmode@gnu.org; Sun, 06 Jun 2021 12:55:18 -0400 Received: by mail-pg1-x52a.google.com with SMTP id j12so11968641pgh.7 for ; Sun, 06 Jun 2021 09:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:message-id:date:mime-version; bh=7jxbdkU0dptMKe9KnnxZYMgADtWK/ksVsSluQz+TdJg=; b=ELedk5VUL0t1aBbS3GH/W7eBghWuMsFjXcOS/xzrjXCRnMwMBqhiSuHYRmNxint9B6 KedrJIZcJnf50DK8/gSGEbJ+OnBk9/mK/OtLVZcuPCC3x/0NAZXpRhzO/OsAUs1szypc X77aBmJM8IQl4ujzTuIeqB54eXHGOETH5u1re2551z+7c2TO1cilba4gb+YuxTqbiiLB TGUGFgPSkmenN93n+4OLy3LUq1Lsesmy4Uk+X+FSwlck7T7Afy8l4tLSDWwupvCs6m9F YCIC1PwJ0nhglJzq0BJUpVertswbHKb4p5Wv79UvamZfbsl04JGa16RwxIIO5AVSNjO/ kK+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:message-id:date :mime-version; bh=7jxbdkU0dptMKe9KnnxZYMgADtWK/ksVsSluQz+TdJg=; b=RGTA1nfilmq3RPb32X1SrarcDJODCDtq/jna/Q3GYfr55+m1HYd8649gKU0teNhgm/ ozpz8m3/tFWYeWQ3QdBdvWCvAGNPWmoWIMkZhoupR/6282LxLFL02Cl0/VcnFAMS9ks9 ZViX2QZEQL/qcWAle8l03i7J3+OywEvKauviUatSSvMvMWrfYVCCiciwk5Xcso9UKsQ8 mfBHEgq8zFX86XDLso/l1SHf21jZO08HonICMzPR32DAD+WIvaF4i9H0robK3ee9jBJE lF4XccDYB9X+8WGtXE8xIWLbCjdRp9fWdhjeyvWvgzc7Kzc3YgQgjvE+WxFoThFaWbOY 49eA== X-Gm-Message-State: AOAM533VJ3Zfh+UtxJl/I+ZfKTnlVBOdnHmnlRqX8GoK+5yvc7FXkIt0 jGuCm636KYVo8hZPvkEM7fNPKMq2HPA= X-Google-Smtp-Source: ABdhPJwUrBL4Cl7qFM5rCFozjYkgQ7vph+kozIfx2wHkgWrY6hxKmBpnWow4uWF0zBhlycA9CMM2aw== X-Received: by 2002:a63:9515:: with SMTP id p21mr12661498pgd.333.1622998507981; Sun, 06 Jun 2021 09:55:07 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id j16sm9505529pjn.55.2021.06.06.09.55.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 09:55:07 -0700 (PDT) User-agent: mu4e 1.4.15; emacs 28.0.50 From: Timothy To: org-mode-email Subject: [PATCH] Change default latex compiler to latexmk Message-ID: <87sg1v3pco.fsf@gmail.com> Date: Mon, 07 Jun 2021 00:55:03 +0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x52a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622998557; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7jxbdkU0dptMKe9KnnxZYMgADtWK/ksVsSluQz+TdJg=; b=vBrQL0Of1Vi+E7nS7Xuj6gbnS8HSEoUYpXHlL18hXO0+S5hkb/s8pKcZwOT1justouc+dG ASd9qISr87hMZAELLzDaREwdCAdEPbDa3iL8y6S0e/HtiJfHBPVqtTvV1dBlACR8XMemL8 rN9hjtQQ/YHs/vE4E6hIl2PyIdPPOnXjU8hsomIbEuh3TzjnQqXbMdD0Su/0LH3xenqQmH 4XPcZAJFRDZnCszpiScKDTADwrBeBtEVczeGcl1Bt/M/mNDH9aSBBmH4SNd4CWLe0xvBDj SV7aqDX+dh5AtgIKFlXshDklIJlnkUWzx3PMuiyX+n2r5Z5c1H0ly5gYzGQjGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622998557; a=rsa-sha256; cv=none; b=mc+/ZSh0HjKD9gjg7l2YPi1ZW8ef4Tq+MZDqqMhBdkK88Njc98Ujd+05AalzWBKA+homKt 3xBUC1A4is6Ci+zQ752/TkZRYo9XmWMwuw7JptzzCNk0AoKpBmK2iO/CFptQemgt6Y+LPy 0HTyIePoB+kymkwLv8My7CsZzaDDNNDN4CbxB10lFWmboAEuft5GWJ3SE0SH5Qwxv6YloL LNtKiuCf5sl8F5JxMF3TIuEUlFr0ZV1ilV8D2BZ7RNANE6Zi+Sdu2QLd3jFseruXkbinFW 2EM4HPfZMfqMU8m1Zbk7pOhYP+CzDP9F6MGlC4DcweJvVk4AiNpyjP1eiLHEng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ELedk5VU; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ELedk5VU; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 756A6BDE9 X-Spam-Score: -3.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: UmClStHA5AVV --=-=-= Content-Type: text/plain Hey all, >From the earlier discussion on this, I got feeling a consensus had reached that this is a good idea, as long as we check that latexmk is available first. As such, here is a patch changing the default LaTeX compiler to latexmk --- as long as it's available. For what it's worth I've been using this exact command in my personal config for months now, and it's worked excellently. -- Timothy --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ox-latex-Change-default-compiler-to-latexmk.patch >From 95806243e40d5f9f19a8db71e2b8b0cd0c5fdb68 Mon Sep 17 00:00:00 2001 From: TEC Date: Mon, 7 Jun 2021 00:46:09 +0800 Subject: [PATCH] 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 9724b0d87..c761cfd7f 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -1165,9 +1165,11 @@ (defcustom org-latex-bib-compiler "bibtex" :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 @@ -1211,7 +1213,7 @@ (defcustom org-latex-pdf-process (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 -- 2.31.1 --=-=-=--