%
% This is a LaTex style file to prepare FCRAO proposals.  
% Derived from the JCMT proposal style
% Gopal Narayanan: 12/7/99
% Questions and comments to gopal@astro.umass.edu

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define the text fields
%   First the info about the P.I.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\PIfirstname#1{\gdef\@PIfirstname{#1}}\def\@PIfirstname{}
\def\PIlastname#1{\gdef\@PIlastname{#1}}\def\@PIlastname{}
\newif\if@PIthesis \@PIthesisfalse\def\PIthesis{\@PIthesistrue}
\def\institution#1{\gdef\@institution{#1}}\def\@institution{}
\def\sundries#1{\gdef\@sundries{#1~}}\def\@sundries{}
\def\street#1{\gdef\@street{#1}}\def\@street{}
\def\town#1{\gdef\@town{#1~}}\def\@town{}
\def\postalcode#1{\gdef\@postalcode{#1~}}\def\@postalcode{}
\def\telephone#1{\gdef\@telephone{#1}}\def\@telephone{}
\def\pifax#1{\gdef\@pifax{#1}}\def\@pifax{}
\def\email#1{\gdef\@email{#1}}\def\@email{}
\def\country#1{\gdef\@country{#1}}\def\@country{}
\def\USstate#1{\gdef\@USstate{#1~~}}\def\@USstate{}
%
%   Define info about co-investigators.
%
\def\CoIAfirstname#1{\gdef\@CoIAfn{#1~}}\def\@CoIAfn{}
\def\CoIAlastname#1{\gdef\@CoIAln{#1~}}\def\@CoIAln{}
\newif\if@CoIAthesis \@CoIAthesisfalse\def\CoIAthesis{\@CoIAthesistrue}
\def\CoIAinst#1{\gdef\@CoIAinst{#1~}}\def\@CoIAinst{}
\def\CoIAcountry#1{\gdef\@CoIAcntry{#1}}\def\@CoIAcntry{}
\def\CoIBfirstname#1{\gdef\@CoIBfn{#1~}}\def\@CoIBfn{}
\def\CoIBlastname#1{\gdef\@CoIBln{#1~}}\def\@CoIBln{}
\newif\if@CoIBthesis \@CoIBthesisfalse\def\CoIBthesis{\@CoIBthesistrue}
\def\CoIBinst#1{\gdef\@CoIBinst{#1~}}\def\@CoIBinst{}
\def\CoIBcountry#1{\gdef\@CoIBcntry{#1}}\def\@CoIBcntry{}
\def\CoICfirstname#1{\gdef\@CoICfn{#1~}}\def\@CoICfn{}
\def\CoIClastname#1{\gdef\@CoICln{#1~}}\def\@CoICln{}
\newif\if@CoICthesis \@CoICthesisfalse\def\CoICthesis{\@CoICthesistrue}
\def\CoICinst#1{\gdef\@CoICinst{#1~}}\def\@CoICinst{}
\def\CoICcountry#1{\gdef\@CoICcntry{#1}}\def\@CoICcntry{}
% 
%   Define title 
%
\def\title#1{\gdef\@titl{#1}}\def\@titl{}
\def\thesistat#1{\gdef\@thesistat{#1}}\def\@thesistat{}
\def\scientificcategory#1{\gdef\@scicat{#1}}\def\@scicat{}
\long\def\abstract#1{\gdef\@abstr{#1}}\def\@abstr{}
\long\def\schedule#1{\gdef\@sched{#1}}\def\@sched{}
%
%   Define receivers and time requirements.
%	(not HST compatible)
%

\def\instrument#1{\gdef\@instrument{#1}}\def\@instrument{}

\newif\if@noblank\@noblanktrue \def \blank{\@noblankfalse}
\def\checkoff{$\bigcirc$}
\def\checkon{\if@noblank$\bigotimes$\else\checkoff\fi}
\def\check#1{#1\checkon\else\checkoff\fi}
\def\nocheck#1{#1\checkoff\else\checkon\fi}
\newif\if@seq \@seqfalse\def\seq{\@seqtrue}
\newif\if@faas \@faasfalse\def\faas{\@faastrue}
\newif\if@qef \@qeffalse\def\qef{\@qeftrue}
\newif\if@other \@otherfalse\def\other{\@othertrue}
%\def\seqhours#1{\gdef\@seqhours{#1}}\def\@seqhours{}
%\def\bolohours#1{\gdef\@bolohours{#1}}\def\@bolohours{}
%\def\rxtwommhours#1{\gdef\@rxtwommhours{#1}}\def\@rxtwommhours{}
%\def\rxonemmhours#1{\gdef\@rxonemmhours{#1}}\def\@rxonemmhours{}
%\def\fponemmhours#1{\gdef\@fponemmhours{#1}}\def\@fponemmhours{}
%\def\redmchours#1{\gdef\@redmchours{#1}}\def\@redmchours{}
%\def\otherhours#1{\gdef\@otherhours{#1}}\def\@otherhours{}
%
%	Define Breakdown of Time Requested
%		I'd like to do away with this section in next iteration
%
\def\tranA#1{\gdef\@tranA{#1}}\def\@tranA{}
\def\freqtranA#1{\gdef\@freqtranA{#1}}\def\@freqtranA{}
\def\reqdaysA#1{\gdef\@reqdaysA{#1}}\def\@reqdaysA{}
\def\lstA#1{\gdef\@lstA{#1}}\def\@lstA{}
\def\tottimA#1{\gdef\@tottimA{#1}}\def\@tottimA{}%
%
\def\tranB#1{\gdef\@tranB{#1}}\def\@tranB{}
\def\freqtranB#1{\gdef\@freqtranB{#1}}\def\@freqtranB{}
\def\reqdaysB#1{\gdef\@reqdaysB{#1}}\def\@reqdaysB{}
\def\lstB#1{\gdef\@lstB{#1}}\def\@lstB{}
\def\tottimB#1{\gdef\@tottimB{#1}}\def\@tottimB{}
%
\def\tranC#1{\gdef\@tranC{#1}}\def\@tranC{}
\def\freqtranC#1{\gdef\@freqtranC{#1}}\def\@freqtranC{}
\def\reqdaysC#1{\gdef\@reqdaysC{#1}}\def\@reqdaysC{}
\def\lstC#1{\gdef\@lstC{#1}}\def\@lstC{}
\def\tottimC#1{\gdef\@tottimC{#1}}\def\@tottimC{}
%
\def\tranD#1{\gdef\@tranD{#1}}\def\@tranD{}
\def\freqtranD#1{\gdef\@freqtranD{#1}}\def\@freqtranD{}
\def\reqdaysD#1{\gdef\@reqdaysD{#1}}\def\@reqdaysD{}
\def\lstD#1{\gdef\@lstD{#1}}\def\@lstD{}
\def\tottimD#1{\gdef\@tottimD{#1}}\def\@tottimD{}
%
% Mode of Operation
%

\newif\if@otf \@otffalse\def\otf{\@otftrue}
\newif\if@psw \@pswfalse\def\psw{\@pswtrue}
\newif\if@bsw \@bswfalse\def\bsw{\@bswtrue}
\newif\if@fsw \@fswfalse\def\fsw{\@fswtrue}
\newif\if@multi \@multifalse\def\multi{\@multitrue}

\def\otfcomments#1{\gdef\@otfcomments{#1}}\def\@otfcomments{}
\def\pswcomments#1{\gdef\@pswcomments{#1}}\def\@pswcomments{}
\def\bswcomments#1{\gdef\@bswcomments{#1}}\def\@bswcomments{}
\def\fswcomments#1{\gdef\@fswcomments{#1}}\def\@fswcomments{}
\def\multicomments#1{\gdef\@multicomments{#1}}\def\@multicomments{}
%
%	Define justification & technical stuff
%
%\long\def\publications#1{\gdef\@publications{#1}}\def\@publications{}
\long\def\justification#1{\gdef\@justification{#1}}\def\@justification{}
\long\def\describeobservations#1{\gdef\@technical{#1}}\def\@technical{}
%\long\def\figs_and_tabs#1{\gdef\@figsandtabs{#1}}\def\@figsandtabls{}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%

 \topmargin -2.0cm
 \textheight 8.5in
 \textwidth 6.5in
 \oddsidemargin 0.0cm
 \evensidemargin 0.0cm
 \parskip 8pt plus 3pt minus 2pt
 \parindent 0in
 \pagestyle{empty}	

% \topmargin -0.75in
% \textheight 9.0in
% \textwidth 7.5in
% \oddsidemargin -0.5in
% \evensidemargin -0.5in
% \parskip 1.2ex
% \parindent 2em
% \pagestyle{empty}			
                                                                                
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % These fonts may need local changes
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                                                                                
 \font\ajfrn=cmr10
 \font\ajfrL=cmr12
 \font\ajfbL=cmssbx12	
 \font\ajbf=cmssbx10
 \font\ajssl=cmss12
 \font\ajsss=cmss8
                                                                                
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                                                                                
                                                                                
 \small\setlength{\baselineskip}{2.3mm}
                                                                                
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%

 %?#$&page1

 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%
\def \frontpage {
  
 {\setlength{\unitlength}{1.0cm}
 \begin{picture}(16.5,21.30)(00.00,3.0)
	
 \put(00.30,22.00){{\sf Number}}
 \put(02.0,22.00){\rule{3cm}{0.03cm}}
 \put(00.30,21.50){{\sf Priority}}
 \put(02.0,21.50){\rule{3cm}{0.03cm}}

 
 \put(5.4,20.7){{\ajfbL FCRAO PROPOSAL COVER SHEET}}
% \put(07.30,27.8){{\ajbf APPLICATION FOR TELESCOPE TIME }}
 \put(00.30,20.10){\rule{16.5cm}{0.03cm}}

%
%	1(i). Principal Investigator
%

 \put(00.35,19.6){{\sf I }}
 \put(01.20,19.6){{\sf 1) }}
 \put(01.65,19.6){{\sf Principal Investigator: }}
 \put(01.65,19.2){{\sf Last Name }}
 \put(10.00,19.2){{\sf First Name}}
 \put(01.8,18.8){{\ajbf \@PIlastname\if@PIthesis{{\ajfrn
 [Ph.D. Thesis]}}\fi}}
 \put(01.70,18.7){\line(1,0){7.6}}
 \put(01.70,18.7){\line(0,1){0.2}}
 \put(09.30,18.7){\line(0,1){0.2}}
 \put(10.1,18.8){{\ajbf \@PIfirstname}}
 \put(10.00,18.7){\line(1,0){4.0}}
 \put(10.00,18.7){\line(0,1){0.2}}
 \put(14.00,18.7){\line(0,1){0.2}}
 \put(01.65,18.1){{\sf Address }}
 \put(10.60,18.1){{\sf Full Internet E. Mail address: }}
 \put(2.05,17.7){{\sf \@institution~~\@sundries}}
 \put(1.95,17.6){\line(1,0){7.7}}
 \put(1.95,17.6){\line(0,1){0.2}}
 \put(9.65,17.6){\line(0,1){0.2}}
 \put(10.45,17.7){{\sf \@email}}
 \put(10.35,17.6){\line(1,0){5.65}}
 \put(10.35,17.6){\line(0,1){0.2}}
 \put(16,17.6){\line(0,1){0.2}}
 \put(11.10,17.1){{\sf Fax: }}
 \put(12.40,17.2){{\sf \@pifax}}
 \put(12.30,17.1){\line(1,0){3.5}}
 \put(12.30,17.1){\line(0,1){0.2}}
 \put(15.80,17.1){\line(0,1){0.2}}
 \put(02.05,17.2){{\sf \@street}}
 \put(1.95,17.1){\line(1,0){7.7}}
 \put(1.95,17.1){\line(0,1){0.2}}
 \put(9.65,17.1){\line(0,1){0.2}}
 \put(9.95,16.6){{\sf Tel. \& Ext: }}
 \put(12.40,16.7){{\sf \@telephone}}
 \put(12.30,16.6){\line(1,0){3.5}}
 \put(12.30,16.6){\line(0,1){0.2}}
 \put(15.80,16.6){\line(0,1){0.2}}
 \put(02.05,16.7){{\sf \@town \@USstate \@postalcode \@country}}
 \put(1.95,16.6){\line(1,0){7.7}}
 \put(1.95,16.6){\line(0,1){0.2}}
 \put(9.65,16.6){\line(0,1){0.2}}

%
%	1(ii). Collaborators
%		Figure this out later.
%
 \put(01.00,16.1){{\sf 2) }}
 \put(01.65,16.1){{\sf Collaborators (state institution and country) }}
 \put(01.75,15.7){{\sf \@CoIAfn\@CoIAln \if@CoIAthesis{{\ajfrn
 [Ph.D. Thesis]}}\fi \@CoIAinst\@CoIAcntry}}
 \put(01.65,15.6){\line(1,0){10.4}}
 \put(01.65,15.6){\line(0,1){0.2}}
 \put(12.05,15.6){\line(0,1){0.2}}
 \put(01.75,15.2){{\sf \@CoIBfn\@CoIBln\if@CoIBthesis{{\ajfrn
 [Ph.D. Thesis]}}\fi \@CoIBinst\@CoIBcntry}}
 \put(01.65,15.1){\line(1,0){10.4}}
 \put(01.65,15.1){\line(0,1){0.2}}
 \put(12.05,15.1){\line(0,1){0.2}}
 \put(01.75,14.7){{\sf \@CoICfn\@CoICln\if@CoICthesis{{\ajfrn
 [Ph.D. Thesis]}}\fi \@CoICinst\@CoICcntry}}
 \put(01.65,14.6){\line(1,0){10.4}}
 \put(01.65,14.6){\line(0,1){0.2}}
 \put(12.05,14.6){\line(0,1){0.2}}
%
%	2. Title
%
 \put(00.30,14.2){\rule{16.5cm}{0.03cm}}

 \put(00.35,13.750){{\sf II }}
 \put(01.65,13.750){{\ajbf TITLE AND CATEGORY OF INVESTIGATION }}
 \put(01.65,13.35){{\ajbf \@titl}}
 \put(01.60,13.25){\line(1,0){14.50}}
 \put(01.60,13.25){\line(0,1){0.2}}
 \put(16.100,13.25){\line(0,1){0.2}}

 \put(09.80,13.75){{\sf\it \@scicat}}

%
%	3. Abstract
%
 \put(00.30,12.95){\rule{16.5cm}{0.03cm}}

 \put(00.35,12.60){{\sf III }}
 \put(01.65,12.60){{\sf ABSTRACT OF PROPOSED OBSERVATIONS}} 
 \put(00.40,12.1){{\sf \parbox[t]{17.3cm}{\@abstr}}}
%
%	4. Receivers Requested
%
 \put(00.30,7.70){\rule{16.5cm}{0.03cm}}

 \put(00.35,7.35){{\sf IV }}
 \put(01.65,7.35){{\sf System Configuration:}}
 \put(05.65,7.35){  \check{\if@seq}  SEQUOIA
     \hspace{0.1cm} \check{\if@faas}  FAAS
     \hspace{0.1cm} \check{\if@qef}  QEF
     \hspace{0.1cm} \check{\if@other} Other}
%
%	5. Breakdown of time requested
%
 \put(00.30,7.2){\rule{16.5cm}{0.03cm}}
 \put(00.35,6.80){{\sf V }}
 \put(01.65,6.80){{\sf BREAKDOWN OF TIME REQUESTED  }}

 \put(00.50,6.60){\rule{15.9cm}{0.03cm}}
 \put(00.45,6.20){{\sf Molecule (Transition)}}
 \put(04.75,6.20){{\sf Frequency (GHz)}}
 \put(08.60,6.20){{\sf Days Requested }}
 \put(11.50,6.20){{\sf LST Coverage }}
 \put(14.40,6.20){{\sf Total Hours}}
 \put(00.50,6.00){\rule{15.9cm}{0.01cm}}

 \put(00.45,5.60){{\sf 1)}}
 \put(1.00,5.60){{\sf \@tranA }}
 \put(05.10,5.60){{\sf \@freqtranA   }}
 \put(09.25,5.60){{\sf \@reqdaysA    }}
 \put(11.90,5.60){{\sf \@lstA  }}
 \put(14.90,5.60){{\sf \@tottimA  }}
 \put(00.60,5.50){\rule{15.7cm}{0.01cm}}

 \put(00.45,5.10){{\sf 2)}}
 \put(1.00,5.10){{\sf \@tranB }}
 \put(05.10,5.10){{\sf \@freqtranB   }}
 \put(09.25,5.10){{\sf \@reqdaysB    }}
 \put(11.90,5.10){{\sf \@lstB  }}
 \put(14.90,5.10){{\sf \@tottimB  }}
 \put(00.60,5.00){\rule{15.7cm}{0.01cm}}

 \put(00.45,4.60){{\sf 3)}}
 \put(1.00,4.60){{\sf \@tranC }}
 \put(05.10,4.60){{\sf \@freqtranC   }}
 \put(09.25,4.60){{\sf \@reqdaysC    }}
 \put(11.90,4.60){{\sf \@lstC  }}
 \put(14.90,4.60){{\sf \@tottimC  }}
 \put(00.60,4.50){\rule{15.7cm}{0.01cm}}

 \put(00.45,4.10){{\sf 4)}}
 \put(1.00,4.10){{\sf \@tranD }}
 \put(05.10,4.10){{\sf \@freqtranD   }}
 \put(09.25,4.10){{\sf \@reqdaysD    }}
 \put(11.90,4.10){{\sf \@lstD  }}
 \put(14.90,4.10){{\sf \@tottimD  }}
 \put(00.60,4.00){\rule{15.7cm}{0.01cm}}
%
%	6. Scheduling Requirements
%
 \put(00.30,3.50){\rule{16.5cm}{0.03cm}}

 \put(00.35,3.1){{\sf VI }}
 \put(01.65, 3.1){{\sf SPECIAL SCHEDULING REQUIREMENTS:}}
 \put(00.40,2.6){{\sf \parbox[t]{6in}{\@sched}}}

 \put(00.30,1.7){\rule{16.5cm}{0.03cm}}

 \end{picture}}
}

\def\thebody{
\vspace*{1.5cm}
{\bf SCIENTIFIC JUSTIFICATION}

{\ajfrL \@justification}

 \vspace*{0.5cm}
 {\bf TECHNICAL DETAILS \& REFERENCES}

 {\ajfrL \@technical}
}