I'm trying to use the minted package on Windows 8. I installed python and Pygment, added C:\Python34 and C:\Python34\Scripts on my path.
When I try to compile the following latex code:
\documentclass[12pt,a4paper]{report}
\usepackage[pdftex]{graphicx} %for embedding images
\usepackage[francais]{babel}
\usepackage{eurosym}
\usepackage{pdftexcmds}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage[normalem]{ulem}
\usepackage{url} %for proper url entries
\usepackage{minted}
\begin{document}
\input{./a.tex}
\input{./b.tex}
…
\input{./h.tex}
One of the files of the input command contains this minted code:
\begin{minted}{csharp}
string test;
\end{minted}
I got the following errors, which don't make any sense to me:
\openout3 = `report.pyg'.
runsystem(pygmentize -l csharp -f latex -F tokenmerge -P style=default -P comma
ndprefix=PYGdefault -o "_minted-report/B3A3E546A80461696602265F0BBFCFE46439C04D
9C5223188E498C03CB02681D.pygtex" "report.pyg" )...executed.
(./_minted-report/B3A3E546A80461696602265F0BBFCFE46439C04D9C5223188E498C03CB026
81D.pygtex
! Undefined control sequence.
<argument> \PYGdefault
{k+kt}{string} \PYGdefault {n}{test}\PYGdefault {p}{;}
l.2 ...ring} \PYGdefault{n}{test}\PYGdefault{p}{;}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<argument> \PYGdefault {k+kt}{string} \PYGdefault
{n}{test}\PYGdefault {p}{;}
l.2 ...ring} \PYGdefault{n}{test}\PYGdefault{p}{;}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<argument> ...g} \PYGdefault {n}{test}\PYGdefault
{p}{;}
l.2 ...ring} \PYGdefault{n}{test}\PYGdefault{p}{;}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
\documentclass{...}
and ending with\end{document}
. – egreg Apr 6 '15 at 11:10\input{./a.tex}
with theminted
environment. – egreg Apr 6 '15 at 15:51filecontents
environment helpful. I can't reproduce this error, either. If we can't reproduce the error, we can't help :( – Sean Allred Apr 25 '15 at 14:06