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.
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: 10335
- 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