This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author smigaj
Recipients
Date 2005-09-17.12:50:52
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This patch alters the way the verbatim environment is
customized in the python.sty package. The old way --
essentially redefining the environment -- made the
verbatim text be surrounded by an excessive, and
somewhat irregular, amount of space. To get rid of it I
propose to use the dedicated \every@verbatim hook and
\verbatim@font commands.

As a result we get code:
- typeset in \small typeface, 
- separated from the preceding and following text by
exactly \parskip (the amount of space separating normal
paragraphs),
- indented by \leftmargini -- the indent consistent
with that used e.g. in descriptions.

The code isn't enclosed in a minipage any more, as I
can't see any reason for it now. Consequently, page
breaking inside verbatim text is now permitted (which I
consider a good thing, since listings may be lengthy).

As a minor trouble, the alltt package defining the
environment of the same name does not use the
\every@verbatim hook. However, since the code is rather
short, I propose to include the modified definition in
the python.sty package itself.

A test case: compare how the code included into
"Documenting Python" (doc.tex) looks when latexed with
the original and modified versions of python.sty.
History
Date User Action Args
2007-08-23 15:43:54adminlinkissue1293788 messages
2007-08-23 15:43:54admincreate