Code Monkey home page Code Monkey logo

Comments (4)

gpoore avatar gpoore commented on August 19, 2024

Are you compiling with -shell-escape? For example, pdflatex -interaction=nonstopmode -shell-escape doc.tex.

What do you get if you run pygmentize --version on the command line?

from minted.

carloslesmes avatar carloslesmes commented on August 19, 2024

with

  1. pigmentize --version

I get
Usage: /Users/carloslesmes/Library/Enthought/Canopy_64bit/User/bin/pygmentize [-l | -g] [-F [:]] [-f ]
[-O ] [-P <option=value>] [-o ] []

   /Users/carloslesmes/Library/Enthought/Canopy_64bit/User/bin/pygmentize -S <style> -f <formatter> [-a <arg>] [-O <options>] [-P <option=value>]
   /Users/carloslesmes/Library/Enthought/Canopy_64bit/User/bin/pygmentize -L [<which> ...]
   /Users/carloslesmes/Library/Enthought/Canopy_64bit/User/bin/pygmentize -N <filename>
   /Users/carloslesmes/Library/Enthought/Canopy_64bit/User/bin/pygmentize -H <type> <name>
   /Users/carloslesmes/Library/Enthought/Canopy_64bit/User/bin/pygmentize -h | -V

Highlight the input file and write the result to .

If no input file is given, use stdin, if -o is not given, use stdout.

is a lexer name (query all lexer names with -L). If -l is not
given, the lexer is guessed from the extension of the input file name
(this obviously doesn't work if the input is stdin). If -g is passed,
attempt to guess the lexer from the file contents, or pass through as
plain text if this fails (this can work for stdin).

Likewise, is a formatter name, and will be guessed from
the extension of the output file name. If no output file is given,
the terminal formatter will be used by default.

With the -O option, you can give the lexer and formatter a comma-
separated list of options, e.g. -O bg=light,python=cool.

The -P option adds lexer and formatter options like the -O option, but
you can only give one option per -P. That way, the option value may
contain commas and equals signs, which it can't with -O, e.g.
``-P "heading=Pygments, the Python highlighter".

With the -F option, you can add filters to the token stream, you can
give options in the same way as for -O after a colon (note: there must
not be spaces around the colon).

The -O, -P and -F options can be given multiple times.

With the -S option, print out style definitions for style <style>
for formatter . The argument given by -a is formatter
dependent.

The -L option lists lexers, formatters, styles or filters -- set
which to the thing you want to list (e.g. "styles"), or omit it to
list everything.

The -N option guesses and prints out a lexer name based solely on
the given filename. It does not take input or highlight anything.
If no specific lexer can be determined "text" is returned.

The -H option prints detailed help for the object of type ,
where is one of "lexer", "formatter" or "filter".

The -h option prints this help.
The -V option prints the package version.

  1. When I compile with

latex -shell-escape doc.tex

it works!

  1. pdflatex -interaction=nonstopmode -shell-escape

yields fatal error

Thanks for help

from minted.

gpoore avatar gpoore commented on August 19, 2024

When you use -shell-escape, is everything working? Or are you still having issues? Your reply got jumbled a bit with a lot of HTML tags.

from minted.

gpoore avatar gpoore commented on August 19, 2024

Closing for inactivity. Please reopen if you still have issues.

from minted.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.