Latex underbrace - change color

  • Context: LaTeX 
  • Thread starter Thread starter pisoir
  • Start date Start date
  • Tags Tags
    Change Color Latex
Click For Summary
SUMMARY

The discussion focuses on changing the color of the underbrace in LaTeX. Users seek a method to apply a light gray color specifically to the underbrace while keeping the text in black. The solution involves using the \definecolor command to set the desired color and applying it directly to the underbrace command. The example provided demonstrates how to achieve this with the LaTeX code: \definecolor{Gray}{rgb}{0.5,0.5,0.5} and \underbrace{\color{Gray}{text}}.

PREREQUISITES
  • Familiarity with LaTeX syntax and commands
  • Understanding of color definitions in LaTeX using \definecolor
  • Knowledge of the \underbrace command in LaTeX
  • Basic experience with LaTeX document preparation
NEXT STEPS
  • Research the use of the \definecolor command in LaTeX
  • Learn how to customize colors in LaTeX documents
  • Explore advanced LaTeX formatting techniques for mathematical expressions
  • Investigate the use of the xcolor package for enhanced color options in LaTeX
USEFUL FOR

LaTeX users, mathematicians, educators, and anyone looking to enhance the visual presentation of mathematical equations in their documents.

pisoir
Messages
1
Reaction score
0
Hello, can anyone give some advice about how to change the color of underbrace? The equation is in normal black color, but I would like to underbrace some of its part, but I want to have the underbrace in light gray. Is it possible to do it?(change the color of the brace only?)
Thank you.
 
Physics news on Phys.org
<br /> \definecolor{Blue}{rgb}{0,0,1}<br /> \definecolor{Black}{rgb}{0,0,0}<br /> \color{Blue}{\underbrace{\color{Black}{hello}}}<br />

\definecolor{Blue}{rgb}{0,0,1}
\definecolor{Black}{rgb}{0,0,0}
\color{Blue}{\underbrace{\color{Black}{hello}}}
 
Last edited:

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 36 ·
2
Replies
36
Views
2K
  • · Replies 0 ·
Replies
0
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K