Consider the expression \mathscr{APPLE}
. This should render as follows:
Yet in org-mode (using latex fragment previews), it renders as:
Moreover, when exporting, matscr renders properly in HTML (when viewed in a browser), but does not render properly when exporting to pdf! How does one fix this behavior?
EDIT: Certain unicode characters also fail to render properly. For example $\phi$ renders fine but $ϕ$ does not render fine. I hope these errors are related so that fixing one fixes the other.
EDIT2: I get the following error message when using the settings suggested by Omar: link.
EDIT3: The more specific error I'm getting (after checking *Org Preview LaTeX Output*
buffer is:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! Fatal fontspec error: "cannot-use-pdftex"
!
! The fontspec package requires either XeTeX or LuaTeX.
!
! You must change your typesetting engine to, e.g., "xelatex" or
! "lualatex"instead of plain "latex" or "pdflatex".
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
dvisvgm
?'(org-preview-latex-process-alist (quote ...))
. That's a fragment of acustom-set-variables
form, so you need to wrap it like so:(custom-set-variables '(org-preview-latex-process-alist (quote ...)))
.