I like to type source code in latex. Here is the latex code to include source code in a latex file. \begin{Verbatim}[frame=single, label=Title is here, commentchar=!, rulecolor=\color{red}] Verbatim line. \end{Verbatim} See Also: http://gentoo.chem.wisc.edu/tex-archive/macros/latex/contrib/fancyvrb/fancyvrb.pdf