Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
1  
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

1 Answer 1

up vote 7 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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