From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Minor problems with dvipng latex image preview Date: Wed, 22 May 2013 21:03:03 +0200 Message-ID: <87ehcyg7mg.fsf@gmail.com> References: <871u9238sl.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfEJT-0001Ht-Hi for emacs-orgmode@gnu.org; Wed, 22 May 2013 15:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfEJS-0004mw-Ds for emacs-orgmode@gnu.org; Wed, 22 May 2013 15:03:03 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:45185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfEJS-0004ky-7b for emacs-orgmode@gnu.org; Wed, 22 May 2013 15:03:02 -0400 Received: by mail-we0-f173.google.com with SMTP id p57so1495261wes.18 for ; Wed, 22 May 2013 12:03:01 -0700 (PDT) In-Reply-To: <871u9238sl.fsf@pierrot.dokosmarshall.org> (Nick Dokos's message of "Sun, 19 May 2013 18:27:06 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode@gnu.org Hello, Nick Dokos 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