From mboxrd@z Thu Jan 1 00:00:00 1970 From: Senthil Kumar M Subject: Re: LaTeX minted --shell-escape error after updating to 8.0.3 Date: Mon, 27 May 2013 12:31:21 -0700 Message-ID: References: <87obbyme9z.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh38i-00068m-TC for emacs-orgmode@gnu.org; Mon, 27 May 2013 15:31:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uh38c-0003ZM-SC for emacs-orgmode@gnu.org; Mon, 27 May 2013 15:31:28 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:56506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh38c-0003ZG-MS for emacs-orgmode@gnu.org; Mon, 27 May 2013 15:31:22 -0400 Received: by mail-pa0-f47.google.com with SMTP id kl13so934643pab.20 for ; Mon, 27 May 2013 12:31:21 -0700 (PDT) In-Reply-To: <87obbyme9z.fsf@pierrot.dokosmarshall.org> 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: emacs-orgmode@gnu.org On Sat, May 25, 2013 at 11:44 PM, Nick Dokos wrote: > Senthil Kumar M writes: > > >> I updated org-mode to 8.0.3 (release_8.0.3-156-g847637). I got the >> following error while using the LaTeX export, before the update all >> was well and the PDF file was produced fine. >> >> "Process completed with errors: [LaTeX error] [package error] >> >> *Org PDF LaTeX Output* shows: >> >> ... >> ... >> >> Package ifplatform Warning: >> shell escape is disabled, so I can only detect \ifwindows. >> >> )) >> >> ! Package minted Error: You must invoke LaTeX with the -shell-escape flag. >> >> See the minted package documentation for explanation. >> Type H for immediate help. >> ... >> >> l.21 \usemintedstyle >> {autumn} >> >> ! Package minted Error: You must have `pygmentize' installed to use this packag >> e. >> >> See the minted package documentation for explanation. >> Type H for immediate help. >> ... >> ... >> >> >> I have not changed any settings in my .emacs file (i.e.: (setq >> org-export-latex-listings 'minted) is unchanged) and I never faced any >> problems related to the `--shell-escape' before the update. pygmentize >> is present in /usr/bin/ and it too worked perfectly before the update. >> > > Well, you must have done something before to get around this problem. > My guess would be that you have customized the old > org-latex-to-pdf-process variable. The problem is that in 8.x, the > variable has been renamed to org-latex-pdf-process, so you need to do > to the new variable what you did to the old. E.g. the default setting > of this variable is three pdflatex calls: > > ,---- > | ("pdflatex -interaction nonstopmode -output-directory %o %f" > | "pdflatex -interaction nonstopmode -output-directory %o %f" > | "pdflatex -interaction nonstopmode -output-directory %o %f") > `---- > > You'd need to add --shell-escape to each one. > > -- > Nick > > Hi, Nick, thank you. Setting the org-latex-pdf-process variable as you suggested resolved the LaTeX error during the export step. However, the minted syntax colour highlighting does not work as expected, all python/bash/XML code appear in one colour (black). I had included (setq org-export-latex-listings 'minted) in my .emacs file and it worked fine before the upgrade to 8.0.3. Is there any variable that had changed and need to be set for the syntax highlighting to work properly? Thank you, Sincerely, Senthil -/ For I am Vader, Darth Vader, Lord Vader. I can kill you with a single thought." "Well, you'll still need a tray." "No, I will not need a tray. I do not need a tray to kill you. I can kill you without a tray, with the power of the Force, which is strong within me. Even though I could kill you with a tray if I so wished, for I would hack at your neck with the thin bit until the blood flowed across the canteen floor." "No, the food is hot. You'll need a tray to put the food on." "Oh, I see, the food is hot. I'm sorry, I did not realize. --- Eddie Izzard