LaTeX forum ⇒ Math & ScienceProblem with double subscript and accents

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
nortada
Posts: 5
Joined: Thu Apr 07, 2011 4:30 pm

Problem with double subscript and accents

Postby nortada » Thu Apr 07, 2011 4:49 pm

Hi all, i'm new to the forum and this is my first post.

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.:

  1. \newcommand{\Hu}{\hat{H}_{u}^{+}}

and then still be able to call this symbol with additional subscript:

"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,

nortada
Posts: 5
Joined: Thu Apr 07, 2011 4:30 pm

Postby nortada » Sat Apr 09, 2011 9:53 pm

Could somebody please help.

User avatar
CDbile
Posts: 19
Joined: Mon Jan 31, 2011 6:48 pm

Postby CDbile » Sun Apr 10, 2011 11:45 am

Hi,
I found a trick :

  1. ${\hat{A}{}_a}_b$


Regards,
CDbile

nortada
Posts: 5
Joined: Thu Apr 07, 2011 4:30 pm

Postby nortada » Tue Apr 12, 2011 12:06 am

Thanks for the help.

CDbile wrote:Hi,
I found a trick :

  1. ${\hat{A}{}_a}_b$


Regards,


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 4 guests