Coloring the brackets changes the position of the superscript. How can I get the same position as in the right example with standard color brackets? I intend to use \left)
and \right)
for brackets to get adapted bracket sizes in larger equations than in the given minimal example.
\documentclass{article}
\usepackage{color}
\begin{document}
$\color{red}\left(\right)\color{black}^2 \left(\right)^2$
\end{document}
^{\textcolor{black}{2}}
– David Carlisle 2 days ago${\color{red}\left(\right)^{\color{black}2}} \left(\right)^{2}$
does the trick, like @DavidCarlisle said – TVL 2 days ago