mirror of
https://github.com/python/cpython.git
synced 2025-09-19 07:00:59 +00:00
Add macros to insert RFC references much like the \manpage{} macro. Also a
macro to insert an RFC index reference. (RFC references were formatted three different ways.)
This commit is contained in:
parent
8083c176a3
commit
b16166e56f
1 changed files with 5 additions and 1 deletions
|
@ -98,6 +98,9 @@
|
||||||
\index{#4!#1 #2 #3}
|
\index{#4!#1 #2 #3}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Index an Internet RFC
|
||||||
|
\newcommand{\rfcindex}[1]{\index{RFC!#1}}
|
||||||
|
|
||||||
% Command to generate a reference to a function, statement, keyword, operator
|
% Command to generate a reference to a function, statement, keyword, operator
|
||||||
\newcommand{\stindex}[1]{\indexii{statement}{#1@{\idxcode{#1}}}}
|
\newcommand{\stindex}[1]{\indexii{statement}{#1@{\idxcode{#1}}}}
|
||||||
\newcommand{\opindex}[1]{\indexii{operator}{#1@{\idxcode{#1}}}}
|
\newcommand{\opindex}[1]{\indexii{operator}{#1@{\idxcode{#1}}}}
|
||||||
|
@ -228,6 +231,7 @@
|
||||||
\let\constant=\code
|
\let\constant=\code
|
||||||
|
|
||||||
\newcommand{\manpage}[2]{{\emph{#1}(#2)}}
|
\newcommand{\manpage}[2]{{\emph{#1}(#2)}}
|
||||||
|
\newcommand{\rfc}[1]{RFC #1\rfcindex{#1}}
|
||||||
\let\email=\code
|
\let\email=\code
|
||||||
\let\url=\code
|
\let\url=\code
|
||||||
|
|
||||||
|
@ -302,4 +306,4 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
% Uncomment the following line to use a PostScript font instead of bitmaps:
|
% Uncomment the following line to use a PostScript font instead of bitmaps:
|
||||||
%\RequirePackage{times}\typeout{Using times fonts instead of Computer Modern.}
|
\RequirePackage{times}\typeout{Using times fonts instead of Computer Modern.}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue