Hello everybody.
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.
Text Formatting ⇒ Example environment
Example environment
Last edited by localghost on Fri Jan 27, 2012 6:17 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Example environment
Hi,
you could use \fbox for this, such as
or \fbox{\yourmacro}, if this would actually be a macro.
Stefan
you could use \fbox for this, such as
Code: Select all
\fbox{Ejem 3}
Stefan
LaTeX.org admin