I'm trying to set a colored background for some definitions in my document
(course notes and I want to get the effect of using a marker to highlight some
things).
using the package xcolor and the \colorbox{gray!30}{text} inside the definition
mostly achieves the desired effect, although it fails if I have nested
environments
definition: \colorbox{gray}{
blah balh
enumerate:
1. text
2. text
\end enumerate
}
\end definition
throws errors (this is not the actual latex ...) it says, something wrong,
perhaps missing \item
Is there a good way to achieve this?
Thanks