TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 :-).

share|improve this question
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. – TCTopCat Mar 24 '12 at 23:08
up vote 1 down vote accepted

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

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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