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

nwhetsell opened this issue Nov 3, 2015 · 3 comments

Difficulty compiling minimal complete example #92

nwhetsell opened this issue Nov 3, 2015 · 3 comments


Copy link

@nwhetsell nwhetsell 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:

int main() {
  printf("hello, world");
  return 0;

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.

Copy link

@gpoore gpoore 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.

Copy link

@nwhetsell nwhetsell 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
Copy link

@tsdh tsdh 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
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants