mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Add a new environment for whole-paragraph (or longer) notes & warnings.
This commit is contained in:
parent
615e2505f0
commit
6ca33771f8
3 changed files with 47 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue