comparison Doc/texinputs/python.sty @ 8762:4192a73ca430 legacy-trunk

\versionadded, \versionchanged: New macros.
author Fred Drake <fdrake@acm.org>
date Mon, 27 Jul 1998 20:32:33 +0000
parents 99793302d10d
children 9138272c1fe6
comparison
equal deleted inserted replaced
8761:861cd2278348 8762:4192a73ca430
696 % 696 %
697 % First parameter is the release number that deprecates the feature, the 697 % First parameter is the release number that deprecates the feature, the
698 % second is the action the should be taken by users of the feature. 698 % second is the action the should be taken by users of the feature.
699 % 699 %
700 % Example: 700 % Example:
701 %
702 % \deprecated{1.5.1}{Use \method{frobnicate()} instead.} 701 % \deprecated{1.5.1}{Use \method{frobnicate()} instead.}
703 % 702 %
704 \newcommand{\deprecated}[2]{% 703 \newcommand{\deprecated}[2]{%
705 \strong{Deprecated since release #1.} #2\par} 704 \strong{Deprecated since release #1.} #2\par}
706 705
707 706 % New stuff.
707 % This should be used to mark things which have been added to the
708 % development tree but that aren't in the release, but are documented.
709 % This allows release of documentation that already includes updated
710 % descriptions.
711 %
712 % Example:
713 % \versionadded{1.5.2}
714 %
715 \newcommand{\versionadded}[1]{%
716 \strong{New in version #1.}\par}
717 \newcommand{\versionchanged}[1]{%
718 \strong{Changed in version #1.}\par}
719
720
721 % Tables.
722 %
708 \newenvironment{tableii}[4]{% 723 \newenvironment{tableii}[4]{%
709 \begin{center}% 724 \begin{center}%
710 \def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}% 725 \def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}%
711 \begin{tabular}{#1}\strong{#3}&\strong{#4} \\ \hline% 726 \begin{tabular}{#1}\strong{#3}&\strong{#4} \\ \hline%
712 }{% 727 }{%
784 \def\seetext##1{\par{##1}} 799 \def\seetext##1{\par{##1}}
785 \let\seemodule=\py@seemodule 800 \let\seemodule=\py@seemodule
786 }{\par} 801 }{\par}
787 802
788 803
789 % Allow the release number to be specified independently of the 804 % Allow the Python release number to be specified independently of the
790 % \date{}. This allows the date to reflect the document's date and 805 % \date{}. This allows the date to reflect the document's date and
791 % release to specify the Python release that is documented. 806 % release to specify the Python release that is documented.
792 % 807 %
793 \newcommand{\py@release}{} 808 \newcommand{\py@release}{}
794 \newcommand{\version}{} 809 \newcommand{\version}{}