emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] org-preview-latex-fragment dvipng fix for packages in org-la


From: Sébastien Miquel
Subject: Re: [PATCH] org-preview-latex-fragment dvipng fix for packages in org-latex-packages-alist breaking 'latex' command
Date: Sun, 20 Sep 2020 08:04:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

Hi,

If I've understood your problem correctly, simply using ("" "fontspec" nil) in org-latex-packages-alist should fix your issue.

Per the documentation, this third argument stops the package from being used when compiling preview fragments.

Regards,

Sébastien



Gabriel S. X. Smith writes:
This is where my fix starts to come in. When org mode does the small

export of the latex fragment it would include the contents of
org-latex-packages-alist in the LaTex headers. Some packages (namely
'fontspec,' used for xelatex) would lead to a failure to create the
dvi file when the .tex file was compiled with the necessary
'latex' command.

To alleviate this problem I designed this wrapper function which
sets org-latex-packages-alist to nil just before executing the
org-latex-preview function.


reply via email to

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