Post #716250
2026-01-04 01:29 UTC
Do any of you folks using #latex fragments in #org files on #emacs use lualatex to generate the previews? The .dvi files don't get generated when using dvipng or dvisvgm preview processes and I'm wondering if this is a fool's errand.
Replies (1)
-
@ablatedsprocket@hachyderm.io 2026-01-04 14:36
I figured out how to make these previews work. The problem did turn out to be that lualatex doesn't produce .dvi files. The aptly named dvilualatex binary needs to be used for this. The solution was to set the latex-compiler property of the org-preview-latex-process-alist members accordingly: "dvilualatex -interaction nonstopmode -output-directory %o %f" To quote the Emacs enthusiast interview, you can probably do this in a smarter way (and I'm all ears/eyes for suggestions). For now, though, it works! As with most problems, this one just needed a fresh set of eyes and putting the right words in the search engine. #emacs #orgmode #lualatex