Possible Duplicate:
“TeX capacity exceeded” because of a couple of raiseboxes in a \section?
I'm not able to use the following command in a listing caption (I think the same applies to headings):
\newcommand{\CS}{C\nolinebreak\hspace{-.05em}\raisebox{.6ex}{\smaller\smaller\bf \#}}
The error is:
! Undefined control sequence.
\in@ #1#2->\begingroup \def \in@@
##1#1{}\toks@ \expandafter {\in@@ #2{}{}#1...
l.10 ]
How can I solve this?
\protect\CSshould suffice. – egreg Dec 10 '12 at 00:02