I am using a \widebar accent as implemented here, since I don't want to use mathabx; but when I use the accent in the caption of a figure, I get a compiler error.
Here's the offending code:
\caption{(Blah blah) and $(\widebar{N},\widebar{X})$.
\label{fig:Markov_pf_notation}}
And the error:
Argument of \Hy@tempa has an extra }.\par ...n the right $(\widebar{N},\widebar{X})$.} Paragraph ended before \Hy@tempa was complete.\par ...n the right $(\widebar{N},\widebar{X})$.}
I have no trouble using \widebar in the body of my document, and when I comment out this instance in the caption, everything compiles correctly.
Can this implementation be fixed? Is there a comparably good implementation of \widebar that doesn't have this problem?
\newcommand*\widebarinto\DeclareRobustCommand\widebar– egreg May 06 '16 at 13:35\widebar: http://tex.stackexchange.com/questions/171907/serious-problem-with-widebar – Steven B. Segletes May 06 '16 at 13:38