verbatim
environment and the \verb
command are
implemented. The starred varieties are currently not implemented.
(The implementation of the verbatim
environment is not the
standard LaTeX implementation, but the one from the verbatim
package by Rainer Schöpf).
Furthermore, there is another, new environment example
.
example
is also useful for including program listings or code
examples. Like verbatim
, it is typeset in a typewriter font
with a fixed character pitch, and obeys spaces and line breaks. But
here ends the similarity, since example
obeys the special
characters \
, {
, }
, and %
. You can
still use font changes within an example
environment, and you
can also place hyperlinks there. Here is
an example:
To clear a flag, use \begin{example} {\back}clear\{\var{flag}\} \end{example}
Note also that an example
environment is indented
automatically, while a verbatim
environment is not.
In the LaTeX document, you can set the amount of indentation by
setting \exampleindent
:
\setlength{\exampleindent}{4mm}
(The example
environment is very similar to the alltt
environment of the alltt
package. The differences are that example
is automatically indented and obeys the %
character.)