emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Minor problems with dvipng latex image preview


From: Nicolas Goaziou
Subject: Re: [O] Minor problems with dvipng latex image preview
Date: Wed, 22 May 2013 21:03:03 +0200

Hello,

Nick Dokos <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]