File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -859,6 +859,14 @@ \section{Special Markup Constructs \label{special-constructs}}
859859 The name of a Usenet newsgroup.
860860 \end {macrodesc }
861861
862+ \begin {macrodesc }{note}{\p {text}}
863+ An especially important bit of information about an API that a
864+ user should be aware of when using whatever bit of API the
865+ note pertains to. This should be the last thing in the
866+ paragraph as the end of the note is not visually marked in
867+ any way.
868+ \end {macrodesc }
869+
862870 \begin {macrodesc }{pep}{\p {number}}
863871 A reference to a Python Enhancement Proposal. This generates
864872 appropriate index entries. The text \samp {PEP \var {number}} is
@@ -989,6 +997,15 @@ \section{Special Markup Constructs \label{special-constructs}}
989997 explanation makes sense and may vary as needed.
990998 \end {macrodesc }
991999
1000+ \begin {macrodesc }{warning}{\p {text}}
1001+ An important bit of information about an API that a user should
1002+ be very aware of when using whatever bit of API the warning
1003+ pertains to. This should be the last thing in the paragraph as
1004+ the end of the warning is not visually marked in any way. This
1005+ differs from \macro {note} in that it is recommended over
1006+ \macro {note} for information regarding security.
1007+ \end {macrodesc }
1008+
9921009
9931010 \subsection {Module-specific Markup \label {module-markup } }
9941011
Original file line number Diff line number Diff line change @@ -236,6 +236,16 @@ sub do_cmd_textbf{
236236 return use_wrappers(@_ [0], ' <b>' , ' </b>' ); }
237237sub do_cmd_textit{
238238 return use_wrappers(@_ [0], ' <i>' , ' </i>' ); }
239+ sub do_cmd_note{
240+ return use_wrappers(
241+ @_ [0],
242+ " <span class=\" note\" ><b class=\" label\" >Note:</b>\n " ,
243+ ' </span>' ); }
244+ sub do_cmd_warning{
245+ return use_wrappers(
246+ @_ [0],
247+ " <span class=\" warning\" ><b class=\" label\" >Warning:</b>\n " ,
248+ ' </span>' ); }
239249
240250sub do_cmd_moreargs{
241251 return ' ...' . @_ [0]; }
Original file line number Diff line number Diff line change 881881 \end {center}
882882}
883883
884+ \newcommand {\note }[1]{\strong {Note:} #1}
885+ \newcommand {\warning }[1]{\strong {Warning:} #1}
886+
884887% Deprecation stuff.
885888% Should be extended to allow an index / list of deprecated stuff. But
886889% there's a lot of stuff that needs to be done to make that automatable.
Original file line number Diff line number Diff line change 5555 <content />
5656 </macro >
5757 <macro name =" shortversion" />
58+ <macro name =" note" >
59+ <content />
60+ </macro >
61+ <macro name =" warning" >
62+ <content />
63+ </macro >
5864 <!-- These are broken: we need to re-order the optional and required
5965 parameters, making the optional parameter the content for the
6066 element. latex2esis.py is not powerful enough to handle this.
You can’t perform that action at this time.
0 commit comments