0

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.

enter image description here

\documentclass{article}
\usepackage{color}
\begin{document}
$\color{red}\left(\right)\color{black}^2 \left(\right)^2$
\end{document}
2
  • 4
    you are adding the superscript to the color node not the bracket use ^{\textcolor{black}{2}} Commented Jan 13, 2021 at 18:13
  • ${\color{red}\left(\right)^{\color{black}2}} \left(\right)^{2}$ does the trick, like @DavidCarlisle said
    – TVL
    Commented Jan 13, 2021 at 18:14

0

You must log in to answer this question.

Browse other questions tagged .