Having followed the installation instructions for the minted package (CTAN), I keep encountering the error, and variations thereof, listed in the title when trying to compile the document.

The relevant preamble:


The call to use minted:

    \section*{Python Source Code}
    \label{app: SourceCode}

I have something of a tight deadline so any help would be particularly appreciated :-).

  • Are you sure that you need \begin{minted} and \end{minted} around \inputminted? – egreg Mar 24 '12 at 22:59
  • Lol - thanks very much. That was a legacy from before I found out about \inputminted. Thanks again! Edit: If you want to make that an answer, I'll accept it. – Light Matters Mar 24 '12 at 23:08

The \inputminted command implicitly encloses the code in the correct environment:

\section*{Python Source Code}
\label{app: SourceCode}


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.