From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: latex command for org-preview-latex-fragment Date: Fri, 30 Dec 2011 11:06:17 -0500 Message-ID: <14688.1325261177@alphaville.dokosmarshall.org> References: <1545147.q01IgFFdgX@arch-desktop> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgeyM-0001XF-0o for Emacs-orgmode@gnu.org; Fri, 30 Dec 2011 11:06:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgeyL-0004Nd-24 for Emacs-orgmode@gnu.org; Fri, 30 Dec 2011 11:06:21 -0500 Received: from g4t0014.houston.hp.com ([15.201.24.17]:27307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgeyK-0004NM-TG for Emacs-orgmode@gnu.org; Fri, 30 Dec 2011 11:06:21 -0500 In-Reply-To: Message from Ista Zahn of "Fri, 30 Dec 2011 10:24:07 EST." <1545147.q01IgFFdgX@arch-desktop> 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: Ista Zahn Cc: nicholas.dokos@hp.com, Emacs-orgmode Ista Zahn wrote: > Hello all, > > I'm having troubel getting org-preview-latex-fragment to work when using > minted for exported code highlighting. Checking the log files in > /tmp/orgtex<...>.log I find that tex fails with the error message "Package > minted Error: You must invoke LaTeX with the -shell-escape flag". OK, that's > helpful, except that I can't figure out where/how to change the tex command > called by org-preview-latex-fragment. Is this configurable in org-mode > settings? Or does it depend on some option in the auctex or preview packages? > I remember flailing about to get everything to work with minted and I now find out that I did not take notes of what worked :-( However, looking at my customizations, I find that I have included -shell-escape in two places: o org-mode specific: org-latex-to-pdf-process - my setting is the default of calling pdflatex three times, so I added the -shell-escape option to each of the three elements in that list. If you are using texi2dvi, you'll have to do something different: not sure whether you can pass it as an option, or whether you will need to modify the script itself. o auctex specific: TeX-expand-list - I customized an entry in that list to read ,---- | ... | ("%(mode)" | (lambda nil | (if TeX-interactive-mode "" " --shell-escape -interaction=nonstopmode"))) | ... `---- AFAIK, those are the only changes needed. Nick