Is there an easy way (maybe provided by mathtools that aligns normal subscripts)?
I know that I can do this manually with \vphantom, but I was looking for a better way.
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\noindent Looks pretty bad:
\[
T_\theta T_\theta^{-1} = \begin{pmatrix*}[r]
\cos\theta & -\sin\theta\\
\sin\theta & \cos\theta
\end{pmatrix*}\begin{pmatrix*}[r]
\cos\theta & \sin\theta\\
-\sin\theta & \cos\theta
\end{pmatrix*}
= \begin{pmatrix}1&0\\0&1\end{pmatrix} = I
\]
adjustlimits doesn't work:
\[
\adjustlimits T_\theta T_\theta^{-1} = \begin{pmatrix*}[r]
\cos\theta & -\sin\theta\\
\sin\theta & \cos\theta
\end{pmatrix*}\begin{pmatrix*}[r]
\cos\theta & \sin\theta\\
-\sin\theta & \cos\theta
\end{pmatrix*}
= \begin{pmatrix}1&0\\0&1\end{pmatrix} = I
\]
vphantom does work
\[
T_\theta^{\vphantom{-1}} T_\theta^{-1} = \begin{pmatrix*}[r]
\cos\theta & -\sin\theta\\
\sin\theta & \cos\theta
\end{pmatrix*}\begin{pmatrix*}[r]
\cos\theta & \sin\theta\\
-\sin\theta & \cos\theta
\end{pmatrix*}
= \begin{pmatrix}1&0\\0&1\end{pmatrix} = I
\]
\end{document}




^{}? – daleif Feb 21 '17 at 07:58^{}instead of^{\vphantom{-1}}. However, it doesn't work... – CarLaTeX Feb 21 '17 at 08:10