# [Tugindia] Verbatim like environment

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}

\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