summaryrefslogtreecommitdiff
path: root/support/txt/rfc.sty
blob: 469a21439c36069d4e868e8ef75e4f5ac4bf56a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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}