TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to make a boxed theorem environment with colors. I thought I had done it, but I was mistaken--lists were the wrong colors.

enter image description here

In the picture above, I would like the "list" to be the same color as the text.

Any suggestions would be welcome!

I've included sample code:



  \node[rectangle, rounded corners, inner sep=5pt,minimum width=\textwidth,
    text=white!93!brown!93!yellow, text opacity=1,
    draw=gray, ultra thick, draw opacity=1,
    fill=black, fill opacity=.7] 


Hello, check out my list:
\item Not the correct color\dots

share|improve this question
Which colors are the ones you're trying to get? – Mico Nov 23 '11 at 16:04
@Mico - ah in the picture above, I want the list to be the same color as the text. I'm don't know why it isn't... – Bart Snapp Nov 23 '11 at 16:06
Just insert the instruction \color{white!93!brown!93!yellow} immediately after \begin{minipage}{0.95\textwidth}. This will also let you dispense with defining the text color as one of the options of the \node instruction. – Mico Nov 23 '11 at 16:35
up vote 8 down vote accepted

It seems that enumerate and itemize reset font color. If you want to type all your \BODY with same color use \color{white!93!brown!93!yellow}{\BODY}.

Another option would be to use mdframed which can use TikZ and draw colored theorems within boxes which can be broken between consecutive pages or columns.

share|improve this answer
\color has only one argument—i.e. the color name–so \color{...}{\BODY} would be the same as \color{...} \BODY (except that \BODY is in it's own group in the first case). But mdframed is a good advice. – Tobi Nov 23 '11 at 17:05
Thanks so much!! mdframed looks great too! – Bart Snapp Nov 23 '11 at 17:45
Alternatively, you can define the desired color in the preamble with: \colorlet{mycolor}{white!93!brown!93!yellow} and then use it anywhere in the document. – Count Zero Nov 23 '11 at 19:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.