I am getting unfortunate behavior with the the most recent version of breqn.sty with regards to how it handles a newcommand that begins with a superscript. Considering the following code
\documentclass{article}
\usepackage{breqn}
\newcommand{\hc}{^\dagger}
\begin{document}
\begin{dmath}
A\hc
\end{dmath}
\end{document}
This code will not stop compiling, and hangs on this error:
! Missing { inserted.
<to be read again>
\penalty
l.6 A\hc
! Missing } inserted.
<inserted text>
}
l.7 \end{dmath}
(Note that older iterations of breqn.sty did not give me this issue.)
However, if I just replace \hc with ^\dagger, everything works. Also, if I replace dmath with any of the standard math environments, it works (I've been using this particular newcommand for years).
Is it bad practice to have a superscript begin a newcommand? Is there a way to modify my \hc to make the above code just work?
^being set to active by breqn\AtBeginDocument. Can't test at the moment, though. – Bruno Le Floch Oct 11 '11 at 16:54