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:37:36 -0500 Message-ID: <15707.1325263056@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]:47120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgfSg-0005w3-OD for Emacs-orgmode@gnu.org; Fri, 30 Dec 2011 11:37:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgfSe-00007n-48 for Emacs-orgmode@gnu.org; Fri, 30 Dec 2011 11:37:42 -0500 Received: from g1t0029.austin.hp.com ([15.216.28.36]:5690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgfSd-00007U-Ux for Emacs-orgmode@gnu.org; Fri, 30 Dec 2011 11:37:40 -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: > 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? > You might have to do one more thing: if you are going through dvipng, in org-create-formula-image, there is an explicit call to latex that might be the one causing you problems. There is no way to deal with this other than by modifying the function, so if that's indeed what causes your problem, you should probably submit a bug report. The call is around line 16927 in org.el and looks like this: ,---- | (condition-case nil | (progn | (cd tmpdir) | (call-process "latex" nil nil nil texfile)) | (error nil)) `---- I think you'd need to modify it to say: ... (call-process "latex" nil nil nil "-shell-escape" texfile)) ... instead. Nick