[Tugindia] Verbatim like environment
Srikrishna Doraiswamy
srikrishnad at gmail.com
Thu Apr 1 17:21:09 CEST 2010
I think the best way to do what you want is to do something as follows
include \usepackage{alltt}
and in your file include the following, instead of the verbatim
\begin{alltt}
{\sf
if (shr)
{
Angle += 5.0;
if (latAngle \(<\) 360.0) latAngle -= 360.0;
longAngle += 1.0;
if (longAngle \(>\) 360.0) longAngle -= 360.0;
}
}
\end{alltt}
This will give you the verbatim text, but with math ( which can be used by
\(...\) ) and the {\sf...} will make it serif.
Srikrishna
More information about the tugindia
mailing list