From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Source Code Syntax Highlighting in Beamer slides Date: Sun, 21 Apr 2013 23:08:00 +0200 Message-ID: <20130421210800.GA12639@kuru.dyndns-at-home.com> References: <877gjvu1mk.fsf@student.kit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UU1UZ-0005V5-Nd for emacs-orgmode@gnu.org; Sun, 21 Apr 2013 17:08:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UU1UU-00055o-Ol for emacs-orgmode@gnu.org; Sun, 21 Apr 2013 17:08:11 -0400 Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]:60461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UU1UU-00055e-HS for emacs-orgmode@gnu.org; Sun, 21 Apr 2013 17:08:06 -0400 Received: by mail-we0-f174.google.com with SMTP id u12so5512654wey.19 for ; Sun, 21 Apr 2013 14:08:05 -0700 (PDT) Content-Disposition: inline In-Reply-To: <877gjvu1mk.fsf@student.kit.edu> 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 Hi Alexander, On Sun, Apr 21, 2013 at 09:25:55PM +0200, Alexander Baier wrote: > > I am trying to syntax-color the code in my source blocks that is > exported to LaTeX. As proposed in this thread [1] over a year ago I > followed this guide [2], but could not get the generated .tex file to > compile. [...chomp...chomp...chomp...] > Package ifplatform Warning: > shell escape is disabled, so I can only detect \ifwindows. > > ) > \minted@bgbox=\box61 > \minted@code=\write6 > \@float@every@listing=\toks51 > \c@listing=\count166 > ) > > ! 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.20 \usetheme > {default} > Pass the -shell-escape flag to LaTeX. Refer to the minted.sty documentation for > more information. > > runsystem(which pygmentize && touch output.aex)...disabled (restricted). > > > ! 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. > ... > > l.20 \usetheme > {default} > Refer to the installation instructions in the minted documentation for more inf > ormation. [...chomp...chomp...chomp...] > runsystem(pygmentize -S default -f latex > output.pyg)...disabled (restricted). > > > > ! LaTeX Error: File `output.pyg' not found. > > Type X to quit or to proceed, > or enter new name. (Default extension: pyg) Not sure why, but your -shell-escape option is being ignored. Untill you can solve this properly, maybe you can put the LaTeX calls in a shell script and set that as your org-latex-pdf-process. Hope this helps, -- Suvayu Open source is the future. It sets us free.