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}
  • 4
    you are adding the superscript to the color node not the bracket use ^{\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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.