[texhax] Verbatim environment in LaTeX

Ian Watson ian.watson at tpg.com.au
Thu Aug 26 13:18:06 CEST 2004


Dear Listers,

  I'm trying to reduce the size of the text inside a verbatim
  environment in order to stop the display of some regression results
  spilling across into the right margin. Verbatim is needed because
  the maths symbols etc freak out LaTeX.

  I've tried redefining the verbatim environment but without success.
  So I've then tried creating a new verbatim environment, but that
  doesn't work either. Any advice would be most appreciated.

  My command, in the preamble:

  \newenvironment{myverbatim}{\small\begin{verbatim}}{\end{verbatim}\normalsize}

  Causes the following error message, after it encounters

Runaway argument?

. sysuse auto
. regress price weight length foreign

      So\ETC.
! File ended while scanning use of \@xverbatim.
<inserted text> 
                \par   


This occurs straight after the compiler encounters \begin{myverbatim}.

Thanks for any help.

-- 
Kind regards,
 Ian                          

=====================
Ian Watson
Senior Researcher
acirrt
University of Sydney
NSW 2006
Australia
======================



More information about the texhax mailing list