Text Formatting ⇒ Underbrace color
Underbrace color
Hello, is it possible to change the color of underbrace only? I have an equation that is in normal black color, and I underbrace some part of it. However, I want to have the underbrace in light gray color. Is is somehow possible to change the color only of the brace and not the text? Thank you.
Underbrace color
You could just turn the color back to black inside the brace, e.g.:
Code: Select all
\documentclass{article}
\usepackage{xcolor}
\begin{document}
$\textcolor[gray]{0.8}{\underbrace{\textcolor{black}{this~is~black}}_{\textcolor{black}{this~too}}}$
\end{document}
Re: Underbrace color
Thank you. That's what I actually did it the meantime. Here is my macro:
\newcommand{\ubcolor}[2]{\color{#1}{\underbrace{\color{black}{#2}}}}
Thanks anyway.
\newcommand{\ubcolor}[2]{\color{#1}{\underbrace{\color{black}{#2}}}}
Thanks anyway.