I have a problem with a symbol that I have defined when using it in figure captions (and captions of algorithms as well). It is a 180 degrees rotation of a curvearrowleft from amssymb. This minimal example generates the error:
Code: Select all
\documentclass[a4paper,11pt]{article}
\usepackage{amssymb}
\usepackage{rotating}
\newcommand{\arcTo}
{\begin{sideways}
\begin{sideways}
$\curvearrowleft$
\end{sideways}
\end{sideways}}
\begin{document}
\begin{figure}
\caption{This is test a test $r_1\arcTo r_2$}
\end{figure}
\end{document}
I hope you can help me.! Argument of \@caption has an extra }.
<inserted text>
\par
l.15 \caption{This is test a test $r_1\arcTo r_2$}
I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.