an unexpected result in LaTeX

Kevin Cahill kevinecahill at gmail.com
Wed Jul 7 21:45:19 CEST 2021


The code 

\begin{equation}
\boldsymbol [ \c_b, \c_c \boldsymbol ]^\dag
={} [ \c_c^\dag, \c_b^\dag ]
= \left\{
\begin{array}{ll}
- \boldsymbol [ \c_b, \c_c \boldsymbol ] & 
\mbox{ for } b, c = 1, 2, 3 \\
\boldsymbol [ \c_b, \c_c \boldsymbol ] & 
\mbox{ if } b \mbox{ or } c = 0 . 
\end{array} 
\right .
\end{equation} 

works, but the nearly identical code

\begin{equation}
\boldsymbol [ \c_b, \c_c \boldsymbol ]^\dag
={} [ \c_c^\dag, \c_b^\dag ]
= \left\{
\begin{array}{ll}
- \boldsymbol [ \c_b, \c_c \boldsymbol ] & 
\mbox{ for } b, c = 1, 2, 3 \\
[ \c_b, \c_c ] & 
\mbox{ if } b \mbox{ or } c = 0 . 
\end{array} 
\right .
\end{equation} 

does not;
the error message is

418:  Illegal unit of measure (pt inserted).
<to be read again>
                           _
l. 418 [ \c_b, \c_c ]
                             &
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20210707/9068afd1/attachment.html>


More information about the texhax mailing list.