[texhax] Treating the verbatim environment much like figures

Reinhard Kotucha reinhard.kotucha at web.de
Sun Jul 23 22:52:58 CEST 2006


>>>>> "James" == James Smith <sf at aleph-one.com> writes:

  > Hi, I'm using the verbatim environment but would like to treat the
  > listings it generates a little differently. Specifically:

  > 1) They don't necessarily appear "inline" but are positioned where
  > LaTeX thinks best, just like figures 2) I can reference them with
  > a \ref and a \label

  > Ostensibly this will stop me trying to position the listings
  > myself to avoid them bleeding from one page to the next, which is
  > becoming laborious as the text is constantly changing.

See the documentation of float.sty.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------




More information about the texhax mailing list