I am trying to add a green box around the first two terms in my equation (`beta_0`

and `b_i`

). I also want to add a circle around the second term (`b_i`

). Is it possible to do this in LaTeX? My code is below which produces the equation. Any help would be great.

```
\begin{equation}
\mathbf{Y_{ij}} = \beta_{0} +\mathbf{ b_i} + \beta_1x_1 + \ldots + \beta_nx_n + \mathbf{\epsilon_{ij}}
\end{equation}
```

## Best Answer

For complex drawings (circles, etc), you might need to go the

`tikz`

road.But for simple shading of elements, a regular

`\colorbox`

should do, i.e.which yields

In case you want to do more than just highlight terms but are looking to explain the terms, I once wrote the following code for my master's thesis presentation:

which this time yields:

You can even easily extend that code to fade the color from slide to slide and highlight one term at a time if you're using

`beamer`

(just add a`\temporal<+>`

before the`\stackrel`

, duplicate the`\stackrel`

code three times and change the colors in each variant).