5

I've used \cal throughout my document and now when I go to switch the document class the \cal is giving me a "Undefined control sequence." error. Any thoughts on why the document class would make a difference?

  • 2
    Use \mathcal{...} instead. It should be possible to perform a global search-and-replace to achieve this. Does this solve your problem? – Werner Oct 27 '11 at 20:58
  • 1
    What documentclass did you use originally and which one did you switch to? – Werner Oct 27 '11 at 21:16
9

You could define \cal by yourself, such as for example the article class does. In the minimal class it's undefined, and this way you can fix it:

\documentclass{minimal}
\makeatletter
\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
\makeatother
\begin{document}
$\cal ABC$
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.