> In some older org files I was updating, I ran into an error involving
> dvipng and previews. In the latest org version, this minimum
> example will trigger the error:
> """
> #+LATEX_COMPILER:xelatex
> Here is a formula: $x^2$.
> """
>
> Opening this file, and issuing `org-latex-preview` will trigger an
> error:
> "org-compile-file: File "/tmp/orgtexrMvaP3.dvi" wasn’t produced
> Please adjust ‘dvipng’ part of ‘org-preview-latex-process-alist’."

I am anot able to reproduce this.  When I try the above reproducer, I
get this (expected) warning:

⛔ Warning (org): xelatex does not support precompilation. Disabling LaTeX 
preview precompile in this buffer.
 To re-enable, run `(setq-local org-latex-preview-process-precompile t)' or 
reopen this buffer.

The LaTeX fragment then renders as expected.

> From what I can tell, `fontspec` is being included in the preview
> snippet, but `latex` is being used by the dvipng default process.

Why do you believe this?

Can you provide the contents of the following two buffers after
producing the failure:

*Org Preview LaTeX Output* 
*Org Preview Convert Output*

Karthik

Reply via email to