Math & Sciencesuperscript alignment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
vmz19
Posts: 1
Joined: Mon Apr 08, 2019 4:25 pm

superscript alignment

Post by vmz19 »

hello,
is there any way to make the superscripts aligned (at the same height)?

Code: Select all

\begin{IEEEeqnarray}{C} 
\dot{\boldsymbol{W}}^{-1} + \boldsymbol{W}^{-1}
\end{IEEEeqnarray}
thanks in advance
vit
Attachments
latex_superscripts.png
latex_superscripts.png (4.96 KiB) Viewed 3180 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

superscript alignment

Post by Stefan Kottwitz »

Hi vit,

welcome to the forum!

You could use \vphantom that reserves invisible vertical space that the superscript will use.

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
    \dot{\boldsymbol{W}}\vphantom{W}^{-1} + \boldsymbol{W}^{-1}
\]
\end{document}
superscript.png
superscript.png (5.75 KiB) Viewed 3167 times
Stefan
LaTeX.org admin
Post Reply