I am writing Master thesis in LaTeX and want to use minted
package for source code syntax highlighting. I have installed it successfully and minimal example from minted
documentation works just fine.
The problem is when I use document class predefined at Prague Technical University called FITthesis
. I believe it is a Fitthesis.cls
file (attached).
After command pdflatex -shell-escape MintedTest
I get an error:
! Undefined control sequence.
\set@color ...\@pdfcolorstack push{\current@color
}\aftergroup \reset@color
l.8 \begin{document}
This is minimal example:
\documentclass[thesis=M,english]{FITthesis}[2012/10/20]
\usepackage{minted}
\begin{document}
\begin{minted}{c}
int main() {
printf("hello, world");
return 0;
}
\end{minted}
\end{document}
Any ideas what to do? I am LaTeX newbie. I didn't even find the file where this error is.
- Link to log file and
Fitthesis.cls
file: http://cl.ly/OGSm
Best Answer
This runs without the internal color error, just errors about not supplying keywords and other data.