0

So this is my (simple) problem, I would like to have the superscript (number 2) in a better position compared to the first case which looks really awful to me. A first solution was to add the parentheses but it seems too bad in a long equation to have much of them.

\documentclass{article}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{align}
\dot{\theta}_{M}^{2} && (\dot{\theta}_{M})^{2}
\end{align}
\end{document}

enter image description here

4
  • Does \dot\theta_M{}^2 look better to you? Commented Dec 29, 2017 at 9:12
  • I would like to have the number 2 exaclty above the letter M
    – me8
    Commented Dec 29, 2017 at 9:15
  • 1
    Then you can just shift the superscript a bit: \dot\theta_M^{\,\,2} Commented Dec 29, 2017 at 9:30
  • This is very good, you should post it as a possible answer. Thank you
    – me8
    Commented Dec 29, 2017 at 9:34

1 Answer 1

1

Like the second layout?

\documentclass{article}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\usepackage{makebox}

\begin{document}

\[ \dot{\theta}_{M}^{2}\qquad \dot{\theta}\!_{M}^{\makebox*{$\scriptstyle M$}{$\scriptstyle 2 $}} \]

\end{document} 

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .