[Patches] [ python-Patches-1293788 ] python.sty correction - verbatim environment

SourceForge.net noreply at sourceforge.net
Sat Sep 17 14:50:52 CEST 2005


Patches item #1293788, was opened at 2005-09-17 14:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1293788&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Wojciech Smigaj (smigaj)
Assigned to: Nobody/Anonymous (nobody)
Summary: python.sty correction - verbatim environment

Initial Comment:
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 at verbatim hook and
\verbatim at 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 at 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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1293788&group_id=5470


More information about the Patches mailing list