[texhax] illegal parameter

Barbara Beeton bnb at ams.org
Fri Jul 1 19:03:03 CEST 2011

    I am confused about the error I am getting in the following.
    (I have commented out the file calls and the code which seems irrelevant to the problem.
    I defined the macro \ve to replace \vec, since the latter puts a tiny arrow above even a long expression.
    I presume this is the source of the problem, but I have used \ve millions of times with no such problem.)
    The error points to the caption line (near the end of the figure->center environment, six lines before the end of the code.

i haven't tested this, but i suspect the
problem may be the use of non-robust
commands in the caption.  try putting
\protect before each of them:

    $=(\protect\vu+\protect\vv)+\protect\vw$ (dotted)}

you also might want to consider using
\centering rather than
\begin{center} ... \end{center} in the
figure, to avoid the extra vertical space
that the center environment adds.

good luck.
						-- bb

    %!TEX TS-program =  latex

    %a line before
    \caption{$\vu+(\vv+\vw)$(dashed) $=(\vu+\vv)+\vw$ (dotted)}
    %a line after
    The error I get is
    ./Briefpicturetest.tex:35: Illegal parameter number in definition of \reserved@
    <to be read again>
    l.35 ...v+\vw)$(dashed) $=(\vu+\vv)+\vw$ (dotted)}
    ? ?
    Zbigniew Nitecki
    Department of Mathematics
    Tufts University
    Medford, MA 02155
    Office    (617)627-3843
    Dept.    (617)627-3234
    Dept. fax    (617)627-3966

More information about the texhax mailing list