diff options
Diffstat (limited to 'Doc/texinputs')
-rw-r--r-- | Doc/texinputs/python.sty | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index 51ee804..021ba5c 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -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 |