0

Hi I would like to display a code with Minted. I have written the following

\documentclass[11pt]{article}
\usepackage{minted}
\usemintedstyle{fruity}
\begin{document}
\begin{minted}{python}
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
from matplotlib.patches import Path, PathPatch
\end{minted}
\end{document}

However, I keep getting an error message that \end{minted} does not work. What have I done wrong?

The Error:

probably given a file that does not exist--otherwise, you may need 
the outputdir package option, or may be using an incompatible build tool,
or may be using frozencache with a missing file.

See the minted package documentation for explanation. Type H <return> for immediate help. ...

l.18 \end{minted}

This could be caused by using -output-directory or -aux-directory without setting minted's outputdir, or by using a build tool that changes paths in ways minted cannot detect, or using frozencache with a missing file.

</code></pre>
Weiss
  • 75

0 Answers0