Math & Science ⇒ A colored box around theorems and definitions
A colored box around theorems and definitions
I would like to have a colored box around theorems and definitions. How can I do that ?
Thanks in advance.
petey
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10330
- Joined: Mon Mar 10, 2008 9:44 pm
A colored box around theorems and definitions
you could use \colorbox or \fcolorbox, like
Code: Select all
\fcolorbox{frame color name}{box color name}{text}
Stefan
Re: A colored box around theorems and definitions
Thanks! I tried them and they work as long as I don't put a theorem inside. Strange.
petey
- Stefan Kottwitz
- Site Admin
- Posts: 10330
- Joined: Mon Mar 10, 2008 9:44 pm
A colored box around theorems and definitions
Stefan
Re: A colored box around theorems and definitions
Thank you very much

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: A colored box around theorems and definitions
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: A colored box around theorems and definitions
Thanks again for all the help and a great forum.
Best regards
petey