I want to be able to define e.g.: ${\hat{A}_a}_b$
But this returns the compilation error: "! Double Script". Meanwhile I found out that the problem was with the \hat accent. If I remove it, I don't get any error in compiling: ${A_a}_b$, as expected.
The reason why I need this structure is that I want to be able to define, with the \newcommand function, math symbols involving subscripts and superscripts, e.g.:
Code: Select all
\newcommand{\Hu}{\hat{H}_{u}^{+}}
"The first component of the field $\Hu$ is ${\Hu}_1$".
Can somebody tell me what am I doing wrong, or suggest another way to do what I want.
Thanks in advance,