Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

\usepackage{./ExtraPackages/minted/minted}

The call to use minted:

    \appendix
    \chapter{Appendices}
    \section*{Python Source Code}
    \label{app: SourceCode}
    \begin{minted}
        \inputminted{python}{SourceCode/strainPOSCAR.py}
    \end{minted}

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

1 Answer 1

up vote 1 down vote accepted

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

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

\inputminted{python}{SourceCode/strainPOSCAR.py}
share|improve this answer

Your Answer

 
discard

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.