Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How to typeset a variable like:

A with hat and 0 as index

Whether do I write $\hat{A}\vphantom{A}_0$ or simply write $\hat{A}_0$? (I had seen the former in a template).

BTW, what about $f'^2$? Is $f^{\prime2}$ or $f^{\prime\,2}$ or ${f^{\prime}}^2$ or $f^{\prime}\vphantom{f}^2$?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Just $\hat{A}_0$ is OK. \vphantom is even harmful, for some letter like I.

share|improve this answer
@L.L. What about $f'^2$? Is $f^{\prime2}$ or $f^{\prime\,2}$ or ${f^{\prime}}^2$ or $f^{\prime}\vphantom{f}^2$? – Stufazi Hoqckt Apr 23 '11 at 8:53
I think (f')^2 is better. – Leo Liu Apr 23 '11 at 15:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.