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

Skip to content

Commit b16166e

Browse files
committed
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.)
1 parent 8083c17 commit b16166e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Doc/myformat.sty

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@
9898
\index{#4!#1 #2 #3}
9999
}
100100

101+
% Index an Internet RFC
102+
\newcommand{\rfcindex}[1]{\index{RFC!#1}}
103+
101104
% Command to generate a reference to a function, statement, keyword, operator
102105
\newcommand{\stindex}[1]{\indexii{statement}{#1@{\idxcode{#1}}}}
103106
\newcommand{\opindex}[1]{\indexii{operator}{#1@{\idxcode{#1}}}}
@@ -228,6 +231,7 @@
228231
\let\constant=\code
229232

230233
\newcommand{\manpage}[2]{{\emph{#1}(#2)}}
234+
\newcommand{\rfc}[1]{RFC #1\rfcindex{#1}}
231235
\let\email=\code
232236
\let\url=\code
233237

@@ -302,4 +306,4 @@
302306
}
303307

304308
% Uncomment the following line to use a PostScript font instead of bitmaps:
305-
%\RequirePackage{times}\typeout{Using times fonts instead of Computer Modern.}
309+
\RequirePackage{times}\typeout{Using times fonts instead of Computer Modern.}

0 commit comments

Comments
 (0)