
%
%
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{3}
\oddsidemargin 0.5in 
\evensidemargin 0.25in 
\marginparwidth 0.25in 
\topmargin .25in 
\headheight 14pt         %    Height of box containing running head.
\footskip 29.5pt
\textheight = 41\baselineskip
\textwidth 5.75in 
%
\def\@chapapp{Section}
\def\panel#1{\gdef\@panel{#1}}
\def\publisher#1{\gdef\@publisher{#1}}
\def\pubaddress#1{\gdef\@pubaddress{#1}}
\def\offaddress#1{\gdef\@offaddress{#1}}
\def\shorttitle#1{\gdef\@shorttitle{#1}}
\def\standardnumber#1{\gdef\@standardnumber{#1}}
%
\def\appendix{\par
 \addtocontents{toc}{\protect\addvspace{13pt}}
 \addtocontents{toc}{\protect\contentsline {chapter}
 {\protect\Large \protect\bf Appendixes}{}}
 \addtocontents{toc}{\protect\addvspace{5pt}}
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \def\@chapapp{Appendix}
 \def\thechapter{\Alph{chapter}}}
%
\def\startstandard{\setcounter{page}{0}\pagenumbering{arabic}}
%
\def\authority{\titlepage\null\vfil
\setcounter{page}{1}}
\def\endauthority{\par\vfil\null
\vskip 0.05em {\lineskip .05em
\begin{tabular}[t]{lp{210pt}}\@panel
\end{tabular}\par
\vskip2\baselineskip\par
This standard is published and maintained by the NOST\@. Send comments and 
orders for NOST documents to: \par
\begin{center}
\begin{tabular}[t]{l}\@pubaddress
\end{tabular}
\end{center}\par 
\vskip2\baselineskip\par
Other information about {\em FITS\/} can be obtained from the {\em FITS\/} 
Support Office.  The {\em FITS\/} Support Office 
can be contacted as follows: 
\par
\begin{center}
\begin{tabular}[t]{l}\@offaddress
\end{tabular}
\end{center}\par} 
\vfil\null
\gdef\@pubaddress{}
\gdef\@panel{}
\gdef\@offaddress{}}
%                       LIST OF FIGURES and  LIST OF TABLES
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\section*{List of Figures\@mkboth
   {List of Figures}{List of Figures}}\@starttoc{lof}\if@restonecol
   \twocolumn\fi}        
\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
  \fi\section*{List of Tables\@mkboth
   {List of Tables}{List of Tables}}\@starttoc{lot}\if@restonecol
    \twocolumn\fi}
\let\l@table\l@figure
%
\def\maketitle{\begin{titlepage}
 \let\footnotesize\small      % Local definitions to make \thanks produce
 \let\footnoterule\relax      % \normalsize footnotes with no separating rule.
 \setcounter{page}{0}
 \null
 \vfil
 \vskip 10pt
\makebox[0pt][l]{\rule[ 18pt]{17pt}{1pt}\rule[ 17pt]{17pt}{3pt}%
\rule[ 16pt]{17pt}{5pt}}%
\makebox[0pt][l]{\rule[ 10pt]{17pt}{1pt}\rule[  9pt]{17pt}{3pt}%
\rule[  8pt]{17pt}{5pt}}%
\makebox[0pt][l]{\rule[  0pt]{17pt}{1pt}\rule[ -1pt]{17pt}{3pt}%
\rule[ -2pt]{17pt}{5pt}}%
\hspace{60pt} {\Huge NOST} 
 \vskip 40pt                   % To adjust centering.
 \begin{center}
   {\LARGE \@title \par}        % Set title in \LARGE size.
   \vskip 3em                  % Vertical space after title.
   {\large                     % Set author in \large size.
     \lineskip .75em
     \begin{tabular}[t]{c}\@author 
     \end{tabular}\par}      
    \vskip 1.5em               % Vertical space after author.
   {\large \@date \par}        % Set date in \large size.
 \vskip 30pt                   % To adjust centering.
   {\large Draft Standard}
 \vskip 30pt                   % To adjust centering.
   {\large \@standardnumber \par}        % Set standard number in \large size.
\end{center} \par
\vskip 6em \par
\begin{center}
\begin{tabular}[t]{l}\@publisher
\end{tabular}
\end{center}\par
\@thanks
\vfil
\null
\end{titlepage}
\setcounter{footnote}{0}       % Footnotes start at zero again.
\let\thanks\relax
\gdef\@publisher{}\gdef\@standardnumber{}                         
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\maketitle\relax}    
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% fancyheadings.sty version 1.0                                            % 
% Fancy headers and footers.                                               % 
% Piet van Oostrum, Dept of Computer Science, University of Utrecht        % 
% Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands          % 
% Telephone: +31-30-531806. piet@cs.ruu.nl (mcvax!hp4nl!ruuinf!piet)       % 
% March, 1989.                                                             % 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
\def\lhead{\@ifnextchar[{\@xlhead}{\@ylhead}}
\def\@xlhead[#1]#2{\gdef\@elhead{#1}\gdef\@olhead{#2}}
\def\@ylhead#1{\gdef\@elhead{#1}\gdef\@olhead{#1}}
\def\chead{\@ifnextchar[{\@xchead}{\@ychead}}
\def\@xchead[#1]#2{\gdef\@echead{#1}\gdef\@ochead{#2}}
\def\@ychead#1{\gdef\@echead{#1}\gdef\@ochead{#1}}
\def\rhead{\@ifnextchar[{\@xrhead}{\@yrhead}}
\def\@xrhead[#1]#2{\gdef\@erhead{#1}\gdef\@orhead{#2}}
\def\@yrhead#1{\gdef\@erhead{#1}\gdef\@orhead{#1}}
\def\lfoot{\@ifnextchar[{\@xlfoot}{\@ylfoot}}
\def\@xlfoot[#1]#2{\gdef\@elfoot{#1}\gdef\@olfoot{#2}}
\def\@ylfoot#1{\gdef\@elfoot{#1}\gdef\@olfoot{#1}}
\def\cfoot{\@ifnextchar[{\@xcfoot}{\@ycfoot}}
\def\@xcfoot[#1]#2{\gdef\@ecfoot{#1}\gdef\@ocfoot{#2}}
\def\@ycfoot#1{\gdef\@ecfoot{#1}\gdef\@ocfoot{#1}}
\def\rfoot{\@ifnextchar[{\@xrfoot}{\@yrfoot}}
\def\@xrfoot[#1]#2{\gdef\@erfoot{#1}\gdef\@orfoot{#2}}
\def\@yrfoot#1{\gdef\@erfoot{#1}\gdef\@orfoot{#1}}
\newdimen\headrulewidth
\newdimen\footrulewidth
\newdimen\plainheadrulewidth
\newdimen\plainfootrulewidth
\newdimen\headwidth
\newif\if@fancyplain \@fancyplainfalse
\def\fancyplain#1#2{\if@fancyplain#1\else#2\fi}
\lhead[\fancyplain{}{\sl\rightmark}]{\fancyplain{}{\sl\leftmark}}
\chead{}
\rhead[\fancyplain{}{\sl\leftmark}]{\fancyplain{}{\sl\rightmark}}
\lfoot{}
\cfoot{\rm\thepage} % page number
\rfoot{}
\def\@fancyhead#1#2#3#4#5{#1\hbox to\headwidth{\vbox{\hbox
{\rlap{\parbox[b]{\headwidth}{\raggedright#2\strut}}\hfill
\parbox[b]{\headwidth}{\centering#3\strut}\hfill
\llap{\parbox[b]{\headwidth}{\raggedleft#4\strut}}}\headrule}}#5}
\def\@fancyfoot#1#2#3#4#5{#1\hbox to\headwidth{\vbox{\footrule
\hbox{\rlap{\parbox[t]{\headwidth}{\raggedright#2\strut}}\hfill
\parbox[t]{\headwidth}{\centering#3\strut}\hfill
\llap{\parbox[t]{\headwidth}{\raggedleft#4\strut}}}}}#5}
\def\headrule{{\if@fancyplain\headrulewidth\plainheadrulewidth\fi
\hrule\@height\headrulewidth\@width\headwidth \vskip-\headrulewidth}}
\def\footrule{{\if@fancyplain\footrulewidth\plainfootrulewidth\fi
\vskip-0.3\normalbaselineskip\vskip-\footrulewidth
\hrule\@width\headwidth\@height\footrulewidth\vskip0.3\normalbaselineskip}}
\def\ps@fancy{
\let\@mkboth\markboth
\@ifundefined{chapter}{\def\sectionmark##1{\markboth
{\uppercase{\ifnum \c@secnumdepth>\z@
 \thesection\hskip 1em\relax \fi ##1}}{}}
\def\subsectionmark##1{\markright {\ifnum \c@secnumdepth >\@ne
 \thesubsection\hskip 1em\relax \fi ##1}}}
{\def\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth>\m@ne
 \@chapapp\ \thechapter. \ \fi ##1}}{}}
\def\sectionmark##1{\markright{\uppercase{\ifnum \c@secnumdepth >\z@
 \thesection. \ \fi ##1}}}}
\def\@oddhead{\@fancyhead\relax\@olhead\@ochead\@orhead\hss}
\def\@oddfoot{\@fancyfoot\relax\@olfoot\@ocfoot\@orfoot\hss}
\def\@evenhead{\@fancyhead\hss\@elhead\@echead\@erhead\relax}
\def\@evenfoot{\@fancyfoot\hss\@elfoot\@ecfoot\@erfoot\relax}
\headwidth\textwidth}
\def\ps@fancyplain{\ps@fancy \let\ps@plain\ps@plain@fancy}
\def\ps@plain@fancy{\@fancyplaintrue\ps@fancy}
%
\headrulewidth          0.4pt
\footrulewidth		0.4pt
\plainheadrulewidth	0.4pt
\plainfootrulewidth	0.4pt
\addtolength{\headwidth}{\marginparsep}
\addtolength{\headwidth}{\marginparwidth}
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}} % remember chapter title
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} % section number and title
\lhead[\fancyplain{\bf\thepage}{\bf\thepage}]
{\fancyplain{\bf\rightmark}{\bf\rightmark}}
\chead{}
\rhead[\fancyplain{\bf\leftmark}{\bf\leftmark}]
{\fancyplain{\bf\thepage}{\bf\thepage}}
\lfoot[\fancyplain{\footnotesize NASA/Science Office of Standards and Technology}
{\footnotesize NASA/Science Office of Standards and Technology}]{\fancyplain{}{}}  
\cfoot{}
\rfoot[\fancyplain{}{}]{\fancyplain{\footnotesize \@shorttitle}
{\footnotesize \@shorttitle}}
%
\pagestyle{fancyplain}
\pagenumbering{roman}          
