diff options
author | Fred Drake <fdrake@acm.org> | 1998-02-27 16:20:30 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-02-27 16:20:30 (GMT) |
commit | 26c73b7841e87babf3dd5e84db84d476c680d93a (patch) | |
tree | dd6e5ae4cf6ac4f2cc316058a862fcf6bc41df02 /Doc | |
parent | f9fd4e8828acf355afc836b21a693fde5114c89a (diff) | |
download | cpython-26c73b7841e87babf3dd5e84db84d476c680d93a.zip cpython-26c73b7841e87babf3dd5e84db84d476c680d93a.tar.gz cpython-26c73b7841e87babf3dd5e84db84d476c680d93a.tar.bz2 |
Added semi-structured support for feature deprecation.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/myformat.sty | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/Doc/myformat.sty b/Doc/myformat.sty index fe557e3..06d2546 100644 --- a/Doc/myformat.sty +++ b/Doc/myformat.sty @@ -94,7 +94,13 @@ \evensidemargin \oddsidemargin \marginparwidth 0.5in -\textwidth 6.5in +\@ifundefined{paperwidth}{ + \textwidth 6.5in +}{ + \textwidth \paperwidth + \advance\textwidth by -2in +} + % Style parameters and macros used by most documents here \raggedbottom @@ -450,6 +456,22 @@ \newcommand{\program}[1]{\strong{#1}} +% Deprecation stuff. +% Should be extended to allow an index / list of deprecated stuff. But +% there's a lot of stuff that needs to be done to make that automatable. +% +% First parameter is the release number that deprecates the feature, the +% second is the action the should be taken by users of the feature. +% +% Example: +% +% \deprecated {1.5.1} +% {Use \method{frobnicate()} instead.} +% +\newcommand{\deprecated}[2]{% + \strong{Deprecated since release #1.} #2\par} + + \newenvironment{tableii}[4]{% \begin{center}% \def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}% |