%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                          %
%   DO NOT EDIT THIS FILE OR CHANGE IT IN ANY WAY WHATSOEVER               %
%                                                                          % 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%
%%      PATT2 LaTex Style file 
%%
%% History:
%%
%%  1.0 Alan Penny (Starlink)
%%      Original Latex/Tex layout for formload input/output
%%
%%  1.n Alan Penny (Starlink) and Bill Martin (RGO)
%%      Various changes made to the form
%%
%%  2.0 Datestamp? Graeme Watt & Gerald Moriarty-Schieven (JACH)
%%      Single file Latex Template for JCMT
%%      Similarily Dutch Community have a Latex PATT2 form.
%%
%%  3.0 Sept 1996 Richard McMahon (IoA) [rgm@ast.cam.ac.uk]
%%      Conversion to Latex substyle
%%
%%  3.1 July 1997 Bill Martin and Vik Dhillon (RGO) 
%%      Released to community for new method of ING electronic submission
%%
%%  3.2 October 1997 Stuart Lumsden (AAO) 
%%      This AAO internal version supports the reference number field.
%%      Additions to ordinary version are commented
%%
%%  3.3 August 1999 Ian Skillen (ING)
%%      Additional page (3a) for applications of 6 or more nights to WHT
%%
%%  3.4 August 1999 Karl Glazebrook (AAO)
%%      Increased space for Section 14 - Related Applications
%%
%%  3.5 February 2000 Ian Skillen (ING)
%%      New section (3) for scientific category of proposal
%%      New section (4) for related PATT applications 
%%      Renumber subsequent sections
%%
%---------------------------------------------------------------------------
% Start of revision and timestamping 
%
% timestamp info
%       Current time; this may be system dependent!
\newcount\hours
 \newcount\minutes
  \def\SetTime{\hours=\time
         \global\divide\hours by 60
         \minutes=\hours
         \multiply\minutes by 60
         \advance\minutes by-\time
         \global\multiply\minutes by-1 }
\SetTime
\def\now{\number\hours:\ifnum\minutes<10 0\fi\number\minutes}
% These do not quite work in Latex using \write
\def\Now{\today\ \now}
\def\@Now{\today\ \now}
%
%
%
% from AASTEX as used on the CTIO form to date/version stamp
% the final page:
%
% timestamping and filestamping each page may be possible. the would help
% the multiple proposal writer. it could be a private command retained
% for private use.
% 
% This is the revision info that gets typed out by Latex and
% gets printed at the bottom of the final page
\def\revtex@ver{3.5}                % Version number of this file.
\def\revtex@date{23 February 2000}  % Revision date.
\def\revtex@author{Richard McMahon} % This file's author.
\def\revtex@org{}                   % Sponsoring organization.
\def\revtex@jnl{}                   % Applicable journal, if specific.
\def\revtex@genre{PATT2 LaTeX style file} % Document "type".


% This will print to the screen as Latex runs
\typeout{\revtex@org\space
    \ifx\revtex@jnl\@empty\else\revtex@jnl\space\fi
    \revtex@genre\space v\revtex@ver\space \revtex@date.}

% This writes the info at the end of the proposal
\def\revtex@pageid{\xdef\@thefnmark{\null}
    \@footnotetext{\revtex@org\space
    \ifx\revtex@jnl\@empty\else\revtex@jnl\space\fi
%    \revtex@genre\space 
    PATT2 \LaTeX\ style file v\revtex@ver\space \revtex@date. }}
% <\revtex@date> in the above line doesn't work.

\let\ltx@enddoc=\enddocument
\def\enddocument{\vfill\revtex@pageid\ltx@enddoc}


% end of revision information
%---------------------------------------------------------------------------

%\show\input

% PATT2 
%
% General syntax for the macro definitions are:
% \def\macro#1{\gdef\@macro{#1}}
% \def\@macro{}   ! this initialisise a macro to null. It is
%                 ! not essential but means that if a macro is missing
%                 ! from the input template latex does not crash
%                 ! More generally, one could initialise this to
%                 ! the default
%
% A @ at the start of all internal macros is recommended in
% the Latex2e books
%

% for simplicity I define all macros and initialise them to
% blank at the top


% stab at sensible macro page
% This produces a blank page!
%\def\makepatttwopageone{\gdef\@makepatttwopageone}

%
%\def\makepatt2_page1{\gdef\makepatttwopageone}
%\def\makepatt2_page2{\gdef\makepatttwopagetwo}

%
% Here we define all the macros needed to handle the
% input parameters; move names are self explananatory
%
% Note _ and cardinal numbers seem to be not allowed, hence
% I have used capitals letters for readability in places.
% This may be abandoned later.
%
%
%
% Notes for programmers:
%  Keep the form generation material separate from the section
%  where the information is patched in.
%
%
%


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

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

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

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

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

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

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

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

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

% other PATT applications

\def\relatedapps#1#2#3#4#5#6#7#8#9{
\gdef\@relatedappsaat{#1}     \gdef\@relatedappswht{#2}
\gdef\@relatedappsint{#3}     \gdef\@relatedappsjkt{#4}
\gdef\@relatedappsukirt{#5}   \gdef\@relatedappsjcmt{#6}
\gdef\@relatedappsgemini{#7}  \gdef\@relatedappslt{#8}
\gdef\@relatedappsmerlin{#9}} 
\def\@relatedappsaat{}
\def\@relatedappswht{}
\def\@relatedappsint{}
\def\@relatedappsjkt{}
\def\@relatedappsukirt{}
\def\@relatedappsjcmt{}
\def\@relatedappsgemini{}
\def\@relatedappslt{}
\def\@relatedappsmerlin{}

% pi information

\def\piname#1#2#3{
\gdef\@pititle{#1}  
\gdef\@piinitial{#2}
\gdef\@pisurname{#3}} 
\def\@pititle{}
\def\@piinitial{}
\def\@pisurname{}

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

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

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

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

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

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

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

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


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

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

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

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

%% Collaborator information: this could be smarter
%
% Various options are possible, depending on what the
% data is to used for.
% A problem may arise when one has multiple coIs.
%
% One possibility is to have a secondary page
% for the mega list.
% The current co-I list has room for multiple
% names per line,
%
%

% collaborator 1
\def\collabonename#1{\gdef\@collabonename{#1}}
\def\@collabonename{}

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

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


% collaborator 2
\def\collabtwoname#1{\gdef\@collabtwoname{#1}}
\def\@collabtwoname{}

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

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


% collaborator 3
\def\collabthreename#1{\gdef\@collabthreename{#1}}
\def\@collabthreename{}

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

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


% collaborator 4
\def\collabfourname#1{\gdef\@collabfourname{#1}}
\def\@collabfourname{}

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

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


% Proposal info
\def\title{\gdef\@title}
\def\@title{}

\def\abstract{\gdef\@abstract}
\def\@abstract{}

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

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


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

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

\def\timerequested#1#2#3#4{
\gdef\@timerequesteddark{#1}  \gdef\@timerequestedgrey{#2}
\gdef\@timerequestedbright{#3}  \gdef\@timerequestedunits{#4}}
\def\@timerequesteddark{}
\def\@timerequestedgrey{}
\def\@timerequestedbright{}
\def\@timerequestedunits{}

\def\minuseful#1#2#3{
\gdef\@minusefuldark{#1}  \gdef\@minusefulgrey{#2}
\gdef\@minusefulbright{#3}}
\def\@minusefuldark{}  
\def\@minusefulgrey{}
\def\@minusefulbright{}

\def\lttotaltime#1#2#3#4{
\gdef\@lttotaltimedark{#1}  \gdef\@lttotaltimegrey{#2}
\gdef\@lttotaltimebright{#3}  \gdef\@lttotaltimeunits{#4}}
%\def\lttotaltime{}{}{}{}{}
\def\@lttotaltimedark{}  
\def\@lttotaltimegrey{}
\def\@lttotaltimebright{}  
\def\@lttotaltimeunits{}





% Scheduling information
\def\prefdates#1{\gdef\@prefdates{#1}}
\def\@prefdates{}

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


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

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

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

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

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

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

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

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

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


\def\targetinfo{\gdef\@targetinfo}
\def\@targetinfo{}

\def\targetrarange{\gdef\@targetrarange}
\def\@targetrarange{}


\def\otherapplications{\gdef\@otherapplications}
\def\@otherapplications{}

\def\sciencecase{\gdef\@sciencecase}
\def\@sciencecase{}

\def\extendedsciencecase{\gdef\@extendedsciencecase}
\def\@extendedsciencecase{}



\def\technicalpage{\gdef\@technicalpage}
\def\@technicalpage{}



\def\figsandrefspage{\gdef\@figsandrefspage}
\def\@figsandrefspage{}


\def\backupprogram{\gdef\@backupprogram}
\def\@backupprogram{}

\def\publications{\gdef\@publications}
\def\@publications{}


\def\previous{\gdef\@previous}
\def\@previous{}


\def\experience{\gdef\@experience}
\def\@experience{}


\def\graduatestudent#1#2{
\gdef\@graduatestudentname{#1}  \gdef\@graduatestudentnumber{#2}}
\def\@graduatestudent{}{}



\def\grant#1#2#3{
\gdef\@grantname{#1}  \gdef\@granttitle{#2}
\gdef\@grantnumber{#3}}
\def\@grant{}{}{}


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


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


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



% For backward compatability autogeneration of the
% much hated .dat file is implemented here
% define the formloadfile handler; ideally I would
% like to pase the foo.tex root and create the file
% foo.dat. 
%
% The Tex macro \jobname will do this
%
\def\formloadfile#1{\gdef\@formloadfile{#1}}
\def\@formloadfile{}

% Solution for the # i/o problem supplied by
% via a comp.text.tex from Mike Piff <M.Piff@sheffield.ac.uk>
% 11-sep-96
% Use \@hash instead of # and include also:
% {\catcode`\#=11 \gdef\@hash{#} }
% easy when you know how

{\catcode`\#=11 \gdef\@hash{#} }
% note if you put this inside another def it will give an error

%% 11-sep-96
%\string## also works
% solution from Donald Arseneau <asnd@triumf.ca> via post to comp.text.tex
% First response failed.
%''For every level of \def, the # needs to be doubled, so I should have
%said \string## becaise it is in \def\writefile{ }.''
%
%
% I was warned of useing explict io numbers by asnd so I seached
% out the latex internal io unit handlers
\def\writeformloadfile{

% 11-sep-96 explicit use of a unit number deprecated
%\openout10=\@formloadfile

% Note Tex seems to be able \formloadfile as used here
% and \formloadfile#1 as used in the mainprogram
\newwrite\formloadfile \openout\formloadfile = \@formloadfile
%

% the formload \write commands were generated from the
% patt2_template.dat using awk
%
%  gawk 'index($0,"!") > 0 {print -
% "\\write10{"substr($0,1,index($0,"#")-1)"\\@hash -
% "substr($0,index($0,"#")+1,index($0,"!")-index($0,"#"))" }"}' -
% patt2_sample.dat > file

%
%\write10{formload.dat file generated by Latex at \@Now}
%\write10{formload.dat file generated by Latex at \Now}
%\write10{formload.dat file generated by Latex on \today at \now}
\write\formloadfile{formload.dat file generated by Latex on \today\space at \now}
%
% 11-sep-96 write10 replaced by write/formloadfile
%
% 3 is now Other Apps. Increment page1 from Surname by 1
%
\write\formloadfile{01_1_01\@hash?$& AAT,WHT,INT,JKT,UKIRT      ! \@telescope}
\write\formloadfile{01_2_01\@hash?$& Semester                   ! \@semester}
\write\formloadfile{01_3_01\@hash?$& Scientific Category        ! \@category}

\write\formloadfile{01_4_01\@hash?$& Other PATT proposals (AAT) ! } 
\write\formloadfile{01_4_02\@hash?$& Other PATT proposals (WHT) ! }
\write\formloadfile{01_4_03\@hash?$& Other PATT proposals (INT) ! }
\write\formloadfile{01_4_04\@hash?$& Other PATT proposals (JKT) ! }
\write\formloadfile{01_4_05\@hash?$& Other PATT proposals (UKIRT) ! }
\write\formloadfile{01_4_06\@hash?$& Other PATT proposals (JCMT)  ! }
\write\formloadfile{01_4_07\@hash?$& Other PATT proposals (GEMINI)! }
\write\formloadfile{01_4_08\@hash?$& Other PATT proposals (LT)    ! }
\write\formloadfile{01_4_09\@hash?$& Other PATT proposals (MERLIN)! }

\write\formloadfile{01_5_01\@hash?$& Surname of PA              ! \@pisurname}
\write\formloadfile{01_5_02\@hash?$& Title                      ! \@pititle}
\write\formloadfile{01_5_03\@hash?$& Initials                   ! \@piinitials}
\write\formloadfile{01_5_04\@hash?$& Post held                  ! \@pisurname}
\write\formloadfile{01_5_05\@hash?$& Address (line 1)           ! \@piaddressone}
\write\formloadfile{01_5_06\@hash?$& Address (line 2)           ! \@piaddresstwo} 
\write\formloadfile{01_5_07\@hash?$& Address (line 3)           ! \@piaddressthree}
\write\formloadfile{01_5_08\@hash?$& Telephone                  ! \@piphone}
\write\formloadfile{01_5_09\@hash?$& Fax                        ! \@pifax}
\write\formloadfile{01_5_10\@hash?$& E-Mail                     ! \@piemail}
\write\formloadfile{01_5_11\@hash?$& Will the PA be observing?  ! \@piobserver}
\write\formloadfile{01_6_01\@hash?$& Collaborators (1)-name     ! }
\write\formloadfile{01_6_02\@hash?$& Collaborators (1)-Inst     ! }
\write\formloadfile{01_6_03\@hash?$& Collaborators (1)-observe? ! }
\write\formloadfile{01_6_04\@hash?$& Collaborators (2)-name     ! }
\write\formloadfile{01_6_05\@hash?$& Collaborators (2)-Inst     ! }
\write\formloadfile{01_6_06\@hash?$& Collaborators (2)-observe? ! }
\write\formloadfile{01_6_07\@hash?$& Collaborators (3)-name     ! }
\write\formloadfile{01_6_08\@hash?$& Collaborators (3)-Inst     ! }
\write\formloadfile{01_6_09\@hash?$& Collaborators (3)-observe? ! }
\write\formloadfile{01_6_10\@hash?$& Collaborators (4)-name     ! }
\write\formloadfile{01_6_11\@hash?$& Collaborators (4)-Inst     ! }
\write\formloadfile{01_6_12\@hash?$& Collaborators (4)-observe? ! }
\write\formloadfile{ }
\write\formloadfile{01_7_01\@hash?$& Investigation title(12wds) ! \@title}
\write\formloadfile{ }
\write\formloadfile{01_8_01\@hash?$& Summary of proposal        ! \@abstract}
\write\formloadfile{ }
\write\formloadfile{01_9_01\@hash?$& Focal station              ! \@focalstation}
\write\formloadfile{01_9_02\@hash?$& Instrument                 ! }
\write\formloadfile{01_9_03\@hash?$& Detector(s)                ! }
\write\formloadfile{01_9_04\@hash?$& Gratings/Filters           ! }
\write\formloadfile{01_10_01\@hash?$& Time this semester (dark)  ! }
\write\formloadfile{01_10_02\@hash?$& Time this semester (grey)  ! }
\write\formloadfile{01_10_03\@hash?$& Time this semester (bright)! }
\write\formloadfile{01_10_04\@hash?$& Specify nights or weeks    ! }
\write\formloadfile{01_10_05\@hash?$& Minimum useful (dark)      ! }
\write\formloadfile{01_10_06\@hash?$& Minimum useful (grey)      ! }
\write\formloadfile{01_10_07\@hash?$& Minimum useful (bright)    ! }
\write\formloadfile{01_11_01\@hash?$& Long Term (total time-dark)! }
\write\formloadfile{01_11_02\@hash?$& Long Term (total time-grey)! }
\write\formloadfile{01_11_03\@hash?$& Long Term (total time-brit)! }
\write\formloadfile{01_11_04\@hash?$& Specify nights or weeks    ! }
\write\formloadfile{02_1_01\@hash?$& Preferred dates            ! }
\write\formloadfile{02_1_02\@hash?$& Impossible dates           ! }
\write\formloadfile{02_1_03\@hash?$& Justify imp. dates  - 1    ! }
\write\formloadfile{02_1_04\@hash?$& Justify imp. dates  - 2    ! }
\write\formloadfile{02_1_05\@hash?$& Other telescopes? Simult?  ! }
\write\formloadfile{02_1_06\@hash?$& Scheduling constraints     ! }

\write\formloadfile{02_2_01\@hash?$& Service observing-YES-put-x! \@serviceobservingyes}
\write\formloadfile{02_2_02\@hash?$& Service observing -NO-put-x! \@serviceobservingno}
\write\formloadfile{02_2_03\@hash?$& Service observing -maybe  x! \@serviceobservingmaybe}

\write\formloadfile{02_3_01\@hash?$& SA at Tel - every night?  x! \@supporteverynight}
\write\formloadfile{02_3_02\@hash?$& SA at Tel - NO            x! \@supportnone}
\write\formloadfile{02_3_03\@hash?$& SA at Tel-first night onlyx! \@supportfirstnight}
%\write\formloadfile{02_5_01\@hash?$& List of principal targets  ! {\@targetinfo}}
\write\formloadfile{02_6_01\@hash?$& Other applications?(Tel)-1 ! }
\write\formloadfile{02_6_02\@hash?$& Other applications?(Title) ! }
\write\formloadfile{02_6_03\@hash?$& Other applications?(Tel)-2 ! }
\write\formloadfile{02_6_04\@hash?$& Other applications?(Title) ! }
\write\formloadfile{02_6_05\@hash?$& Other applications?(Tel)-3 ! }
\write\formloadfile{02_6_06\@hash?$& Other applications?(Title) ! }
\write\formloadfile{02_6_07\@hash?$& Other applications?(Tel)-4 ! }
\write\formloadfile{02_6_08\@hash?$& Other applications?(Title) ! }
%\write\formloadfile{03_1_01\@hash?$& Scientific Justification   ! \@sciencecase}
\write\formloadfile{04_1_01\@hash?$& Technical information (I)  ! }
\write\formloadfile{04_1_02\@hash?$& Technical information (II)  ! }
\write\formloadfile{05_1_01\@hash?$& Backup programme (summary) ! }
\write\formloadfile{05_2_01\@hash?$& Last 4 Sems (see,eg,Table) ! }
\write\formloadfile{05_3_01\@hash?$& Pubs for last 4 Sems (6)  ! }
\write\formloadfile{05_4_01\@hash?$& Experience of Observers   ! }
\write\formloadfile{05_5_01\@hash?$& Student research? (Name)  ! }
\write\formloadfile{05_5_02\@hash?$& Student research (Grant)  ! }
\write\formloadfile{05_6_01\@hash?$& Research grant obs? (PI)  ! }
\write\formloadfile{05_6_02\@hash?$& Research obs?(Grant title)! }
\write\formloadfile{05_6_03\@hash?$& Research obs? (Grant No.) ! }
\write\formloadfile{05_7_01\@hash?$& Non-standard T and S      ! }
\write\formloadfile{05_8_01\@hash?$& Other expenditure(freight)! }
\write\formloadfile{06_2_01\@hash?$& Summary Slip (short title)! }
\write\formloadfile{06_2_02\@hash?$& Principal App and Institute! }
\write\formloadfile{06_2_03\@hash?$& Time this Semester (Dark) ! }
\write\formloadfile{06_2_04\@hash?$& Time this Semester (Grey) ! }
\write\formloadfile{06_2_05\@hash?$& Time this Semester(Bright)! }
\write\formloadfile{06_2_06\@hash?$& Time requested(nights/wks)! }
\write\formloadfile{06_3_01\@hash?$& Acknowledge (short title) ! \@shorttitle }
\write\formloadfile{06_3_02\@hash?$& Address for Acknowledge   ! }
\write\formloadfile{                 \@piinitials,\@pisurname  }
\write\formloadfile{                 \@piaddressone  }
\write\formloadfile{                 \@piaddresstwo  }
\write\formloadfile{                 \@piaddressthree  }
\write\formloadfile{XE_0_00\@hash?$& LaTeX setup commands      p! }

}


% Page definitions: These should be generalised so that they
% facilitate printing on either A4 or US paper
 \topmargin   -3.17cm
 \oddsidemargin   -1.40cm
 \evensidemargin   -1.40cm

 \textheight 10.90in

\setlength{\textwidth}{7.95in}

 \parskip 8pt plus 3pt minus 2pt
 \parindent 0in

 \pagestyle{empty}                      
                                                                                
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % These fonts may need local changes
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


 \font\@tiny=cmss8

 \font\@small=cmss9

 \font\@Small=cmss10
 \font\@Smallbf=cmssbx10                              

 \font\@normal=cmr12
 \font\@normalss=cmss12

                                                  


 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % Formload LaTeX commands
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% ajpos{hspace}{vspace}{width_of_minipage}{height_of_rule}{lift_of_rule}
%  {vspace_return_to_top_left}{hspace_return_to_top_left}
%  {text}

% the rules with produce space that is #5 high above the current
% baseline and #4 high above this and 

\newlength{\@templength}

\newcommand{\@putpar}[5]{
    \vspace*{#2}\hspace*{#1}
    \rule[-#4]{0.0cm}{#4}
    \rule[0.0cm]{0.0cm}{1.0cm}
    {\@small
      \begin{minipage}[t]{#3} 
       #5 \
      \end{minipage}
    }
% rewind coordinate system to the top left of the page
     \setlength{\@templength}{-#2}
     \addtolength{\@templength}{-#4}
     \vspace*{-1.3165cm}\vspace*{\@templength}
     \setlength{\@templength}{-#1}
     \addtolength{\@templength}{-#3}
     \hspace*{-1.0em}\hspace*{\@templength}}

%
% Picture parameters
%
\def\@picturexdimen{19.70}
\def\@pictureydimen{25.80}
\def\@picturexoffset{00.00}
\def\@pictureyoffset{01.80}

\def\@thicklinewidth{0.50mm}


% thick horizontal line
% \rule[lift]{width}{height} produces a black rectangle
% of size width by height, raiased by an amount lift above 
% the current baseline
\newcommand{\@thline}{\rule[0.0cm]{18.5cm}{\@thicklinewidth}}

% 18.5 for the width comes from the fact that everything is
% shifted in by 0.4 from the nominal picture edge and the
% right hand edge is at 18.97 and the line thickness is 0.7mm                                                    


\def\makepatttwopageone{

%?#$&page1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% movement needed for location of form 

\vspace*{0.23cm}\hspace*{-0.50cm}

\setlength{\unitlength}{1.0cm}

% Begin the picture environment
\begin{picture}(\@picturexdimen,\@pictureydimen)(\@picturexoffset,\@pictureyoffset)

\put(17.00,27.90){{\@Smallbf PATT2 }}
\put(16.30,27.40){{\@Smallbf Version 02/2000 }}
\put(05.20,27.90){{\@Smallbf Particle Physics and Astronomy Research Council}}
\put(04.90,27.40){{\@Smallbf Polaris House, North Star Avenue, Swindon, SN2 1SZ }}
\put(05.75,26.90){{\@Smallbf Telephone 01793 442000 }}
\put(10.50,26.90){{\@Smallbf Fax 01793 442002 }}
\put(03.90,26.40){{\@Smallbf APPLICATION FOR TELESCOPE TIME (OPTICAL AND INFRARED) }}
%\put(01.70,25.90){ \@Smallbf Refer to {\it Notes for Guidance 
%on the completion of the application form PATT2;} type entries in black }

 \put(00.40,23.20){{ \@thline }} %0.40->0.38

 \put(00.50,01.50){\rule[0.0cm]{\@thicklinewidth}{24.15cm}} %23.7->24.15
 \put(18.97,01.50){\rule[0.0cm]{\@thicklinewidth}{23.40cm}} %21.7->23.40
 \put(00.50,25.65){\rule[0.0cm]{10.50cm}{\@thicklinewidth}} %9.95cm->10.50, 25.20->25.65 
 \put(00.50,24.90){\rule[0.0cm]{18.50cm}{\@thicklinewidth}} %9.95cm->10.50cm->18.5, 24.20->24.90
 \put(00.40,24.15){{ \@thline }} %0.40->0.38

 \@Small
 \put(00.60,25.25){{ 1 }} %24.80->25.25
 \put(00.90,25.25){{ TELESCOPE \it (AAT,WHT,INT,JKT or UKIRT)}} %24.80->25.25
%\put(00.57,24.35){{ \it Specify one of AAT,WHT,INT,JKT,UKIRT }} %lifted 
 \put(10.98,24.15){\rule[0.0cm]{\@thicklinewidth}{1.5cm}} %10.40->10.98,23.20->24.15, 2.0->1.5
 \put(09.05,25.65){\line(0,-1){1.5}} %08.20->09.05, 25.20->25.65, 2.0->1.5
                                                                            
 \put(00.60,24.50){{ 2 }} %24.05->24.50
 \put(00.90,24.50){{ SEMESTER }} %23.80->24.50
 \put(11.10,25.30){{ Reference:  }} %10.45->11.10, 23.40->25.30
 \put(14.60,25.30){{ Date Stamp: }}

% scientific category (new section 3)

 \put(17.75,24.90){\line(0,-1){0.75}}
 \put(11.10,24.50){{ 3 }} 
 \put(11.40,24.50){{ SCIENTIFIC CATEGORY }} 

% related PATT applications (new section 4)

 \put(05.80,24.15){\line(0,-1){0.95}}
 \put(00.60,23.75){{ 4 }} 
 \put(00.90,23.75){{ RELATED PATT PROPOSALS }} 
 \put(00.57,23.35){{ \it (this semester)  }}
 \put(05.75,23.60){{ \footnotesize \it AAT: }}
 \put(06.75,23.57){\framebox(0.25,0.30){}}
 \put(07.01,23.60){{ \footnotesize \it WHT: }}
 \put(08.12,23.57){\framebox(0.25,0.30){}}
 \put(08.45,23.60){{ \footnotesize \it INT: }}
 \put(09.37,23.57){\framebox(0.25,0.30){}}
 \put(09.67,23.60){{ \footnotesize \it JKT: }}
 \put(10.62,23.57){\framebox(0.25,0.30){}}
 \put(10.92,23.60){{ \footnotesize \it UKIRT: }}
 \put(12.28,23.57){\framebox(0.25,0.30){}}
 \put(12.59,23.60){{ \footnotesize \it JCMT: }}
 \put(13.82,23.57){\framebox(0.25,0.30){}}
 \put(14.10,23.60){{ \footnotesize \it GEMINI: }}
 \put(15.66,23.57){\framebox(0.25,0.30){}} 
 \put(15.98,23.60){{ \footnotesize \it LT: }}
 \put(16.70,23.57){\framebox(0.25,0.30){}}
 \put(17.02,23.60){{ \footnotesize \it MERLIN: }}
 \put(18.63,23.57){\framebox(0.25,0.30){}}


% increment subsequent section numbers by 1

 \put(00.60,22.85){{ 5 }}
 \put(00.90,22.85){{ PRINCIPAL APPLICANT }}
 \put(01.10,22.40){{ Surname: }}
 \put(02.70,22.80){\line(0,-1){3.95}}
 \put(02.70,22.80){\line(1,0){6.9}}
 \put(09.60,22.80){\line(0,-1){0.5}}
 \put(10.90,22.40){{ Title: }}
 \put(11.90,22.80){\line(0,-1){0.5}}
 \put(11.90,22.80){\line(1,0){2.3}}
 \put(14.20,22.80){\line(0,-1){0.5}}
 \put(15.20,22.40){{ Initials: }}
 \put(16.50,22.80){\line(0,-1){0.5}}
 \put(16.50,22.80){\line(1,0){2.45}}
 \put(02.70,22.30){\line(1,0){16.25}}
 \put(01.00,21.90){{ Post held:  }}
 \put(02.70,21.80){\line(1,0){16.25}}
                                                                                
 \put(01.25,21.40){{ Address: }}
 \put(00.95,19.40){{ Telephone: }}
 \put(02.70,19.80){\line(1,0){16.25}}
 \put(11.05,19.40){{ Fax: }}
 \put(11.90,19.80){\line(0,-1){0.5}}
 \put(11.90,19.30){\line(1,0){7.05}}
 \put(02.70,19.30){\line(1,0){6.9}}
 \put(09.60,19.80){\line(0,-1){1.0}}
 \put(01.45,18.95){{ E-mail: }}
 \put(11.00,18.95){{ Is the applicant a possible observer? }}
 \put(16.50,18.80){\line(0,1){0.5}}
 \put(00.40,18.80){{ \@thline }}
                                                                             
 \put(00.60,18.45){{ 6 }}
 \put(00.90,18.45){{ COLLABORATORS  }}
 \put(00.60,17.90){{ Name: }}
 \put(07.40,17.90){{ Institute:  }}
 \put(16.50,17.90){{ Observer? }}
 \put(07.40,15.35){\line(0,1){2.45}}
 \put(16.50,15.35){\line(0,1){2.45}}
 \put(00.50,17.80){\line(1,0){18.45}}
 \put(00.40,15.35){{ \@thline }}
                                                                             
 \put(00.60,15.00){{ 7 }}
 \put(00.90,15.00){{ SHORT TITLE OF PROPOSAL} {\it (maximum 12 words)}}
 \put(00.50,14.90){\line(1,0){18.45}}
 \put(00.40,13.50){{ \@thline }}
                                                                             
 \put(00.60,13.10){{ 8 }}
 \put(00.90,13.10){{ SUMMARY OF PROPOSED OBSERVATIONS }}
 \put(00.50,12.90){\line(1,0){18.45}}
 \put(00.40,09.00){{ \@thline }}
                                                                            
 \put(00.60,08.60){{ 9 }}
 \put(00.90,08.60){{ FOCAL STATION, INSTRUMENT AND DETECTOR }}
 \put(00.60,08.10){{ Focal station: }}
 \put(04.00,08.10){{ Instrument: }}
 \put(10.00,08.10){{ Detector(s): }}
 \put(13.00,08.10){{ Gratings/Filters: }}
 \put(00.50,08.00){\line(1,0){18.45}}
 \put(00.50,07.00){\line(1,0){18.45}}
 \put(04.00,07.00){\line(0,1){1.0}}
 \put(13.00,07.00){\line(0,1){1.0}}
 \put(10.00,07.00){\line(0,1){1.0}}
                                                                            
% \put(00.60,06.65){{ \it AAT applicants will be sent an
% instrument scheduling form by email}}
 \put(00.40,06.50){{ \@thline }}
                                                                            
 \put(00.60,06.15){{ 10 }}
 \put(01.05,06.15){{ OBSERVING TIME REQUESTED THIS SEMESTER }}
 \put(00.60,05.60){{ Time requested this semester }}
 \put(07.60,05.60){{ Dark: }}
 \put(08.70,05.00){\framebox(1.0,1.0){}}
 \put(09.95,05.60){{ Grey: }}
 \put(11.00,05.00){\framebox(1.0,1.0){}}
 \put(12.15,05.60){{ Bright:  }}
 \put(13.40,05.00){\framebox(1.0,1.0){}}
 \put(14.80,05.60){{ specify nights }}
 \put(17.00,05.00){\framebox(1.5,1.0){}}
 \put(00.60,04.70){{ Minimum useful allocation this semester }}
 \put(07.60,04.70){{ Dark: }}
 \put(08.70,04.00){\framebox(1.0,1.0){}}
 \put(09.95,04.70){{ Grey: }}
 \put(11.00,04.00){\framebox(1.0,1.0){}}
 \put(12.15,04.70){{ Bright: }}
 \put(13.40,04.00){\framebox(1.0,1.0){}}
 \put(15.20,05.10){{ \it or } weeks: }
 \put(00.60,03.65){{ \it UKIRT applicants requiring dark time must justify
 this in section 18 }}
 \put(00.40,03.5){{ \@thline }}
                                                                            
 \put(00.60,03.15){{ 11 }}
 \put(01.05,03.15){{ COMPLETE THIS SECTION ONLY IF THIS IS A LONG TERM
 PROPOSAL }}
 \put(00.60,02.60){{ Total time requested }}
 \put(07.60,02.60){{ Dark: }}
 \put(08.70,02.00){\framebox(1.0,1.0){}}
 \put(09.95,02.60){{ Grey: }}
 \put(11.00,02.00){\framebox(1.0,1.0){}}
 \put(12.15,02.60){{ Bright: }}
 \put(13.40,02.00){\framebox(1.0,1.0){}}
 \put(14.80,02.60){{ specify nights }}
 \put(15.20,02.00){{ \it or } weeks: }
 \put(17.00,02.00){\framebox(1.5,1.0){}}
 \put(00.60,01.65){{ \it Justification for long term status must be given
 in section 17 }}
 \put(00.40,01.50){{ \@thline }}

% Fonts size warning

 \put(00.50,01.22){\line(1,0){8.45}}
 \put(00.60,00.85){{\footnotesize Text fonts must {\em not} be smaller than the style-file defaults }}

 \put(09.50,00.50){{ 1. }}

\end{picture}

%%%% END OF FORM INFORMATION %%%%

%%%% START OF THE USER SUPPLIED INFORMATION %%%%
                                                                               
% rewind back to near the top of the page
\vspace*{-26.75cm}{\@small

% user can't set these parameters in this version.  these are added
% by software

\@putpar{ 16.40cm}{  1.90cm}{  3.00cm}{  2.00cm}{\@accepted} 

\@putpar{ 12.60cm}{  1.90cm}{  2.00cm}{  2.00cm}{\@refno}

\@putpar{  9.00cm}{  2.00cm}{  2.00cm}{  2.00cm}{\@telescope} %8.25->9.0, 2.6->2.0
                                                 
\@putpar{  9.00cm}{  2.70cm}{  2.00cm}{  2.00cm}{\@semester} %8.50->9.0, 3.60->2.7

\@putpar{ 18.05cm}{  2.70cm}{  2.00cm}{  2.00cm}{\@category} 

% related PATT applications

\@putpar{  6.48cm}{  3.54cm}{ 1.00cm}{ 0.00cm}{\@relatedappsaat} 
\@putpar{  6.87cm}{  3.54cm}{ 1.00cm}{-1.32cm}{\@relatedappswht}
\@putpar{  7.15cm}{  3.54cm}{ 1.00cm}{-1.32cm}{\@relatedappsint}
\@putpar{  7.43cm}{  3.54cm}{ 1.00cm}{-1.32cm}{\@relatedappsjkt}
\@putpar{  8.12cm}{  3.54cm}{ 1.00cm}{-1.32cm}{\@relatedappsukirt}
\@putpar{  8.68cm}{  3.54cm}{ 1.00cm}{-1.32cm}{\@relatedappsjcmt}
\@putpar{  9.55cm}{  3.54cm}{ 1.00cm}{-1.32cm}{\@relatedappsgemini}
\@putpar{  9.62cm}{  3.54cm}{ 1.00cm}{-1.32cm}{\@relatedappslt}
\@putpar{ 10.56cm}{  3.54cm}{ 1.00cm}{-1.32cm}{\@relatedappsmerlin}

\@putpar{  2.50cm}{  4.80cm}{  7.00cm}{  2.00cm}{\@pisurname}

\@putpar{ 11.70cm}{  4.80cm}{  1.40cm}{  2.00cm}{\@pititle}

\@putpar{ 16.20cm}{  4.80cm}{  1.40cm}{  2.00cm}{\@piinitials}
                                                                        
\@putpar{  2.50cm}{  5.30cm}{ 14.80cm}{  2.00cm}{\@pistatus}

\@putpar{  2.50cm}{  6.00cm}{ 15.00cm}{  2.00cm}{\@piaddressone}

\@putpar{  2.50cm}{  6.50cm}{ 15.00cm}{  2.00cm}{\@piaddresstwo}
                                                                             
\@putpar{  2.50cm}{  7.00cm}{ 15.00cm}{  2.00cm}{\@piaddressthree}
                                                                              
\@putpar{  2.50cm}{  7.80cm}{  6.20cm}{  2.00cm}{\@piphone}
                                                                              
\@putpar{ 12.00cm}{  7.80cm}{  6.20cm}{  2.00cm}{\@pifax}
                                                                              
\@putpar{  2.50cm}{  8.25cm}{  6.30cm}{  2.00cm}{\@piemail }

\@putpar{ 16.40cm}{  8.25cm}{  2.00cm}{  2.00cm}{\@piobserver }

\@putpar{  0.50cm}{ 10.00cm}{  6.00cm}{  2.00cm}{\@collabonename}
                                                                           
\@putpar{  7.50cm}{ 10.00cm}{  8.00cm}{  2.00cm}{\@collaboneinst}
                                                                              
\@putpar{ 16.50cm}{ 10.00cm}{  2.00cm}{  2.00cm}{\@collaboneobserver}
                                                                              
\@putpar{  0.50cm}{ 10.50cm}{  6.00cm}{  2.00cm}{\@collabtwoname}
                                                                              
\@putpar{  7.50cm}{ 10.50cm}{  8.00cm}{  2.00cm}{\@collabtwoinst}
                                                                              
\@putpar{ 16.50cm}{ 10.50cm}{  2.00cm}{  2.00cm}{\@collabtwoobserver}
                                                                              
\@putpar{  0.50cm}{ 11.00cm}{  6.00cm}{  2.00cm}{\@collabthreename}
 
\@putpar{  7.50cm}{ 11.00cm}{  8.00cm}{  2.00cm}{\@collabthreeinst }
                                                                              
\@putpar{ 16.50cm}{ 11.00cm}{  2.00cm}{  2.00cm}{\@collabthreeobserver}
                                                                              
\@putpar{  0.50cm}{ 11.50cm}{  6.00cm}{  2.00cm}{\@collabfourname}
                                                                              
\@putpar{  7.50cm}{ 11.50cm}{  8.00cm}{  2.00cm}{\@collabfourinst}
                                                                              
\@putpar{ 16.50cm}{ 11.50cm}{  2.00cm}{  2.00cm}{\@collabfourobserver}
                                                                             
\@putpar{  0.50cm}{ 12.80cm}{ 17.50cm}{  2.00cm}{\@title}
                                                                             
\@putpar{0.50cm}{ 14.80cm}{ 17.50cm}{  6.50cm}{\@abstract}
                                                                              
\@putpar{  0.50cm}{ 19.90cm}{  3.00cm}{  2.00cm}{\@focalstation}
                                                                              
\@putpar{  4.00cm}{ 19.90cm}{  5.50cm}{  2.00cm}{\@instrument}

\@putpar{ 10.00cm}{ 19.90cm}{  2.70cm}{  2.00cm}{\@detector }
                                                                           
\@putpar{ 13.00cm}{ 19.90cm}{  5.50cm}{  2.00cm}{\@gratingsandfilters}
                                                                              
\@putpar{  8.60cm}{ 21.80cm}{  2.00cm}{  2.00cm}{\@timerequesteddark }
                                                                              
\@putpar{ 10.90cm}{ 21.80cm}{  2.00cm}{  2.00cm}{\@timerequestedgrey }
                                                                              
\@putpar{ 13.40cm}{ 21.80cm}{  2.00cm}{  2.00cm}{\@timerequestedbright }
                                                                             
\@putpar{ 16.80cm}{ 21.80cm}{  2.00cm}{  2.00cm}{\@timerequestedunits }

\@putpar{  8.60cm}{ 22.80cm}{  2.00cm}{  2.00cm}{\@minusefuldark}
                                                                              
\@putpar{ 10.90cm}{ 22.80cm}{  2.00cm}{  2.00cm}{\@minusefulgrey }
                                                                             
\@putpar{ 13.40cm}{ 22.80cm}{  2.00cm}{  2.00cm}{\@minusefulbright }

\@putpar{  8.55cm}{ 24.80cm}{  2.00cm}{  2.00cm}{\@lttotaltimedark}
                                                                           
\@putpar{ 10.85cm}{ 24.80cm}{  2.00cm}{  2.00cm}{\@lttotaltimegrey}
                                                                              
\@putpar{ 13.35cm}{ 24.80cm}{  2.00cm}{  2.00cm}{\@lttotaltimebright}
                                                                              
\@putpar{ 16.80cm}{ 24.80cm}{  2.00cm}{  2.00cm}{\@lttotaltimeunits}

}
\eject

}


% stuff from template.tex

\def\makepatttwopagetwo{


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

%?#$&page2

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

\vspace*{0.23cm}\hspace*{-0.50cm}

\setlength{\unitlength}{1.0cm}

\begin{picture}(\@picturexdimen,\@pictureydimen)(\@picturexoffset,\@pictureyoffset)
\@Small
\put(00.35,27.75){{ 12 }}
\put(00.85,27.75){{ SCHEDULING INFORMATION }}
\put(00.25,28.10){\rule[0.0cm]{19.00cm}{\@thicklinewidth}}
\put(00.25,01.50){\rule[0.0cm]{\@thicklinewidth}{26.6cm}}
\put(19.25,01.50){\rule[0.0cm]{\@thicklinewidth}{26.65cm}}
\put(00.25,01.50){\rule[0.0cm]{19.00cm}{\@thicklinewidth}}
\put(06.65,27.20){{ Preferred dates: }}
\put(09.20,27.60){\line(1,0){10.10}}
\put(09.20,26.60){\line(1,0){10.10}}
\put(06.45,26.25){{ Impossible dates: }}
\put(09.20,27.60){\line(0,-1){07.35}}
\put(02.50,25.50){{ \it Give justification for impossible dates }}
\put(09.20,24.65){\line(1,0){10.10}}
\put(01.80,24.30){{ If observations are to be simultaneous with other }}
\put(03.80,23.80){{ telescopes or satellites, give details: }}
\put(09.20,22.70){\line(1,0){10.10}}
\put(04.10,22.30){{ Any other scheduling constraints:  }}
\put(00.60,21.60){{ \it Include likely clashes with other time applications, }}
\put(02.20,21.10){{ \it constraints on lunar position or quarter, }}
\put(01.90,20.60){{ \it instrument preparation requirements, etc }}
\put(00.25,20.20){\rule[0.0cm]{19.00cm}{\@thicklinewidth}}

\put(00.35,19.85){{ 13 }}
\put(00.85,19.85){{ SERVICE OBSERVING }}
\put(07.90,19.30){{ yes: }}
\put(08.70,18.80){\framebox(1.0,1.0){}}
\put(10.30,19.30){{ no: }}
\put(11.00,18.80){\framebox(1.0,1.0){}}
\put(12.15,19.30){{ maybe: }}
\put(13.40,18.80){\framebox(1.0,1.0){}}
\put(00.25,18.80){\rule[0.0cm]{19.00cm}{\@thicklinewidth}}

\put(00.35,18.45){{ 14 }}
\put(00.85,18.45){{ SUPPORT ASTRONOMER REQUESTED AT TELESCOPE }}
\put(06.75,17.90){{ every night: }}
\put(08.70,17.30){\framebox(1.0,1.0){}}
\put(10.30,17.90){{ no: }}
\put(11.00,17.30){\framebox(1.0,1.0){}}
\put(13.15,17.90){{ first night only: }}
\put(15.60,17.30){\framebox(1.0,1.0){}}
\put(00.25,17.30){\rule[0.0cm]{19.00cm}{\@thicklinewidth}}

\put(00.35,16.95){{ 15 }}
\put(00.85,16.95){{ LIST OF PRINCIPAL TARGETS }}
\put(00.35,16.45){{ Object(s): }}
\put(04.05,16.45){{ RA(h,m): }}
\put(07.00,16.45){{ Dec(degs): }}
\put(10.00,16.45){{ Mag(type): }}
\put(12.90,16.45){{ Colour: }}
\put(15.90,16.45){{ Exp. Time: }}
\put(00.25,16.30){\line(1,0){19.00}}
\put(00.25,11.90){\rule[0.0cm]{19.00cm}{\@thicklinewidth}}

\put(00.35,11.55){{ 16 }}
\put(00.85,11.55){{ LIST ALL SIMILAR/SUPPORTING APPLICATIONS TO ANY PATT OR OTHER TIME
ASSIGNMENT COMMITTEE  }}
\put(00.25,11.00){{ \it You must include a brief description of any
other applications whose targets or science goals are similar to }}
\put(00.25,10.50){{ \it  those
requested here}}
\put(00.35,10.00){{ Telescope/satellite: }}
\put(05.10,10.00){{ Title/Description of programme: }}
\put(00.25,9.90){\line(1,0){19.00}}
\put(05.10,9.90){\line(0,-1){08.40}}
\put(09.70,00.50){{ 2. }}

\end{picture}

\vspace*{-26.75cm}

\@small

\@putpar{  9.00cm}{  0.20cm}{  9.50cm}{  2.00cm}{\@prefdates}

\@putpar{  9.00cm}{  1.00cm}{  9.50cm}{  2.00cm}{\@impossdates}

\@putpar{  9.00cm}{  1.80cm}{  9.50cm}{  2.00cm}{\@datesjustification}
                                                                            
\@putpar{  9.00cm}{  3.10cm}{  9.50cm}{  2.00cm}{\@simultaneous}
                                                                             
\@putpar{  9.00cm}{  5.10cm}{  9.50cm}{  2.00cm}{\@othertimeconstraints}

\@putpar{  8.60cm}{  8.00cm}{  2.00cm}{  2.00cm}{\@serviceobservingyes}

\@putpar{ 10.90cm}{  8.00cm}{  2.00cm}{  2.00cm}{\@serviceobservingno} 
                                                                              
\@putpar{ 13.35cm}{  8.00cm}{  2.00cm}{  2.00cm}{\@serviceobservingmaybe} 
                                                                              
\@putpar{  8.60cm}{  9.45cm}{  2.00cm}{  2.00cm}{\@supporteverynight}

\@putpar{ 10.90cm}{  9.45cm}{  2.00cm}{  2.00cm}{\@supportnone}

\@putpar{ 15.60cm}{  9.45cm}{  2.00cm}{  2.00cm}{\@supportfirstnight}

\@putpar{  0.50cm}{ 11.30cm}{ 18.00cm}{  8.00cm}{\@targetinfo}

\@putpar{  0.50cm}{ 17.80cm}{  3.50cm}{  2.00cm}{\@otherapplications}

% end of page 2

\eject
}


\def\makepatttwopagethree{

%?#$&page3

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

\vspace*{0.23cm}\hspace*{-0.50cm}
\setlength{\unitlength}{1.0cm}
\begin{picture}(\@picturexdimen,\@pictureydimen)(\@picturexoffset,\@pictureyoffset)

\@Small
\put(00.25,01.40){\rule[0.0cm]{\@thicklinewidth}{26.75cm}}
\put(19.25,01.40){\rule[0.0cm]{\@thicklinewidth}{26.80cm}}
\put(00.25,28.15){\rule[0.0cm]{19.0cm}{\@thicklinewidth}}
\put(00.25,01.40){\rule[0.0cm]{19.0cm}{\@thicklinewidth}}
\put(00.35,27.80){{ 17 }}
\put(00.85,27.80){{ SCIENTIFIC JUSTIFICATION }}
\put(00.35,27.30){{ \it Case not to exceed this A4 page. 
Figures and/or references can be included on page 4a}}
\put(00.25,27.20){\line(1,0){19.00}}

\put(09.70,00.50){{ 3. }}
\end{picture}


\vspace*{-25.75cm}\hspace*{0.10cm}
{{\@normal\parbox[t]{7.15in}{\@sciencecase}}}


}

% end of page 3

\def\makepatttwopagethreea{

%?#$&page3a

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

\newpage

\vspace*{0.23cm}\hspace*{-0.50cm}
\setlength{\unitlength}{1.0cm}
\begin{picture}(\@picturexdimen,\@pictureydimen)(\@picturexoffset,\@pictureyoffset)

\@Small
\put(00.25,01.40){\rule[0.0cm]{\@thicklinewidth}{26.75cm}}
\put(19.25,01.40){\rule[0.0cm]{\@thicklinewidth}{26.80cm}}
\put(00.25,28.15){\rule[0.0cm]{19.0cm}{\@thicklinewidth}}
\put(00.25,01.40){\rule[0.0cm]{19.0cm}{\@thicklinewidth}}
\put(00.35,27.80){{ 17 }}
\put(00.85,27.80){{ SCIENTIFIC JUSTIFICATION }}
\put(00.35,27.30){{ \it Continuation page for WHT proposals 
for 6 or more nights, and for WHT NAOMI backup proposals}}
\put(00.25,27.20){\line(1,0){19.00}}

\put(09.70,00.50){{ 3a. }}
\end{picture}


\vspace*{-25.75cm}\hspace*{0.10cm}
{{\@normal\parbox[t]{7.15in}{\@extendedsciencecase}}}


}

% end of page 3a


\def\makepatttwopagefour{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%?#$&page4

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

\newpage

\vspace*{0.23cm}\hspace*{-0.50cm}
\setlength{\unitlength}{1.0cm}
\begin{picture}(\@picturexdimen,\@pictureydimen)(\@picturexoffset,\@pictureyoffset)

\@Small
\put(00.25,01.40){\rule[0.0cm]{\@thicklinewidth}{26.75cm}}
\put(19.25,01.40){\rule[0.0cm]{\@thicklinewidth}{26.80cm}}
\put(00.25,28.15){\rule[0.0cm]{19.0cm}{\@thicklinewidth}}
\put(00.25,01.40){\rule[0.0cm]{19.0cm}{\@thicklinewidth}}
\put(00.35,27.80){{ 18 }}
\put(00.85,27.80){{ TECHNICAL INFORMATION (I)}}
\put(00.25,27.30){{ \it Give details of the technical feasibility of the 
proposal (S/N,etc) AND any non-standard technical requirements }}
\put(00.25,27.20){\line(1,0){19.00}}
\put(09.70,00.50){{ 4. }}
\end{picture}


\vspace*{-25.75cm}\hspace*{0.10cm}
{{\@normal\parbox[t]{7.15in}{\@technicalpage}}}


\eject

}

\def\makepatttwopagefoura{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%?#$&page4a

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

\newpage

\vspace*{0.23cm}\hspace*{-0.50cm}
\setlength{\unitlength}{1.0cm}
\begin{picture}(\@picturexdimen,\@pictureydimen)(\@picturexoffset,\@pictureyoffset)

\@Small
\put(00.25,01.40){\rule[0.0cm]{\@thicklinewidth}{26.75cm}}
\put(19.25,01.40){\rule[0.0cm]{\@thicklinewidth}{26.80cm}}
\put(00.25,28.15){\rule[0.0cm]{19.0cm}{\@thicklinewidth}}
\put(00.25,01.40){\rule[0.0cm]{19.0cm}{\@thicklinewidth}}
\put(00.35,27.80){{ 18 }}
\put(00.85,27.80){{ TECHNICAL INFORMATION (II)}}
\put(00.25,27.30){{ \it References and Figures }}
\put(00.25,27.20){\line(1,0){19.00}}
\put(09.70,00.50){{ 4a. }}
\end{picture}


\vspace*{-25.75cm}\hspace*{0.10cm}
{{\@normal\parbox[t]{7.15in}{\@figsandrefspage}}}


\eject

}



\def\makepatttwopagefive{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%?#$&page5

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace*{0.23cm}\hspace*{-0.50cm}{\setlength{\unitlength}{1.0cm}
\begin{picture}(\@picturexdimen,\@pictureydimen)(\@picturexoffset,\@pictureyoffset)
\@Small
\put(00.50,01.50){\rule[0.0cm]{\@thicklinewidth}{26.65cm}}
\put(19.00,01.50){\rule[0.0cm]{\@thicklinewidth}{26.70cm}}
\put(00.40,28.15){{ \@thline }}
\put(00.40,01.50){{ \@thline }}
\put(00.60,27.80){{ 19 }}
\put(01.10,27.80){{ SUMMARY OF BACKUP PROGRAMME FOR POOR OBSERVING CONDITIONS }}
\put(00.60,27.30){{ \it If instrumentation or setup differs from main programme,
 give full details }}
\put(00.50,27.20){\line(1,0){18.50}}
\put(00.40,23.30){{ \@thline }}

\put(00.60,22.90){{ 20 }}
\put(01.10,22.90){{ RELATED PATT APPLICATIONS OVER THE LAST FOUR SEMESTERS} { \it
 (including unsuccesful applications) }}
\put(00.60,22.40){{ PATT reference: }}
\put(05.00,22.40){{ Award: }}
\put(07.30,22.40){{ Clear nights: }}
\put(09.70,22.40){{ Comments: }}
\put(00.50,22.30){\line(1,0){18.50}}
\put(05.05,22.30){\line(0,-1){03.90}}
\put(07.35,22.30){\line(0,-1){03.90}}
\put(09.75,22.30){\line(0,-1){03.90}}
\put(00.40,18.40){{ \@thline }}

\put(00.60,18.00){{ 21 }}
\put(01.10,18.00){{ PUBLICATIONS BASED ON PATT TIME PUBLISHED DURING THE LAST 
FOUR SEMESTERS } { \it (maximum 6) }}
\put(00.50,17.85){\line(1,0){18.50}}
\put(00.40,13.95){{ \@thline }}


\put(00.60,13.55){{ 22 }}
\put(01.10,13.55){{ EXPERIENCE OF INTENDED OBSERVERS WHO HAVE NOT PREVIOUSLY 
USED THIS TELESCOPE }}
\put(00.50,13.40){\line(1,0){18.50}}
\put(00.40,11.50){{ \@thline }}

\put(00.60,11.10){{ 23 }}
\put(01.10,11.10){{ COMPLETE IF THE OBSERVATIONS ARE PRIMARILY FOR A STUDENT 
RESEARCH TRAINING PROGRAMME }}
\put(04.65,10.60){{ Name of student: }}
\put(07.40,11.00){\line(0,-1){1.0}}
\put(07.40,11.00){\line(1,0){11.6}}
\put(07.40,10.50){\line(1,0){11.6}}
\put(05.35,10.15){{ Project title: }}
\put(00.40,10.00){{ \@thline }}

\put(00.60,09.60){{ 24 }}
\put(01.10,09.60){{ COMPLETE IF THE OBSERVATIONS ARE ASSOCIATED WITH A CURRENT 
PPARC/SERC RESEARCH GRANT }}
\put(02.70,09.10){{ Name of principal investigator: }}
\put(07.40,09.50){\line(1,0){11.60}}
\put(07.40,09.00){\line(1,0){11.60}}
\put(07.40,08.50){\line(1,0){11.60}}
\put(07.40,09.50){\line(0,-1){01.5}}
\put(05.57,08.60){{ Grant title: }}
\put(05.05,08.15){{ Grant number: }}
\put(00.40,08.00){{ \@thline }}

\put(00.60,07.60){{ 25 }}
\put(01.10,07.60){{ NON-STANDARD TRAVEL AND SUBSISTENCE REQUIREMENTS }{ \it 
(UK observers only) }}
\put(00.60,07.10){{ Justify requests for travel and subsistence for more than 
one person: }}
\put(00.50,07.00){\line(1,0){18.50}}
\put(00.50,04.50){\line(1,0){18.50}}
\put(00.60,04.15){{ Details of any other expenditure (eg freight, remote 
observing): }}
\put(00.50,04.00){\line(1,0){18.50}}
\put(09.50,00.50){{ 5. }}
\end{picture}
}


\vspace*{-26.75cm}
{\@small

\@putpar{  0.40cm}{  0.60cm}{ 17.80cm}{  3.30cm}{\@backupprogram}
                                                                              
\@putpar{  0.50cm}{  5.40cm}{ 17.50cm}{  5.00cm}{\@previous}

\@putpar{  0.50cm}{  9.80cm}{ 17.50cm}{  5.00cm}{\@publications}
                                                                              
\@putpar{  0.50cm}{ 14.20cm}{ 17.50cm}{  2.00cm}{\@experience}

\@putpar{  7.20cm}{ 16.57cm}{ 11.00cm}{  1.50cm}{\@graduatestudentname}
                                                                         
\@putpar{  7.20cm}{ 17.05cm}{ 11.00cm}{  1.50cm}{\@graduatestudentnumber}
                                                                             
\@putpar{  7.20cm}{ 18.07cm}{ 11.00cm}{  1.50cm}{\@grantname}
                                                                             
\@putpar{  7.20cm}{ 18.55cm}{ 11.00cm}{  1.50cm}{\@granttitle}
                                                                              
\@putpar{  7.20cm}{ 19.05cm}{ 11.00cm}{  1.50cm}{\@grantnumber}
                                                                              
\@putpar{  0.50cm}{ 20.70cm}{ 17.50cm}{  3.00cm}{\@nonstandardtravel}
                                                                             
\@putpar{  0.50cm}{ 23.70cm}{ 17.50cm}{  3.00cm}{\@otherexpenditure}
                                                                              
}

}


\def\makepatttwopagesix{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%?#$&page6

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

\newpage

\vspace*{0.23cm}\hspace*{-0.50cm}

{\setlength{\unitlength}{1.0cm}
\begin{picture}(\@picturexdimen,\@pictureydimen)(\@picturexoffset,\@pictureyoffset)
\put(00.40,28.15){{ \@thline }}
\@Small
\put(00.60,27.75){{ 26 }}
\put(01.10,27.75){{ SIGNATURES }}
\put(00.60,27.00){{ \parbox[t]{7.12in}{\setlength{\baselineskip}{5.0mm}
{ \it We have just read the Notes for Guidance relating to 
applications to the Panel for the Allocation of Telesope 
Time and if an award is made, understand that all 
participants may be required to sign a form of indemnity
before being permitted to use the equipment. We are 
not bound by any contrary conditions governing the
proposed investigation including obligations to 
third parties incurred in respect of ownership and use of
research results and patents.} }}}
\put(08.70,24.30){{ Signature: }}
\put(14.30,24.30){{ Date: }}
\put(05.60,23.80){{ Principal applicant: }}
\put(08.65,24.20){\line(1,0){10.35}}
\put(08.65,23.20){\line(1,0){10.35}}
\put(08.65,21.75){\line(1,0){10.35}}
\put(08.65,24.20){\line(0,-1){04.40}}
\put(14.30,24.20){\line(0,-1){04.40}}
\put(01.50,22.85){{ Head of applicant's department/establishment: }}
\put(04.60,22.40){{ \it (UK applicants only) }}
\put(01.70,21.40){{ Administrative authority (state position held): }}
\put(04.60,20.85){{ \it (UK applicants only) }}
\put(00.40,19.80){{ \@thline }}
\put(00.50,19.80){\rule[0.0cm]{\@thicklinewidth}{08.35cm}}
\put(19.00,19.80){\rule[0.0cm]{\@thicklinewidth}{08.40cm}}

\put(00.60,18.90){{ \parbox[t]{7.15in}{\setlength{\baselineskip}{4.53mm}
Send the original signed and completed form PATT2 plus
{\it (i)}{ \@Smallbf eight}{ copies of pages 1 - 5 (sections 1 - 23)} 
{\it (ii)}{ \@Smallbf one}
{ copy of this page (sections 24 - 26)}{ \it (iii)}{ \@Smallbf 
eight}{ copies of the instrument scheduling form}{ \it (iv) }{\@Smallbf three}
{ copies of any supplementary material (}{\@Smallbf four}{ copies
 in the case of a long term proposal) to}
{ \it The Executive Secretary, Panel for the Allocation of Telescope Time,
 Particle Physics and Astronomy Research Council, Polaris House,
 North Star Avenue, SWINDON, SN2 1SZ, UK. }{ The closing
 dates are as follows: }}}}
\put(01.20,16.35){{ Semester A (February - July): 30 September }}
\put(11.20,16.35){{ Semester B (August - January): 31 March }}

\put(00.40,15.90){{ \@thline }}
\put(00.60,15.50){{ 27 }}
\put(01.10,15.50){{ SUMMARY SLIP }}
\put(13.30,15.50){{ Time requested this semester: }}
\put(00.60,15.00){{ Short title of proposal: }}
\put(07.40,15.00){{ Principal applicant and institute: }}
\put(13.60,15.00){{ D }}
\put(14.70,15.00){{ G }}
\put(15.80,15.00){{ B }}
\put(16.60,15.00){{ nights/weeks }}
\put(00.50,14.85){\line(1,0){18.5}}
\put(07.40,14.85){\line(0,-1){4.95}}
\put(13.20,14.85){\line(0,-1){4.95}}
\put(14.30,14.85){\line(0,-1){4.95}}
\put(15.55,14.85){\line(0,-1){4.95}}
\put(16.60,14.85){\line(0,-1){4.95}}
\put(00.50,09.90){\rule[0.0cm]{\@thicklinewidth}{6.0cm}}
\put(19.00,09.90){\rule[0.0cm]{\@thicklinewidth}{6.05cm}}
\put(00.40,09.90){{ \@thline }}

\put(00.40,09.40){{ \@thline }}
\put(00.60,09.00){{ 28 }}
\put(01.10,09.00){{ ACKNOWLEDGEMENT SLIP }}
\put(00.60,08.50){{ Short title of proposal: }}
\put(00.50,08.40){\line(1,0){18.50}}
\put(19.00,07.00){\rule[0.0cm]{\@thicklinewidth}{2.45cm}}
\put(00.50,07.05){\line(1,0){9.2}}
\put(09.70,07.00){\rule[0.0cm]{9.3cm}{\@thicklinewidth}}
\put(00.60,06.60){{ Address to which acknowledgement should be sent: }}
\put(00.50,06.50){\line(1,0){9.2}}
\put(00.50,01.50){\rule[0.0cm]{\@thicklinewidth}{07.90cm}}
\put(00.50,01.50){\rule[0.0cm]{9.2cm}{\@thicklinewidth}}
\put(09.70,01.50){\rule[0.0cm]{\@thicklinewidth}{05.5cm}}
\put(11.00,06.10){{ We acknowledge receipt of the above }}
\put(11.00,05.60){{ application, reference: }}
\put(11.00,03.10){{ PATT Secretariat, }}
\put(11.00,02.60){{ Particle Physics and Astronomy Research Council, }}
\put(11.00,02.10){{ Polaris House, North Star Avenue, }}
\put(11.00,01.60){{ SWINDON SN2 1SZ }}
\put(09.50,00.50){{ 6. }}
\end{picture}
}
 
\vspace*{-26.75cm}{\@small

\@putpar{  0.40cm}{ 13.50cm}{  6.30cm}{  4.00cm}{\@shorttitle}

\@putpar{  7.40cm}{ 13.50cm}{  5.00cm}{  4.00cm}
{\@piinitials,\@pisurname \newline \@piaddressone }

\@putpar{ 13.05cm}{ 13.50cm}{  1.00cm}{  4.00cm}{\@timerequesteddark}

\@putpar{ 14.20cm}{ 13.50cm}{  1.00cm}{  4.00cm}{\@timerequestedgrey}

\@putpar{ 15.45cm}{ 13.50cm}{  1.00cm}{  4.00cm}{\@timerequestedbright }

\@putpar{ 16.50cm}{ 13.50cm}{  2.00cm}{  4.00cm}{\@timerequestedunits}

\@putpar{  0.50cm}{ 19.50cm}{ 17.50cm}{  2.00cm}{\@shorttitle }

\@putpar{  1.00cm}{ 22.50cm}{  8.50cm}{  4.00cm}
{  \@piinitials,\@pisurname \newline
   \@piaddressone \newline
   \@piaddresstwo \newline
   \@piaddressthree }
\@putpar{  10.40cm}{ 13.50cm}{  5.00cm}{  4.00cm}{\large\@refno}

                                                                           
 }

 }




\def\mksummary{

\@telescope-\@semester-\@pattref

\@title

\@piemail

 }







\endinput
