\versionadded: Add support for including an explanatory note along with

the versioning information, similar to \versionchanged.
This commit is contained in:
Fred Drake 2001-04-18 03:08:54 +00:00
parent 12b6457e24
commit fdfb05bb0b
1 changed files with 7 additions and 2 deletions

View File

@ -872,8 +872,13 @@
% \versionadded{1.5.2}
% \versionchanged[short explanation]{2.0}
%
\newcommand{\versionadded}[1]{%
{ New in version #1. }}
\newcommand{\versionadded}[2][\py@badkey]{%
\ifx#1\@undefined%
{ New in version #2. }%
\else%
{ New in version #2:\ #1. }%
\fi%
}
\newcommand{\versionchanged}[2][\py@badkey]{%
\ifx#1\@undefined%
{ Changed in version #2. }%