I'm facing a very similar issue as per question Make "org-latex-preview" load package so that it properly renders "tcolorbox" environments, using the mhchem
latex package (version 4.09).
I'm using Emacs 28.1, org-mode 9.5.5, pdfTeX 3.141592653-2.6-1.40.22, ImageMagick 6.9.12 running on Fedora 37.
org-latex-packages-alist
is set to '(("version=4" "mhchem" t))
I have tried setting org-preview-latex-default-process
to dvipng
, dvisvgm
or imagemagick
.
When the org file is exported to latex and PDF, the mhchem
syntax is correctly interpreted and exported. And when calling org-latex-preview
on \(2 + 3\)
a preview is correctly generated. However, when calling org-latex-preview
on \ce{Na2CO4}
nothing happens.