[Tugindia] LaTeX question: Verbatim font size adjustment.
Josy P. Pullockara
josy at ctfd.cmmacs.ernet.in
Fri Oct 16 07:15:31 CEST 2009
On Fri, 2009-10-16 at 10:28 +0530, Manjunatha G. wrote:
> I use the \begin{verbatim} ... \end{verbatim} block when I want to
> display computer output. It works fine, but I want to be able to
> control the font size in the block - how do I do that?
\documentclass{article}
\title{Verbatim Example}
\begin{document}
\maketitle
Below is a verbatim example.
{\tiny
\begin{verbatim}
gap> Sum(GSym2);
[ 2*x_1^2+2*x_2^2, 0, 2*x_1^2+2*x_2^2 ]
gap> Sum(GSym3);
[ 0, 0, 0, 0 ]
gap> Sum(GSym4);
[ 2*x_1^4+2*x_2^4, 2*x_1^3*x_2-2*x_1*x_2^3, 4*x_1^2*x_2^2,
-2*x_1^3*x_2+2*x_1*x_2^3, 0 ]
\end{verbatim}
}
The above works!
\end{document}
Regards,
--
Josy P. Pullockara
Scientist, eMail:josy at ctfd.cmmacs.ernet.in
Computational and Theoretical Phone:+91-80-2505 1620
Fluid Dynamics Division, Fax :+91-80-2522 0952
National Aerospace Laboratories Cell :+91-9448376505
----------------------------------------------------------------------
Avoid sending me Microsoft Word, Excel or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
More information about the tugindia
mailing list