Text Formatting ⇒ Example environment
Example environment
I would like to create a new environment for the examples on my documents. I would like that it seems like the one on the picture: I know how to fill the background of the text I´ll write in there... but I don´t know how to put in to a rectangle the "Exercise 1" like it´s shown on the picture. I wish someone knows how to do this.
Thanks.
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: 10364
- Joined: Mon Mar 10, 2008 9:44 pm
Example environment
you could use \fbox for this, such as
Code: Select all
\fbox{Ejem 3}
Stefan