2.15 Environments
An environment is a block of code contained within the
commands
and
where <env-name> is the name of the environment. The block of code is then formatted in a method specific to that environment. For example, the bfseries2.5 environment will typeset the contents of the environment in a bold font. The following code:
will appear in the typeset document looking like:
Some environments also supply commands that may only be used within that environment.
Example:
The itemize environment provides a command called
\item
so that you can specify individual items within
an unordered list:
The above will produce the following output:
Footnotes
- ...env-bfseries2.5
- Note there is no backslash in the environment name.
This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-00-5).