From: Ihor Radchenko <yantar92@gmail.com>
To: daanturo <daanturo@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] Let org-latex-compile fall back on org-latex-compiler as the default instead of "pdflatex" [9.6 (9.6-??-4f0f24447 @ /home/dan/.emacsen/doom-emacs/.local/straight/build-29.0.50/org/)]
Date: Sun, 22 May 2022 13:26:20 +0800 [thread overview]
Message-ID: <87bkvqp283.fsf@localhost> (raw)
In-Reply-To: <954c81cb-163c-d62c-4894-c192e742d03e@gmail.com>
daanturo <daanturo@gmail.com> writes:
> On 5/22/22 10:42, Ihor Radchenko wrote:
>> Can you provide more details on the problem?
>> `org-latex-compile' relies on `org-latex--insert-compiler' that is
>> called by `org-latex-template'. So, your org-latex-compiler
>> customization should be obeyed.
>
> Sorry, I was a problem on my side, the file where I test has `org-latex-compiler-file-string' set to nil as a local variable.
Note that `org-latex-compiler-file-string' must not be set to nil. It is
not considered a valid value and causes undefined behavior.
> But IMO, falling back to the customized `org-latex-compiler' instead of "pdflatex" should be intuitive.
Not necessarily. If org-latex-compiler is not a member of
org-latex-compilers, we need some sane fallback. Moreover, apart from
org-latex-compiler variable, the compiler can be set locally in buffer
or locally in the subtree. Either way, it is not necessarily clear which
fallback is reasonable. I'd go as far as throwing an error instead of
using "pdflatex", but alas, we already have the existing behavior and
changing it without strong justification can break things for other
users.
Docstring of org-latex-compiler:
>>> Must be an element in org-latex-compilers or the empty quote.
>>> Can also be set in buffers via #+LATEX_COMPILER. See also
>>> org-latex-compiler-file-string.
Best,
Ihor
P.S. You dropped org mailing list from CC. Please, use "reply all" when
replying to the Org mailing list messages in future.
prev parent reply other threads:[~2022-05-22 5:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-21 7:48 [BUG] Let org-latex-compile fall back on org-latex-compiler as the default instead of "pdflatex" [9.6 (9.6-??-4f0f24447 @ /home/dan/.emacsen/doom-emacs/.local/straight/build-29.0.50/org/)] daanturo
2022-05-22 3:42 ` Ihor Radchenko
[not found] ` <954c81cb-163c-d62c-4894-c192e742d03e@gmail.com>
2022-05-22 5:26 ` Ihor Radchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bkvqp283.fsf@localhost \
--to=yantar92@gmail.com \
--cc=daanturo@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).