Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulty compiling minimal complete example #92

Closed
nwhetsell opened this issue Nov 3, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@nwhetsell
Copy link

commented Nov 3, 2015

I just updated minted to version 2.1, and I’m encountering an issue when attempting to compile the minimal example in the manual:

\documentclass{article}
\usepackage{minted}
\begin{document}
\begin{minted}{c}
int main() {
  printf("hello, world");
  return 0;
}
\end{minted}
\end{document}

When I compile that by running (in Terminal, on OS X)

pdflatex -shell-escape test.tex

compilation fails with

! Undefined control sequence.
<argument> \PYGZob 
                   {}
l.2 ...G{n+nf}{main}\PYG{p}{()} \PYG{p}{\PYGZob{}}

I have a feeling I’ve done something bone-headed to produce this, but I’m at a loss.

@gpoore

This comment has been minimized.

Copy link
Owner

commented Nov 3, 2015

Your example looks fine and works for me. If there is a directory _minted-test, you might delete that and try compiling again. Also, you might check that your Pygments version is recent. If it still doesn't work, you could try \usepackage[cache=false]{minted} to see if that makes any difference.

@nwhetsell

This comment has been minimized.

Copy link
Author

commented Nov 3, 2015

Deleting _minted-test fixed it, don’t know how I didn’t think to try that before. Thanks for your help!

@nwhetsell nwhetsell closed this Nov 3, 2015

@tsdh

This comment has been minimized.

Copy link

commented Dec 5, 2015

I had that right now with \PYGZgt being the undefined control sequence. Deleting the cache dir and recompiling did the trick, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.