File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -834,6 +834,17 @@ \section{Special Markup Constructs \label{special-constructs}}
834834 used.
835835 \end {macrodesc }
836836
837+ \begin {macrodesc }{mailheader}{\p {name}}
838+ The name of an \rfc {822}-style mail header. This markup does
839+ not imply that the header is being used in an email message, but
840+ can be used to refer to any header of the same `` style.'' This
841+ is also used for headers defined by the various MIME
842+ specifications. The header name should be entered in the same
843+ way it would normally be found in practice, with the
844+ camel-casing conventions being preferred where there is more
845+ than one common usage. For example: \mailheader {Content-Type}.
846+ \end {macrodesc }
847+
837848 \begin {macrodesc }{mimetype}{\p {name}}
838849 The name of a MIME type.
839850 \end {macrodesc }
Original file line number Diff line number Diff line change @@ -212,6 +212,8 @@ sub do_cmd_longprogramopt{
212212 return use_wrappers(@_ [0], ' <b class="programopt">---' , ' </b>' ); }
213213sub do_cmd_email{
214214 return use_wrappers(@_ [0], ' <span class="email">' , ' </span>' ); }
215+ sub do_cmd_mailheader{
216+ return use_wrappers(@_ [0], ' <tt class="mimeheader">' , ' </tt>' ); }
215217sub do_cmd_mimetype{
216218 return use_wrappers(@_ [0], ' <span class="mimetype">' , ' </span>' ); }
217219sub do_cmd_var{
Original file line number Diff line number Diff line change 833833\newcommand {\ctype }[1]{\texttt {#1 }} % C struct or typedef name
834834\newcommand {\cdata }[1]{\texttt {#1 }} % C variable, typically global
835835
836+ \newcommand {\mailheader }[1]{\texttt {#1 }}
836837\newcommand {\mimetype }[1]{{\small\textsf {#1}}}
837838% The \! is a "negative thin space" in math mode.
838839\newcommand {\regexp }[1]{%
You can’t perform that action at this time.
0 commit comments