emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Source Code Syntax Highlighting in Beamer slides
Date: Sun, 21 Apr 2013 23:08:00 +0200	[thread overview]
Message-ID: <20130421210800.GA12639@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <877gjvu1mk.fsf@student.kit.edu>

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 <return>  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 <return>  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 <RETURN> 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.

  reply	other threads:[~2013-04-21 21:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-21 19:25 Source Code Syntax Highlighting in Beamer slides Alexander Baier
2013-04-21 21:08 ` Suvayu Ali [this message]
2013-04-21 22:13   ` Nicolas Goaziou
2013-04-21 23:03     ` Alexander Baier
2013-04-22  6:22       ` Suvayu Ali
2013-04-22  6:29         ` Bastien
2013-04-22  7:15           ` Suvayu Ali
2013-04-21 23:21   ` Alexander Baier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130421210800.GA12639@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).