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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- 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: 10397
- 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