Undefined control sequence
Posted
by Jelle Fresen
on Stack Overflow
See other posts from Stack Overflow
or by Jelle Fresen
Published on 2010-04-15T15:40:45Z
Indexed on
2010/04/15
15:43 UTC
Read the original article
Hit count: 1150
latex
Hi,
I am making my Master's Thesis with LaTeX, but I can't get the provided style to work. Specifically, I get the error 'Undefined control sequence' when using the function makeformaltitlepages
, which is defined in mscthesis.sty
. On the internet, the only answer I could find is the straightforward 'you probably made a typo', or 'you probably forgot to include the package', but I have reason to believe neither of those apply to me.
I am quite sure that the function exists, for when I add a little verification, using the @ifundefined
command, the logfile shows that the function actually does exist. And, as can be seen in the following piece of code, I also include the package:
\usepackage{mscthesis}
% setup information like author, company, title, etc.
\begin{document}
\formatmatter
\thispagestyle{empty}
\maketitle
\makeatletter
\@ifundefined{makeformaltitlepages}{\message{Function is not defined.}}{\message{Function is defined.}}
\makeatother
\makeformaltitlepages{\input{abstract}}
% add chapters, sections, etc. and end the document
Now, the output shows the line "Function is defined." just before the output of maketitle
(which I think is rather strange on its own, but that might be a flushing issue), followed by the following infinitely repeated error (well, cut off after 100 times by LaTeX):
Function is defined.
// some gibberish about font info
! Undefined control sequence.
\GenericError ...
#4 \errhelp \@err@ ...
l.112 \makeformaltitlepages{}
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.
While the error keeps repeating, the line that starts with '#4' cycles between the following four lines:
#4 \errhelp \@err@ ...
\let \@err@ ...
\@empty \def \MessageBreak...
\endgroup
Ok, so, do any of you have a suggestion of how I might continue to hunt this bug? Or what blatantly obvious mistake did I make?
© Stack Overflow or respective owner