From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kEIfItE8AmC8fQAA0tVLHw (envelope-from ) for ; Sat, 16 Jan 2021 01:09:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +EDvHdE8AmBSDwAAB5/wlQ (envelope-from ) for ; Sat, 16 Jan 2021 01:09:37 +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 EF7A294038E for ; Sat, 16 Jan 2021 01:09:36 +0000 (UTC) Received: from localhost ([::1]:35766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0a5u-00024W-L7 for larch@yhetil.org; Fri, 15 Jan 2021 20:09:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0Wqd-0000LE-JC for emacs-orgmode@gnu.org; Fri, 15 Jan 2021 16:41:35 -0500 Received: from static.136.107.69.159.clients.your-server.de ([159.69.107.136]:51222) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0Wqb-0000EI-DQ for emacs-orgmode@gnu.org; Fri, 15 Jan 2021 16:41:35 -0500 Received: from localhost (55d4bbc9.access.ecotel.net [85.212.187.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by static.136.107.69.159.clients.your-server.de (Postfix) with ESMTPSA id 299DCC0AC2 for ; Fri, 15 Jan 2021 22:39:45 +0100 (CET) From: Tara Lorenz To: emacs-orgmode@gnu.org Subject: [PATCH] ox-latex.el: fix interpretation of org-latex-pdf-process Date: Fri, 15 Jan 2021 22:41:21 +0100 Message-ID: <87h7nh3mke.fsf@terralonza.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=159.69.107.136; envelope-from=tara@terralonza.de; helo=static.136.107.69.159.clients.your-server.de X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.1 / 5.0 requ) BAYES_00=-1.9, HELO_DYNAMIC_IPADDR=1.951, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 15 Jan 2021 20:08:46 -0500 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 X-Migadu-Spam-Score: -4.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: EF7A294038E X-Spam-Score: -4.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: N19ojEk2AjHJ --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi all, it seems that the documentation and code for `org-latex-pdf-process' are out of sync: Where the documentation mentions "%bib" the code expects "%bibtex". At least, that's how i understand it. I resolved that confusing situation by making "%bib" and "%bibtex" equally accepted, without touching the documentation. Thus, old configurations work again ("%bib") as well as workarounds (using "%bibtex") which might have gotten employed somewhere. Cheers, Tara --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-ox-latex.el-fix-interpretation-of-org-latex-pdf-proc.patch Content-Transfer-Encoding: quoted-printable From=200550f85f733bf81af7d365e81bbd7c1f22e98209 Mon Sep 17 00:00:00 2001 From: Tara Lorenz Date: Fri, 15 Jan 2021 16:47:39 +0100 Subject: [PATCH] ox-latex.el: fix interpretation of org-latex-pdf-process * ox-latex.el (org-latex-export-to-pdf): The documentation for `org-latex-pdf-process' states that "%bib" will be expanded into the current binding of `org-latex-bibtex-compiler'. However, the `org-latex-export-to-pdf', where the expansion takes place, expects "%bibtex" instead. This fix will accept "%bib" as well as "%bibtex" as markers for `org-latex-bib-compiler'. =2D-- lisp/ox-latex.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index fb9fc3cd6..3b7e67844 100644 =2D-- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -3666,12 +3666,12 @@ produced." (match-string 0))) "pdflatex")) (process (if (functionp org-latex-pdf-process) org-latex-pdf-process =2D ;; Replace "%latex" and "%bibtex" with, + ;; Replace "%latex", "%bib" and "%bibtex" with, ;; respectively, "%L" and "%B" so as to adhere to ;; `format-spec' specifications. (mapcar (lambda (command) (replace-regexp-in-string =2D "%\\(?:bib\\|la\\)tex\\>" + "%\\(?:\\(?:bib\\|la\\)tex\\|bib\\)\\>" (lambda (m) (upcase (substring m 0 2))) command)) org-latex-pdf-process))) =2D-=20 2.30.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFHBAEBCAAxFiEE33jlWde4MsLW+hDUVetTsX3GU1AFAmACDAETHHRhcmFAdGVy cmFsb256YS5kZQAKCRBV61OxfcZTUNX+CACMshKSOQsANscOysjUAsisfTfXFAQS 83jEXIdZJ/kIe7N2dCyrU9RhGwDDSV273Ox506VCtEGxkIqSBt7F4xAF97aIM961 G5yzf2as5+uz6GXTFGt1a59HG8W2VC3s/1LTwRo8K2kHf/BvnFLnLfMyWqhbMNJD gnw+4DDIpbYIwu/OePA3hswY3j6yfS+eMBMWKY0l0RDYvJ21xHDD/9jO8AjLPxgP J9Zp3Rb9ceawKrq1k4JF4/B1q1+Ers7orluOuIrf687hm0no49nnJXhiT0iiIwd3 3UQ5nUq0nBjtbWAdp6qPcb1JJisFUrxWAZPqQXhWnurrDTbshBc0t0DM =l3kA -----END PGP SIGNATURE----- --==-=-=--