next up previous contents index
Next: 2.9.5 Tabular Up: 2.9 Environments Previous: 2.9.3 Quote, Quotation, and

2.9.4 Printing Verbatim

Text which is enclosed between \begin{verbatim} and \end{verbatim} will be directly printed, as if it was typed on a typewriter, with all linebreaks and spaces, without any LATEX command being executed.

Within a paragraph, similar functionality can be accessed with
\begin{command}\ci{verb}\verb*\vert+\vert\emph{text}\verb*\vert+\vert
\end{command}
The + is just an example delimiter character. You can use any character except letters, * or blank. Many LATEX examples in this booklet are typeset with this command.


\begin{example}The \verb*\vert\ldots\vert command \ldots\par\begin{verbatim}10 PRINT ''HELLO WORLD '';
20 GOTO 10\end{verbatim}\end{example}


\begin{example}<tex2html_verbatim_mark\gt verbatim*4
\end{example}

The verb command can be used in a similar fashion with a star:
\begin{example}\verb*\vert like this :-) \vert
\end{example}

The verbatim environment and the \verb command may not be used within parameters of other commands.



Geoff Hutchison
1997-10-22