[Doc-SIG] Long verbatim blocks

Fred L. Drake, Jr. fdrake@acm.org
Fri, 15 Jun 2001 16:02:09 -0400 (EDT)


Robert Ternosky writes:
 > I'm using the python-docs TeX setup/build process and I'm having a problem
 > with long verbatim blocks. I have a code block that is longer than a page 
 > and upon generation of PDF or PS, the text runs off the page instead of page
 > breaking (the HTML output looks fine).

  The Python style sheets, in order to get verbatim content indented
the way we like it, actually places the content in a minipage, which
doesn't work properly with page breaks (a TeX or LaTeX issue I don't
know how to finesse).  If anyone knows how to create an indented
verbatim environment that doesn't have the minipage problem, I'd love
to hear about it.  For long code blocks, i've just been breaking them
up manually into separate verbatim blocks at points that seem to be
appropriate and have the desired affect, but I don't consider this a
good solution.

 > I tried \verbatiminput{filename}, which works great for PDF and PS, but for the
 > html output, it just displays 'filename' instead of the contents of
 > 'filename'.

  That's because the HTML conversion doesn't know about \verbatiminput
-- I should be able to fix that.  Can you point me to documentation
for it, so I can be sure I get the details right?


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations