Some LaTeX packages require running LaTeX multiple times to generate correct output (and hence previews). An example of this is the nicematrix CTAN package. Using latexmk as the :latex-compiler in org-latex-preview-process-alist runs without errors, but doesn't actually produce correct previews.
Some LaTeX packages require running LaTeX multiple times to generate correct output (and hence previews). An example of this is the nicematrix CTAN package. Using
latexmk
as the:latex-compiler
inorg-latex-preview-process-alist
runs without errors, but doesn't actually produce correct previews.Example (from https://list.orgmode.org/m1v801dlof.fsf@nobis-it.eu/T/#u):
Produces:
Corresponding MWE LaTeX file: