Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af958c7

Browse files
committed
\versionadded,
\versionchanged: New macros.
1 parent 9ad9c9b commit af958c7

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

Doc/texinputs/python.sty

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,13 +698,28 @@
698698
% second is the action the should be taken by users of the feature.
699699
%
700700
% Example:
701-
%
702701
% \deprecated{1.5.1}{Use \method{frobnicate()} instead.}
703702
%
704703
\newcommand{\deprecated}[2]{%
705704
\strong{Deprecated since release #1.} #2\par}
706705

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+
707720

721+
% Tables.
722+
%
708723
\newenvironment{tableii}[4]{%
709724
\begin{center}%
710725
\def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}%
@@ -786,7 +801,7 @@
786801
}{\par}
787802

788803

789-
% Allow the release number to be specified independently of the
804+
% Allow the Python release number to be specified independently of the
790805
% \date{}. This allows the date to reflect the document's date and
791806
% release to specify the Python release that is documented.
792807
%

0 commit comments

Comments
 (0)