Hi, I'm making a Beamer presentation and I'd like to highlight certain equations in a frameless colored box (for example, light beige). How would I do this?
(I realise there are \alert and \highlight commands in Beamer, but this isn't what I want).
Math & Science ⇒ Equation highlighting
NEW: TikZ book now 40% off at Amazon.com for a short time.

Equation highlighting
Hi there,
Why don't you just nest your equation into a parbox environment, and add some color to it???
Something like this:
Hope this is the result you are expecting.
Cheers
Why don't you just nest your equation into a parbox environment, and add some color to it???
Something like this:
Code: Select all
\colorbox{red}{\parbox{0.5\textwidth}{
\begin{eqnarray}
a + b = c
\end{eqnarray}
}}
Cheers
-
- Posts: 72
- Joined: Thu Jan 15, 2009 3:16 pm
Equation highlighting
Yup. Works for me. Thanks!fatra2 wrote:Hi there,
Why don't you just nest your equation into a parbox environment, and add some color to it???
Something like this:Hope this is the result you are expecting.Code: Select all
\colorbox{red}{\parbox{0.5\textwidth}{ \begin{eqnarray} a + b = c \end{eqnarray} }}
Cheers
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Equation highlighting
Just for the record. The eqnarray should not be used any more because of known inconsistencies and misbehaviour in some cases. Highlighting of math environments can be done with the empheq package from the mh bundle.
Best regards
Thorsten
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10