Notice! This document is currently in Archived status.
The content of this document may be incorrect or outdated.

Print this article Edit this article

LaTeX: Including Source Code in a LaTeX Document

Occasionally it is desired to have text printed literally in a LaTeX document, without any formatting. Source code is an example of text you might desire to print literally. To accomplish this, we wrap the literal text in {verbatim} tags as such:

\begin{verbatim}
(insert literal text)
\end{verbatim}


Reference:

Kopka, Helmut. Daly, Patrick W.  "A Guide to LaTeX: Document Preparation
for Beginners and Advanced Users" Addison-Wesley Publishing Company.
1993. ISBN 0-201-56889-6.

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: Jun 26, 2007 1:11 pm GMT-4 by admin
JumpURL: https://eng.purdue.edu/jump/f08bf