% modifications to the standard LaTeX styles
\RequirePackage{fancyhdr}
\RequirePackage{graphicx}
\makeatletter
\textheight 625pt
\textwidth 460pt
\oddsidemargin 0pt
\evensidemargin 0pt
\marginparwidth 50pt
\topmargin 0pt
\brokenpenalty=10000
\sloppy
\pagestyle{myheadings}
%\markboth{ \hfil \protect\@date}
% {\protect\@date \hfil }
%
% Table of contents : redefine box size for numbers (default is too small)
\def\l@subsection{\@dottedtocline{2}{1.5em}{4.3em}}
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{6.2em}}
\def\l@paragraph{\@dottedtocline{4}{7.0em}{8.1em}}
\def\l@subparagraph{\@dottedtocline{5}{10em}{10em}}
%
% references environment
% \list parameters have been adjusted in the `thebibliography'
% environment to the match A&A layout of References.
\def\thebibliography#1{\section*{References\markboth
 {REFERENCES}{REFERENCES}}\list
% The \arabic{enumi} command has been removed because we don't use
% numbered citations in astronomical journals.
 {}{\setlength\labelwidth{1.4em}\leftmargin\labelwidth
 \setlength\parsep{0pt}\setlength\itemsep{0pt}
 \setlength{\itemindent}{-\leftmargin}
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
%
%\newenvironment{captions}
\def \captions    {\newcounter{fign}\section*{Figure Captions}
	\begin{list}{\bf Fig. \Arabic{fign}.}
	{\usecounter{fign}\setlength{\leftmargin}{0mm}
	\setlength{\itemindent}{0mm}}
	\small}
\def \endcaptions    {\end{list}\normalsize}
%
\def\@listI{\leftmargin\leftmargini 
 \parsep 4pt plus 2pt minus 1pt
 \topsep \parsep \itemsep \z@}
\let\@listi\@listI
\@listi 
\def\@listii{\leftmargin\leftmarginii
 \labelwidth\leftmarginii\advance\labelwidth-\labelsep
 \parsep \z@ \topsep \z@}
\def\@listiii{\leftmargin\leftmarginiii
 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep }
\def\@listiv{\leftmargin\leftmarginiv
 \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
\def\@listv{\leftmargin\leftmarginv
 \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
\def\@listvi{\leftmargin\leftmarginvi
 \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
%\def\labelitemi{\bf --}
%\def\labelitemii{$\cdot$}
%\def\labelitemiii{$\circ$}
\def\shortlist{\ifnum \@itemdepth >3 \@toodeep\else \advance\@itemdepth \@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{--}{\parsep\z@ \topsep\z@}\fi}
\let\endshortlist=\endlist
%
% \Revision
\newif\if@Revision \@Revisionfalse
\newcommand{\Revision}[1]
{\@Revisiontrue\gdef\@Revision{#1}}
% \DocumentType
\newif\if@DocumentType \@DocumentTypefalse
\newcommand{\DocumentType}[1]
{\@DocumentTypetrue\gdef\@DocumentType{#1}}
% \DocumentNumber
\newif\if@DocumentNumber \@DocumentNumberfalse
\newcommand{\DocumentNumber}[1]
{\@DocumentNumbertrue\gdef\@DocumentNumber{#1}}
% \ContactAuthor
\newif\if@ContactAuthor \@ContactAuthorfalse
\newcommand{\ContactAuthor}[1]
{\@ContactAuthortrue\gdef\@ContactAuthor{#1}}
% \owner
\newif\if@owner \@ownerfalse
\newcommand{\owner}[1]
{\@ownertrue\gdef\@owner{#1}}
% \keywords
\newif\if@keywords \@keywordsfalse
\newcommand{\keywords}[1]
{\@keywordstrue\gdef\@keywords{#1}}
%
% \maketitle
%
%\def\@maketitle{
\renewcommand{\maketitle}{
\setlength{\unitlength}{1mm}
\noindent\begin{picture}(180,215)(0,0)
%
%\put(20,173)
%{\includegraphics[width=63mm,height=42mm]{almaconcept-sm.gif}}
%{\includegraphics[width=63mm,height=42mm]{almaconcept-sm.pdf}}
%
\put(83,173){\framebox(41,42){
  \scalebox{1.2}{\begin{minipage}[b]{32mm}
  {\LARGE \bf NRAO\\[2.6mm]AIPS++\\[2.6mm]Users\\[2.6mm]Group}
  \end{minipage}}} }
%
\put(124,173){\framebox(32,42){
  \begin{minipage}[b]{31.5mm}
  {NAUG-\@DocumentNumber\\[3mm]
  Revision:\@Revision\\[3mm]
  \@date\\[3mm]
  {\tt\it \@DocumentType}\\[3mm]
  \@ContactAuthor}\end{minipage}}}
%
% Title, ...
%
\put(20,67){
\begin{minipage}[b]{136mm}
\begin{center}
{\Huge \bf \@title}
\end{center}~\\[7mm]
\if@DocumentType {\it \@DocumentType} \fi\\[7mm]
{\large \@author}\\
\end{minipage}}
%
% Owner
%
%\if@owner \put(30,62){Owner: {\large \@owner}} \fi
%\put(20,57){\framebox(130,10){}}
%
% Keywords
%
%\put(20,35){\framebox(130,22){}}
\put(20,55) {\framebox(136,10){}}
\if@keywords \put(27,60) {{\bf Keywords:} {\large \@keywords}} \fi
\put(20,46) {\framebox(136,9){}}
\put(24,50) {Author Signature: \@ContactAuthor}
\put(96,50) {Date: \@date}

\put(20,24) {\framebox(136,22){}}
\put(24,41) {Approved by: S. Myers}
%\put(30,35) { }
\put(24,28) {Institute: NRAO }
\put(96,41) {Signature:}
\put(96,28) {Date: }

\put(20,6)  {\framebox(136,18){}}
\put(24,20) {Released by: }
\put(24,12) {Institute: }
\put(96,20) {Signature:}
\put(96,12) {Date: }

\end{picture}
}
\pagestyle{fancy}
\lhead{NAUG}
\rhead{\protect\@title}
\chead{}
\renewcommand{\headrulewidth}{0pt}
%\lfoot{\protect\@date}
\cfoot{Page \thepage}
\rfoot{Contact author: \@ContactAuthor}
%\lfoot{Create Date: \protect \@date}
\newcommand{\cdate}{\@date}
\lfoot{Create Date: \cdate}
\renewcommand{\footrulewidth}{0pt}
\thispagestyle{empty}\@thanks












