Hello,

Nick Dokos <ndo...@gmail.com> writes:

> The main problem is that the latex->dvi invocation is hard-wired in
> org-create-formula-image-with-dvipng and in addition, when the latex
> file is created, the value of org-latex-packages-alist is spliced in.
>
> That in itself is fine, except in the case when (for normal latex
> processing) I choose minted for code prettification. Following the
> docstring of or-export-latex-listings, I set:
>
> (setq org-export-latex-listings 'minted)

You mean `org-latex-listings'.  `org-export-latex-listings' belongs to
the old export framework (like almost all variables with
"org-export-BACKEND-" prefix).

> (add-to-list 'org-latex-packages-alist '("" "minted"))

> in which case, I end up with a \usepackage{minted} in the preview
> latex file. 

Use:

  (add-to-list 'org-latex-packages-alist '("" "minted" nil))

to tell Org not to include the package for previewing snippets.


Regards,

-- 
Nicolas Goaziou

Reply via email to