Problem:
I try to include the following packages in my .tex file:
\usepackage{graphicx}
\usepackage{pdfpages}
For this I get the following errors:
thesis.tex (line 186)
Undefined control sequence (\mainmatterSU ...)
I Google a bit and find this: https://en.wikibooks.org/wiki/LaTeX/Errors_and_Warnings#Undefined_control_sequence
Which tells me that it might be a typo, but then I open up the .cls file and check there, which gives me:
% MAINMATTER
\newcommand{\mainmatterSU}{
\begingroup
\cleardoublepage
\edef\x{\endgroup
\noexpand\mainmatter
\setcounter{page}{\the\value{page}}%
}%
\x
\cleardoublepage
\fancypagestyle{plain}
{
\fancyhead{}
\fancyfoot[LE,RO]{{\fontfamily{verdana}\selectfont\thepage}}
} % re-define plain page
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[LE,RO]{{\fontfamily{verdana}\selectfont\thepage}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
So I'm going a bit insane over here because I don't see the miss-spelling or what I could have done wrong by just including a package.
Removing those two packages will remove the errors.
Any help is appreciated!
!
to?
zzz.tex
then latex will have left azzz.log
file which will contain the error message all tex errors start with!
and end with?
(in interactive mode you can type a response to the?
but the?
is printed anyway even if your editor runs tex in batch mode)edef\x{\endgroup \noexpand\mainmatter \setcounter{page}{\the\value{page}}% }%
is not a safe use of\edef
(especiiiially ofcalc
package is being used