]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added semi-structured support for feature deprecation.
authorFred Drake <fdrake@acm.org>
Fri, 27 Feb 1998 16:20:30 +0000 (16:20 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 27 Feb 1998 16:20:30 +0000 (16:20 +0000)
Doc/myformat.sty

index fe557e36e76f49fd9603d439b4a8c6402135c668..06d254693ada697eb86283fc675315fe6cfab9fb 100644 (file)
 \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
 \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\\}%