Add a new environment for whole-paragraph (or longer) notes & warnings.

This commit is contained in:
Fred Drake 2001-12-14 22:50:06 +00:00
parent 615e2505f0
commit 6ca33771f8
3 changed files with 47 additions and 4 deletions

View file

@ -919,8 +919,13 @@
\end{tabular}
}
\newcommand{\note}[1]{\strong{Note:} #1}
\newcommand{\warning}[1]{\strong{Warning:} #1}
\newcommand{\py@noticelabel@note}{Note:}
\newcommand{\py@noticelabel@warning}{Warning:}
\newenvironment{notice}[1][note]{
\par\strong{\csname py@noticelabel@#1\endcsname}
}{}
\newcommand{\note}[1]{\strong{\py@noticelabel@note} #1}
\newcommand{\warning}[1]{\strong{\py@noticelabel@warning} #1}
% Deprecation stuff.
% Should be extended to allow an index / list of deprecated stuff. But