I have this code in LaTeX (the .cls file is HERE):
\documentclass[thesis=B,czech]{FITthesis}[2012/06/26]
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{dirtree}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{comment}
\usepackage{longtable}
\usepackage{booktabs,multirow}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,calc,arrows,decorations.markings,decorations.pathmorphing}
\begin{document}
\begin{center}
\begin{tikzpicture}[scale=2]
\draw (1,0) -- (0,0) -- (0,1);
\end{tikzpicture}
\end{center}
\end{document}
…and I have an error:
! Undefined control sequence.
\set@color ...\@pdfcolorstack push{\current@color
}\aftergroup \reset@color
l.65 \begin{document}
How to fix it?
Best Answer
On lines 395-399 of
FITthesis.cls
one finds:and this reveals the culprit: code used in
\AtBeginDocument
is still part of the preamble and the class is using the hook to typeset information (in the fourth line in the code I showed above); this, of course, produces an error. The only remedy I see (perhaps there are better options), is to edit the.cls
file and to replace the linewith the two lines
so the new lines will look like
the description of
\AfterEndPreamble
frometoolbox
:You should contact the author/maintainer of the class and report this bug.