summaryrefslogtreecommitdiff
path: root/support/txt/rfc.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/txt/rfc.sty
Initial commit
Diffstat (limited to 'support/txt/rfc.sty')
-rw-r--r--support/txt/rfc.sty55
1 files changed, 55 insertions, 0 deletions
diff --git a/support/txt/rfc.sty b/support/txt/rfc.sty
new file mode 100644
index 0000000000..469a21439c
--- /dev/null
+++ b/support/txt/rfc.sty
@@ -0,0 +1,55 @@
+\def\rfc{\gdef\@pubtype{RFC}
+ \gdef\@pubhdr{Request for Comments:}
+ \gdef\@pubgroup{Network Working Group}}
+\def\i-d{\gdef\@pubtype{INTERNET-DRAFT}
+ \gdef\@pubhdr{INTERNET-DRAFT}
+ \gdef\@pubgroup{Internet Engineering Task Force}}
+
+\def\@rfcnum{}
+\def\rfcnum#1{\gdef\@rfcnum{#1}}
+
+\def\pubdate#1{\gdef\@pubdate{#1}}
+
+\def\address#1{\gdef\@address{#1}}
+
+\def\maketitle{\par
+ \begingroup
+ \newpage \global\@topnum\z@
+ \@maketitle
+ \@makeheadings
+ \endgroup
+ \setcounter{footnote}{0}
+ \let\maketitle\relax
+ \let\@maketitle\relax
+}
+\def\@maketitle{\newpage
+ \null
+ \begin{tabular*}{\textwidth}
+ {@{\extracolsep{0pt}} l @{\extracolsep{\fill}} r @{\extracolsep{0pt}}}
+ \@pubgroup & \@author \\
+ \@pubhdr\ \@rfcnum & \@address \\
+ & \@pubdate
+ \end{tabular*}
+ \begin{center}
+ \large\bf\@title
+ \end{center}
+\def\@makeheadings{
+ \null
+ % Generate RFC page headings
+ \gdef\@oddhead {\rm \@pubtype\ \@rfcnum \hfil \@title \hfil \@pubdate}
+ \gdef\@evenhead{\rm \@pubtype\ \@rfcnum \hfil \@title \hfil \@pubdate}
+ \gdef\@oddfoot {\rm \@author\hfil [Page \thepage ]}
+ \gdef\@evenfoot{\rm \@author\hfil [Page \thepage ]}
+ }
+}
+
+\evensidemargin 0in
+\oddsidemargin 0in
+\topmargin 0pt
+\textwidth 6in
+\textheight 8.5in
+
+\parindent 0in
+\parskip 12pt
+
+\thispagestyle{empty}