Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7eac0cb

Browse files
committed
Define the \mailheader macro and document conventions for using it.
1 parent 30cf118 commit 7eac0cb

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

Doc/doc/doc.tex

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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}

Doc/perl/python.perl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ sub do_cmd_longprogramopt{
212212
return use_wrappers(@_[0], '<b class="programopt">---', '</b>'); }
213213
sub 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>'); }
215217
sub do_cmd_mimetype{
216218
return use_wrappers(@_[0], '<span class="mimetype">', '</span>'); }
217219
sub do_cmd_var{

Doc/texinputs/python.sty

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,7 @@
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]{%

0 commit comments

Comments
 (0)