diff options
author | Fred Drake <fdrake@acm.org> | 1998-03-25 15:41:23 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-03-25 15:41:23 (GMT) |
commit | 55730316c9fb9a82331c4b56c8f9dce1b93bce05 (patch) | |
tree | 3d97d055187e2598e25c872cc1d7b1172db307ef /Doc/texinputs/python.sty | |
parent | 050be83da9f730f179dd370abd4b73807f3f7d63 (diff) | |
download | cpython-55730316c9fb9a82331c4b56c8f9dce1b93bce05.zip cpython-55730316c9fb9a82331c4b56c8f9dce1b93bce05.tar.gz cpython-55730316c9fb9a82331c4b56c8f9dce1b93bce05.tar.bz2 |
Don't use the fncychap package for HOWTO documents; appendices break. Still
use them for manuals.
Diffstat (limited to 'Doc/texinputs/python.sty')
-rw-r--r-- | Doc/texinputs/python.sty | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index b2ef8f1..d432a9f 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -6,13 +6,6 @@ \ProvidesPackage{python} [1998/01/11 LaTeX package (Python markup)] -% The "fncychap" package is used to get the nice chapter headers. The -% .sty file is distributed with Python, so you should not need to disable -% it. You'd also end up with a mixed page style; uglier than stock LaTeX! -% -\RequirePackage[Bjarne]{fncychap}\typeout{Using fancy chapter headings.} - - % for PDF output, use maximal compression & a lot of other stuff % (test for PDF recommended by Tanmoy Bhattacharya <tanmoy@qcd.lanl.gov>) % @@ -406,6 +399,8 @@ \let\nodename=\label +\newcommand{\sectcode}[1]{{\sectcodefont{#1}}} + % For these commands, use \command{} to get the typography right, not % {\command}. This works better with the texinfo translation. \newcommand{\ABC}{{\sc abc}} @@ -415,7 +410,7 @@ \newcommand{\Cpp}{C\protect\raisebox{.18ex}{++}} \newcommand{\C}{C} \newcommand{\EOF}{{\sc eof}} -\newcommand{\NULL}{\code{NULL}} +\newcommand{\NULL}{\sectcode{NULL}} % code is the most difficult one... \newcommand{\code}[1]{{\@vobeyspaces\@noligs\def\{{\char`\{}\def\}{\char`\}}\def\~{\char`\~}\def\^{\char`\^}\def\e{\char`\\}\def\${\char`\$}\def\#{\char`\#}\def\&{\char`\&}\def\%{\char`\%}% @@ -463,17 +458,17 @@ % For now, don't do anything really fancy with them; just use them as % logical markup. This might change in the future. % -\let\module=\code -\let\keyword=\code -\let\exception=\code -\let\class=\code -\let\function=\code -\let\member=\code -\let\method=\code - -\let\cfunction=\code -\let\ctype=\code -\let\cdata=\code +\let\module=\sectcode +\let\keyword=\sectcode +\let\exception=\sectcode +\let\class=\sectcode +\let\function=\sectcode +\let\member=\sectcode +\let\method=\sectcode + +\let\cfunction=\sectcode +\let\ctype=\sectcode +\let\cdata=\sectcode \newcommand{\mimetype}[1]{{\small\textsf{#1}}} % The \! is a "negative thin space" in math mode. @@ -538,8 +533,6 @@ \advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}% } -\newcommand{\sectcode}[1]{{\sectcodefont{#1}}} - % Cross-referencing (AMK) % Sample usage: % \begin{seealso} |