% This is v1.1 of the LaTeX style file for the LT.
% This version is for Semester 24A onwards
%
% DO NOT EDIT THIS FILE WHEN SUBMITTING AN APPLICATION!
%
% Changes from v0.1 to v0.2 are:
% Added Science Category
% Added time this semester and time in total
% Added ToO box
% Added deltaT for monitoring
%
% Changes from v0.2 to v0.3 are:
% Added SupIRCam
% Replaced JKT with ESO (!)
%
% Changes from v0.3 to v0.4 are:
% Added RISE, RINGO, MEABURN, FRODOSPEC
% changed page length to allow printing on A4 and US paper
% Added MUF
% Added Publications section
% Added Previous Work section
%
% Changes from v0.4 to v0.5 are:
% Revised instruments (added IO, removed RATCam, Meaburn).
% Added filter/grating requests
% Added ToO likelihood
% Simplified time breakdown (remove seeing and sky catagories)
% Explicit seeing, sky brightness and photometricity request
% Removed AAT, added LCOGT
% Added TAG and PROGID
%
% Change from v0.5 to v0.6 are
% Revised instruments (added SPRAT).
% Added comment about FIXED groups and long groups
% 
% Change from v0.6 to v0.7 are 
% Major revision. Biggest reformatting to date.
%
% Change from v0.7 to v0.8 are
% Add section for ARI strategic significance
% This was never released publicly.
%
% Change from v0.8 to v0.9 are
% Write PL or JL correctly in the top-right corner. v0.7 always wrote PL.
% Swap RINGO3 to MOPTOP
% Remove section for ARI strategic significance
%
% Change from v0.9 to v1.0 are
% Changed ToO field fron Y/N to Y/N and percentage
% Added Requested Rank field and guidance
% Added guidance for ToO/Monitoring to Tech Case text.
%
% Change from v1.0 to 1.1 is
% Added LIRIC

% v0.1 Date 20 Nov 1999
% v0.2 Date 4 September 2001
% v0.3 Date ?? Feb 2004
% v0.4 Date 28 Feb 2008
% v0.5 Date 7 Sep 2012
% v0.6 Date 10 Aug 2014
% v0.9 Date 13 Mar 2020
% v1.0 Date 9 Sep 2022
% v1.1 Date 13 Sep 2023
%
%	Questions & comments contact ltphase1@ljmu.ac.uk
%

% Convert from internal TeX scaled pt units to whatever units you like
% For example
%	\convertto{cm}{\somedimension}
%prints \somedimension in cm instead of pt
\def\convertto#1#2{\strip@pt\dimexpr #2*65536/\number\dimexpr 1#1}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define the text fields
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

\def\semester#1{\gdef\@semester{#1}}\def\@semester{}
\def\duration#1{\gdef\@duration{#1}}\def\@duration{}
\def\pattnum#1{\gdef\@pattnum{#1}}\def\@pattnum{}
\def\progid#1{\gdef\@progid{#1}}\def\@progid{}
\def\title#1{\gdef\@title{#1}}\def\@title{}
\def\scicat#1{\gdef\@scicat{#1}}\def\@scicat{}

\def\PIname#1{\gdef\@PIname{#1}}\def\@PIname{}
\def\PIEMAIL#1{\gdef\@PIEMAIL{#1}}\def\@PIEMAIL{}
\def\PIinstitution#1{\gdef\@PIinstitution{#1}}\def\@PIinstitution{}

\def\CIAname#1{\gdef\@CIAname{#1}}\def\@CIAname{}
\def\CIAEMAIL#1{\gdef\@CIAEMAIL{#1}}\def\@CIAEMAIL{}
\def\CIAinstitution#1{\gdef\@CIAinstitution{#1}}\def\@CIAinstitution{}

\def\CIBname#1{\gdef\@CIBname{#1}}\def\@CIBname{}
\def\CIBEMAIL#1{\gdef\@CIBEMAIL{#1}}\def\@CIBEMAIL{}
\def\CIBinstitution#1{\gdef\@CIBinstitution{#1}}\def\@CIBinstitution{}

\def\CICname#1{\gdef\@CICname{#1}}\def\@CICname{}
\def\CICEMAIL#1{\gdef\@CICEMAIL{#1}}\def\@CICEMAIL{}
\def\CICinstitution#1{\gdef\@CICinstitution{#1}}\def\@CICinstitution{}

\def\CIDname#1{\gdef\@CIDname{#1}}\def\@CIDname{}
\def\CIDEMAIL#1{\gdef\@CIDEMAIL{#1}}\def\@CIDEMAIL{}
\def\CIDinstitution#1{\gdef\@CIDinstitution{#1}}\def\@CIDinstitution{}

\def\CIEname#1{\gdef\@CIEname{#1}}\def\@CIEname{}
\def\CIEEMAIL#1{\gdef\@CIEEMAIL{#1}}\def\@CIEEMAIL{}
\def\CIEinstitution#1{\gdef\@CIEinstitution{#1}}\def\@CIEinstitution{}

\def\phdthesis#1{\gdef\@phdthesis{#1}}\def\@phdthesis{}
\def\phdname#1{\gdef\@phdname{#1}}\def\@phdname{}

\long\def\abstract#1{\gdef\@abstr{#1}}\def\@abstr{}
\long\def\publications#1{\gdef\@publications{#1}}\def\@publications{}
\long\def\previouswork#1{\gdef\@previouswork{#1}}\def\@previouswork{}

\def\thissemestertime#1{\gdef\@thissemestertime{#1}}\def\@thissemestertime{}
\def\totaltime#1{\gdef\@totaltime{#1}}\def\@totaltime{}
\def\seeing#1{\gdef\@seeing{#1}}\def\@seeing{}
\def\sky#1{\gdef\@sky{#1}}\def\@sky{}
\def\photometric#1{\gdef\@photometric{#1}}\def\@photometric{}
\def\cadence#1{\gdef\@cadence{#1}}\def\@cadence{}
\def\constraints#1{\gdef\@constraints{#1}}\def\@constraints{}

\def\jan#1{\gdef\@jan{#1}}\def\@jan{}
\def\feb#1{\gdef\@feb{#1}}\def\@feb{}
\def\mar#1{\gdef\@mar{#1}}\def\@mar{}
\def\apr#1{\gdef\@apr{#1}}\def\@apr{}
\def\may#1{\gdef\@may{#1}}\def\@may{}
\def\jun#1{\gdef\@jun{#1}}\def\@jun{}
\def\jul#1{\gdef\@jul{#1}}\def\@jul{}
\def\aug#1{\gdef\@aug{#1}}\def\@aug{}
\def\sep#1{\gdef\@sep{#1}}\def\@sep{}
\def\oct#1{\gdef\@oct{#1}}\def\@oct{}
\def\nov#1{\gdef\@nov{#1}}\def\@nov{}
\def\dec#1{\gdef\@dec{#1}}\def\@dec{}

\def\too#1{\gdef\@too{#1}}\def\@too{}
\def\likelihood#1{\gdef\@likelihood{#1}}\def\@toolikelihood{}
\def\muf#1{\gdef\@muf{#1}}\def\@muf{}
\def\photometric#1{\gdef\@photometric{#1}}\def\@photometric{}
\def\rank#1{\gdef\@rank{#1}}\def\@rank{}

% Instruments

%\def\instioo#1{\gdef\@instioo{#1}}\def\@instioo{}
\def\instioo#1{\gdef\@instioo{#1}}\def\@instioo{}
\def\instioodetails#1{\gdef\@instioodetails{#1}}\def\@instioodetails{}

%\def\instioi#1{\gdef\@instioi{#1}}\def\@instioi{}
%\def\instioidetails#1{\gdef\@instioidetails{#1}}\def\@instioidetails{}

%\def\instringo#1{\gdef\@instringo{#1}}\def\@instringo{}
\def\instmoptop#1{\gdef\@instmoptop{#1}}\def\@instmoptop{}

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

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

\def\instfrodo#1{\gdef\@instfrodo{#1}}\def\@instfrodo{}
\def\instfrododetails#1{\gdef\@instfrododetails{#1}}\def\@instfrododetails{}

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

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

%\def\lcogt#1{\gdef\@lcogt{#1}}\def\@lcogt{}
%\def\wht#1{\gdef\@wht{#1}}\def\@wht{}
%\def\int#1{\gdef\@int{#1}}\def\@int{}
%\def\eso#1{\gdef\@eso{#1}}\def\@eso{}
%\def\tother#1{\gdef\@tother{#1}}\def\@tother{}

\long\def\sciencecase#1{\gdef\@sciencecase{#1}}\def\@sciencecase{}
\long\def\technicalcase#1{\gdef\@technicalcase{#1}}\def\@technicalcase{}
\long\def\figsandtabs#1{\gdef\@figsandtabs{#1}}\def\@figsandtabls{}
\long\def\targetlist#1{\gdef\@targetlist{#1}}\def\@targetlist{}
\long\def\otherfacilities#1{\gdef\@otherfacilities{#1}}\def\@otherfacilities{}


%%%%%%%%%%%%%% END OF DEFINITIONS OF USER FIELDS %%%%%%%%%%%%%

%\newcommand{\boldm}[1] {\mathversion{bold}#1\mathversion{normal}}

% The tick mark
%
% Using amssymb for a real tick
%\newcommand{\unticked}{$\square$}%
%\newcommand{\ticked}{\rlap{$\square$}{\raisebox{2pt}{\large\hspace{1pt}$\checkmark$}}}%
%
% Using base built in maths symbols
\newcommand{\unticked}{$\bigcirc$}
%\newcommand{\ticked}{\rlap{$\bigcirc$}{\raisebox{2pt}{\hspace{2pt}$\surd$}}}%		Surd as substitute for a tick
\newcommand{\ticked}{\rlap{$\bigcirc$}{\large\hspace{1pt}$\times$}}%			Times as substitute for a cross
%
% Draw whichever box type above is chosen
\newcommand{\tickbox}[1]{\if#1Y{\ticked}\else{\unticked}\fi}% 

\topmargin -1.3cm
 \textheight 10.5in
 \textwidth 7.5in
\oddsidemargin -1.5cm
 \evensidemargin -1.5cm
 \parskip 8pt plus 3pt minus 2pt
 \parindent 0in
 \pagestyle{empty}
\small\setlength{\baselineskip}{2.3mm}


\def \frontpage {
 
 {\setlength{\unitlength}{1.0cm}
 \begin{picture}(19.00,23.80)(00.00,04.50)
 
 \put(06.20,27.70){{\bf LIVERPOOL TELESCOPE }}
 \put(05.00,27.20){{\bf APPLICATION FOR TELESCOPE TIME }}

%\put(15.00,27.50){\bf \@tag/\@semester/ }
\IfStrEq{\@tag}{PATT}{
        \put(15.00,27.50){\bf PL/\@semester/ }
}{
        \put(15.00,27.50){\bf JL/\@semester/ }
}


 \put(1.00,27.50){{\bf TAG: }}
 \put(02.50,27.50){\@tag}

 \put(00.30,26.85){\rule{18.4cm}{0.03cm}}

 \put(01.00,26.20){{\bf Semester:}}
 \put(03.00,26.20){\@semester}
 \put(06.00,26.20){{\bf Duration (Semesters):}}
 \put(10.50,26.20){\@duration}
 \put(14.00,26.20){{\bf PROGID:}}
 \put(16.00,26.20){\@progid}

 \put(00.30,25.85){{\rule{18.4cm}{0.03cm}}}

 \put(00.80,25.60){{\rule{17.4cm}{0.03cm}}}

 \put(01.00,25.20){{\bf  Applicants (PI First)}}
 \put(07.00,25.20){{\bf  Institution}}
 \put(12.00,25.20){{\bf  email}}

 \put(00.80,25.00){{\rule{17.4cm}{0.03cm}}}

 \put(01.00,24.50){{\bf{\@PIname}}}
 \put(07.00,24.50){{\bf{\@PIinstitution}}}
 \put(12.00,24.50){{\bf{\@PIEMAIL}}}

 \put(01.00,24.00){\@CIAname}
 \put(07.00,24.00){\@CIAinstitution}
 \put(12.00,24.00){\@CIAEMAIL}

 \put(01.00,23.50){\@CIBname}
 \put(07.00,23.50){\@CIBinstitution}
 \put(12.00,23.50){\@CIBEMAIL}

 \put(01.00,23.00){\@CICname}
 \put(07.00,23.00){\@CICinstitution}
 \put(12.00,23.00){\@CICEMAIL}

 \put(01.00,22.50){\@CIDname}
 \put(07.00,22.50){\@CIDinstitution}
 \put(12.00,22.50){\@CIDEMAIL}

 \put(01.00,22.00){\@CIEname}
 \put(07.00,22.00){\@CIEinstitution}
 \put(12.00,22.00){\@CIEEMAIL}

 \put(01.00,21.50){\tickbox{\@phdthesis}\ Data are to be used in a PhD thesis of:}
 \put(09.00,21.50){\@phdname}

 \put(00.80,21.30){{\rule{17.4cm}{0.03cm}}}
 \put(00.80,21.30){\line(0,1){4.30}} 
 \put(18.20,21.30){\line(0,1){4.30}}

 \put (00.30,21.20){{\rule{18.4cm}{0.03cm}}}

 \put (01.00,20.60){{\bf Title:}}
 \put (03.00,20.60){\@title}

 \put (00.30,20.20){{\rule{18.4cm}{0.03cm}}}

 \put (01.00,19.70){{\bf Abstract:}}
 \put (01.00,19.20){{\sf \parbox[t]{17.0cm}{\@abstr}}}

 \put (00.30,15.20){{\rule{18.4cm}{0.03cm}}}

 \put (01.00,14.70){\bf TIME REQUESTED}
 
 \put (01.00, 14.20){\bf This semester (hours):}
 \put (08.00, 14.20){\@thissemestertime}

 \put (12.00, 14.20){\bf Total (hours):}
 \put (17.00, 14.20){\@totaltime}

 \put (01.00, 13.70){{\bf Min. Useable \%:}}
 \put (08.00, 13.70){\@muf}

 %\put (01.00,13.70){{\bf Which month(s) of the year would you ideally 
 %                                 like your observations taken?}}
 \put(01.00,13.2){Jan\,\tickbox{\@jan}}
 \put(02.50,13.2){Feb\,\tickbox{\@feb}}
 \put(04.00,13.2){Mar\,\tickbox{\@mar}}
 \put(05.50,13.2){Apr\,\tickbox{\@apr}}
 \put(07.00,13.2){May\,\tickbox{\@may}}
 \put(08.50,13.2){Jun\,\tickbox{\@jun}}
 \put(10.00,13.2){Jul\,\tickbox{\@jul}}
 \put(11.50,13.2){Aug\,\tickbox{\@aug}}
 \put(13.00,13.2){Sep\,\tickbox{\@sep}}
 \put(14.50,13.2){Oct\,\tickbox{\@oct}}
 \put(16.00,13.2){Nov\,\tickbox{\@nov}}
 \put(17.50,13.2){Dec\,\tickbox{\@dec}}

 \put (01.00,12.50){\bf SCHEDULING CONSTRAINTS}

 \put (01.00, 12.00){\bf Timing:}
 \put (05.00, 12.00){\@constraints}
 
 \put (12.00, 12.00){{\bf Group Cadence (days):}}
 \put (17.00, 12.00){\@cadence}

 \put (01.00, 11.50){{\bf ToO (Y/N, \%):}}
 \put (05.00, 11.50){\@too}

 \put (12.00, 11.50){{\bf ToO Likelihood (\%):}}
 \put (17.00, 11.50){\@likelihood}

 \put (01.00, 11.00){\bf Seeing (arcsec):}
 \put (05.00, 11.00){\@seeing}

 \put (12.00, 11.00){\bf Sky Brightness:}
 \put (17.00, 11.00){\@sky}

 \put (01.00, 10.50){\bf Photometric:}
 \put (05.00, 10.50){\@photometric}
 
  \put (12.00, 10.50){\bf Requested rank:}
 \put (17.00, 10.50){\@rank}

 \put (01.00, 9.80){\bf INSTRUMENTS}
 %\put(00.80, 8.80){{\rule{17.4cm}{0.03cm}}}

 \put(01.00,09.30){{\bf IO:O}}
 \put(05.00,09.30){{\bf Filters}}
 %\put(04.00,09.30){\@instioo}
 \put(04.00,09.30){\tickbox{\@instioo}}
 \put(07.00,09.30){\@instioodetails}

 %\put(01.00,08.80){{\bf IO:I}}
 %\put(05.00,08.80){{\bf Filters}}
 %\put(04.00,08.80){\tickbox{\@instioi}}
 %\put(07.00,08.80){\@instioidetails}

 \put(01.00,08.80){{\bf MOPTOP}}
 \put(04.00,08.80){\tickbox{\@instmoptop}}

 \put(01.00,08.30){{\bf RISE}}
 \put(04.00,08.30){\tickbox{\@instrise}}

 \put(01.00,07.80){{\bf SPRAT}}
 \put(04.00,07.80){\tickbox{\@instsprat}}

 \put(01.00,07.30){{\bf FRODOSpec}}
 \put(05.00,07.30){{\bf Gratings}}
 \put(04.00,07.30){\tickbox{\@instfrodo}}
 \put(07.00,07.30){\@instfrododetails}

 \put(01.00,06.80){{\bf LIRIC}}
 \put(04.00,06.80){\tickbox{\@instliric}}

 \put(01.00,06.30){{\bf Other}}
 \put(04.00,06.30){\@instother}

 \put(00.30,06.00){{\rule{18.4cm}{0.03cm}}}
 \put(00.30,04.70){{\rule{18.4cm}{0.03cm}}}
 
 \put(01.00,04.20){{\em Always consult the Call for Proposals and 
          LT web-pages before applying to use ANY instrument.}}
 
 \put(13.00,03.50){{\bf ltpattv1p1.sty - 0123456789}}


\end{picture}
}
}


\def \frontpagepart2{
 
{
\setlength{\unitlength}{1.0cm}
%\setlength{\unitlength}{1.0pt}
\begin{picture}(19.00,23.80)(00.00,04.50)	% cm
%\begin{picture}(538.58,674.65)(00.00,127.56)	% pt
 
\put(00.30,26.85){\rule{18.4cm}{0.03cm}}
%\put(08.50,761.10){\rule{18.4cm}{0.03cm}}	% pt

\put(01.00,26.20){{\bf Summary of progress on previous, related LT Programmes:}}
%\put(28.34,742.68){{\bf Summary of progress on previous, related LT Programmes:}} 	%pt

% \runningpos is where we currently are on the page
% As we add each blcok of text we decrement \runningpos to put the next item below
% whatever we have just printed.
% The first piece of floating text starts at 25.7cm. Everying above that is fixed hard.
\newcommand\runningpos{25.7}

%Fixed position
%\put(01.00,25.70){{\sf \parbox[t]{17.0cm}{\@previouswork}}}
%Floating position
\newbox\previousbox
\savebox\previousbox{\sf \parbox[t]{17.0cm}{\@previouswork}}
\put(01.00,\runningpos){\usebox{\previousbox}}
\FPsub{\runningpos}{\runningpos}{\convertto{cm}{\the\ht\previousbox}}
\FPsub{\runningpos}{\runningpos}{\convertto{cm}{\the\dp\previousbox}}
\FPsub{\runningpos}{\runningpos}{0.5}

%\put(01.00,\runningpos){\sf \parbox[t]{17.0cm}{Above text block; Width=\convertto{cm}{\the\wd\previousbox}cm, Height=\convertto{cm}{\the\ht\previousbox}cm, Depth=\convertto{cm}{\the\dp\previousbox}cm}}

%\put(00.30,15.70){\rule{18.4cm}{0.03cm}}
\put(00.30,\runningpos){\rule{18.4cm}{0.03cm}}
\FPsub{\runningpos}{\runningpos}{0.5}

%\put(01.00,15.20){\bf List of previous related and unrelated LT Publications:}
\put(01.00,\runningpos){\bf List of previous related and unrelated LT Publications:}
\FPsub{\runningpos}{\runningpos}{0.5}
 
%\put(01.00,14.70){{\sf \parbox[t]{17.0cm}{\@publications}}}
\newbox\publicationsbox
\savebox\publicationsbox{\sf \parbox[t]{17.0cm}{\@publications}}
\put(01.00,\runningpos){\usebox{\publicationsbox}}
\FPsub{\runningpos}{\runningpos}{\convertto{cm}{\the\ht\publicationsbox}}
\FPsub{\runningpos}{\runningpos}{\convertto{cm}{\the\dp\publicationsbox}}
\FPsub{\runningpos}{\runningpos}{0.5}
%\put(01.00,\runningpos){\sf \parbox[t]{17.0cm}{Above text block; Width=\convertto{cm}{\the\wd\publicationsbox}cm, Height=\convertto{cm}{\the\ht\publicationsbox}cm, Depth=\convertto{cm}{\the\dp\publicationsbox}cm}}

%\put(00.30,10.70){{\rule{18.4cm}{0.03cm}}}
%\put(01.00,10.20){{\bf Related Proposals:}}
%\put(05.0,10.20){{\small LCO:}\bf \@lcogt}
%\put(07.0,10.20){{\small WHT:}\bf \@wht}
%\put(09.0,10.20){{\small INT:}\bf \@int}
%\put(11.0,10.20){{\small ESO:}\bf \@eso}
%\put(13.0,10.20){{\small Other:}\bf \@tother}

%\put(00.30,9.70){{\rule{18.4cm}{0.03cm}}}
\put(00.30,\runningpos){\rule{18.4cm}{0.03cm}}
\FPsub{\runningpos}{\runningpos}{0.5}

%\put(01.00,09.20){{\bf Details of related/complementary proposals to this or other facilities:}}
%\put(01.00,08.70){{\sf \parbox[t]{17.0cm}{\@otherfacilities}}}
\put(01.00,\runningpos){{\bf Details of related/complementary proposals to this or other facilities:}}
\FPsub{\runningpos}{\runningpos}{0.5}

\newbox\otherfacilitiesbox
\savebox\otherfacilitiesbox{\sf \parbox[t]{17.0cm}{\@otherfacilities}}
\put(01.00,\runningpos){\usebox{\otherfacilitiesbox}}
\FPsub{\runningpos}{\runningpos}{\convertto{cm}{\the\ht\otherfacilitiesbox}}
\FPsub{\runningpos}{\runningpos}{\convertto{cm}{\the\dp\otherfacilitiesbox}}
\FPsub{\runningpos}{\runningpos}{0.5}


\end{picture}
}
}


\def\secondpage{

{\bf TARGET LIST:}

{\@targetlist}


}                       % End of page 2


\def\thirdpage{

{\bf SCIENTIFIC CASE:}

{\@sciencecase}

}                       % End of page 3

\def\fourthpage{

{\bf TECHNICAL CASE:}

{\@technicalcase}

}                       % End of page 4

\def\fifthpage{

{\bf FIGURES AND TABLES:}

{\@figsandtabs}

}                       % End of page 5








