About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Account
Latest news 2024-10-15: New blog post: Tales for Our Times Book Launch.


10.1 Redefining Environments

It is also possible to redefine an environment using:

\renewenvironment{<env-name>}[<n-args>][<default>]{<begin-code>}{<end-code>}

As with \renewcommand, only redefine an existing environment if you want a modified version of that environment rather than because you like the environment name.

Exercise 25: Defining a New Environment

If you did any of the exercises from Exercise 10 to Exercise 17, go back to the document you created and define the exercise environment as in the example above. Then try creating some exercises using this environment. You could, maybe, put an exercise in the first chapter, and then another one in the second chapter. Again you can download or view an example.


This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-00-5).

© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs