[Top][All Lists]

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

Re: Bug: org-preview-latex-process-alist's :latex-header should not fall

From: Nicolas Goaziou
Subject: Re: Bug: org-preview-latex-process-alist's :latex-header should not fall back to org-format-latex-header [9.3.4 (9.3.4-5-ga0f3bb-elpaplus @ /home/lockywolf/.emacs.d/elpa/org-plus-contrib-20200210/)]
Date: Thu, 30 Apr 2020 17:28:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)


Vladimir Nikishkin <address@hidden> writes:

> There are two almost unrelated latex-using processes in org. One is
> export, the other one is generating previews.
> The latter one is far less demanding than the former. Previews only care
> about certain math, whereas exports may very well be super tricky.
> Therefore, preparing org documents for export often includes setting a
> separate latex compiler (in 99% of the cases lualatex or xelatex), and a
> custom #+LATEX_HEADER. the latex compiler controlled with
> (setq org-latex-compiler "lualatex")
> (setq org-latex-bib-compiler "biber")
> is completely ignored by the preview process. This is fine, since
> previews only care about small things. However, #+LATEX_HEADER is _not_
> ignored, which means that previews will fail to compile, since
> LATEX_HEADER is prepared for a different compiler.

IIRC, LATEX_HEADER_EXTRA is meant for non-preview compilation.
LATEX_HEADER is for both preview and export.


Nicolas Goaziou

reply via email to

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