0

I am using ShareLatex with each of my sections split into subfiles, and now needs to insert some source code. In doing so i have used the package minted which works fine if i keep my code example in the main file. But when i move the same code example into one of the subfiles i get the error:
Package minted Error: Missing Pygments.

Any suggestions how to solve this?

  • Is this topic tex.stackexchange.com/questions/23458/… helpful? – Przemysław Scherwentke May 24 '16 at 8:15
  • No, minted is by default installed in ShareLatex. I found that it works fine when compiling the whole document. But the problem arises when compiling individual subfiles containing minted, then i get the error, and the code does not show up? – tobiasrj May 24 '16 at 8:23
1

In order for minted to work properly on ShareLaTeX, the compiled file must be in the root directory of the project, i.e. it cannot be stored in a folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.