[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ox-latex.el: fix interpretation of org-latex-pdf-process
From: |
Kyle Meyer |
Subject: |
Re: [PATCH] ox-latex.el: fix interpretation of org-latex-pdf-process |
Date: |
Sun, 24 Jan 2021 22:31:34 -0500 |
Tara Lorenz writes:
> 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.
Thanks for catching that. It seems [1] it's an old regression from
f6187deca (ox-latex: Small refactor, 2015-09-13).
[1] https://orgmode.org/list/877e8p1aej.fsf@kyleam.com/
> 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.
That sounds like a good approach to me. Applied (13e98e2a1), adding a
TINYCHANGE cookie and a reference to the above commit in the message.
> Subject: [PATCH] ox-latex.el: fix interpretation of org-latex-pdf-process
[...]
> (process (if (functionp org-latex-pdf-process) org-latex-pdf-process
> - ;; Replace "%latex" and "%bibtex" with,
> + ;; Replace "%latex", "%bib" and "%bibtex" with,
> ;; respectively, "%L" and "%B" so as to adhere to
> ;; `format-spec' specifications.
I also tweaked this comment a bit because, with the above change, the
elements before and after "respectively" no longer lined up.