TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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