\typeout{}
\typeout{LaTeX macro for Research Proposal}
\typeout{}

\hbadness=10000\tolerance=1600
\textwidth=7.6in
\textheight=10.0in
\oddsidemargin=-.5in
\headsep    0pt
\headheight 0pt
\topmargin -0.6in
\parindent 0mm

\setlength{\unitlength}{1mm}

\long\def\Trimester#1{\gdef\trimester{#1}}
\long\def\Year#1{\gdef\year{#1}}
\long\def\PIname#1{\gdef\piname{#1}}
\long\def\PIinstitution#1{\gdef\piinstitution{#1}}
\long\def\PIemail#1{\gdef\piemail{#1}}
\long\def\ProgramTitle#1{\gdef\programa{#1}}
\long\def\CoInames#1{\gdef\coinames{#1}}
\long\def\Observers#1{\gdef\observers{#1}}
\long\def\TSCDirect#1{\gdef\TSCdirect{#1}}
\long\def\TSCDirectF2#1{\gdef\TSCf2{#1}}
\long\def\TSCCCS#1{\gdef\TSCccs{#1}}
\long\def\TSCEchelle#1{\gdef\TSCechelle{#1}}
\long\def\TC60#1{\gdef\TCas{#1}}
\long\def\T35#1{\gdef\t35{#1}}
\long\def\NumNights#1{\gdef\nnights{#1}}
\long\def\MoonPhaseDARK#1{\gdef\MFdark{#1}}
\long\def\MoonPhaseBRIGHT#1{\gdef\MFbright{#1}}
\long\def\MoonPhaseANY#1{\gdef\MFany{#1}}
\long\def\ScheduleConstraints#1{\gdef\Sconstr{#1}}
\long\def\TimeJustification#1{\gdef\Justif{#1}}
\long\def\Experience#1{\gdef\experience{#1}}
\long\def\PaperOne#1{\gdef\paperone{#1}}
\long\def\PaperTwo#1{\gdef\papertwo{#1}}
\long\def\PaperThree#1{\gdef\paperthree{#1}}
\long\def\PaperFour#1{\gdef\paperfour{#1}}
\long\def\PaperFive#1{\gdef\paperfive{#1}}
\long\def\ScientificJustification#1{\gdef\scientific{#1}}

\def\makepageone{%
%	Page 1 style file
%

\begin{picture}(180,30)
\put(0,25){\makebox(0,5)[tl]{\parbox{200mm}{\LARGE\bf Institute  of Astronomy}}} 
\put(0,18){\makebox(0,5)[tl]{\parbox{200mm}{\Large\bf Nicolaus Copernicus University}}} 
\put(0,10){\makebox(0,5)[tl]{\parbox{200mm}{\large\bf Observing Time Request for trimester \year /\trimester}}}
\put(145,10){\makebox(0,5)[tl]{\parbox{50mm}{\Large\bf ID: \year /\trimester /\underline{~ ~ ~}}}}
\end{picture}

\vskip 5mm

\begin{picture}(185,25)
\put(0,0){\line(1,0){185}}
\put(185,0){\line(0,1){37}}
\put(0,0){\line(0,1){37}}
\put(0,37){\line(1,0){185}}

\put(2,29){\makebox(150,5)[tl]{\parbox{186mm}{Program title: {\bf \programa}
}}}
\put(2,22){\makebox(40,5)[tr]{\parbox{37mm}{{\small Primary Investigator:}
}}}
\put(43,22){\makebox(130,5)[tl]{\parbox{120mm}{{\bf \piname}
}}}
\put(2,17){\makebox(40,5)[tr]{\parbox{37mm}{{\small Institution:} 
}}}
\put(43,17){\makebox(130,5)[tl]{\parbox{120mm}{{\bf \piinstitution}
}}}
\put(2,12){\makebox(40,5)[tr]{\parbox{37mm}{{e-mail:}
}}}
\put(43,12){\makebox(130,5)[tl]{\parbox{120mm}{{\bf \piemail}
}}}
\put(2,5){\makebox(180,5)[tl]{\parbox{190mm}{{\small Co-investigators: \bf \coinames}
}}}
\put(2,0){\makebox(180,5)[tl]{\parbox{190mm}{{\small Observers: \bf \observers}
}}}
\end{picture}

\vskip 2mm

\begin{picture}(185,98)
\put(0,0){\line(1,0){185}}
\put(185,0){\line(0,1){98}}
\put(0,0){\line(0,1){98}}
\put(0,98){\line(1,0){185}}

\put(2,90){\makebox(180,5)[tl]{\parbox{186mm}{{\bf Requested instrumental setup:}
}}}

\put(5,83){\makebox(25,5)[tl]{\parbox{40mm}{{TSC~Direct}
\put(2,-1){\line(1,0){5}}
\put(7,-1){\line(0,1){4}}
\put(2,-1){\line(0,1){4}}
\put(2,3){\line(1,0){5}}
{\hspace{3mm}\Large\bf \TSCdirect}
}}}
%
\put(50,83){\makebox(30,5)[tl]{\parbox{40mm}{{TSC Direct+F2}
\put(2,-1){\line(1,0){5}}
\put(7,-1){\line(0,1){4}}
\put(2,-1){\line(0,1){4}}
\put(2,3){\line(1,0){5}}
{\hspace{3mm}\Large\bf \TSCf2}
}}}
%
\put(105,83){\makebox(30,5)[tl]{\parbox{40mm}{{TSC CCS}
\put(2,-1){\line(1,0){5}}
\put(7,-1){\line(0,1){4}}
\put(2,-1){\line(0,1){4}}
\put(2,3){\line(1,0){5}}
{\hspace{3mm}\Large\bf \TSCccs}
}}}
%
\put(150,83){\makebox(30,5)[tl]{\parbox{40mm}{{TSC Echelle}
\put(2,-1){\line(1,0){5}}
\put(7,-1){\line(0,1){4}}
\put(2,-1){\line(0,1){4}}
\put(2,3){\line(1,0){5}}
{\hspace{3mm}\Large\bf \TSCechelle}
}}}
%
\put(5,75){\makebox(30,5)[tl]{\parbox{40mm}{{TC60}
\put(2,-1){\line(1,0){5}}
\put(7,-1){\line(0,1){4}}
\put(2,-1){\line(0,1){4}}
\put(2,3){\line(1,0){5}}
{\hspace{3mm}\Large\bf \TCas}
}}}
%
\put(50,75){\makebox(30,5)[tl]{\parbox{40mm}{{T35}
\put(2,-1){\line(1,0){5}}
\put(7,-1){\line(0,1){4}}
\put(2,-1){\line(0,1){4}}
\put(2,3){\line(1,0){5}}
{\hspace{3mm}\Large\bf \t35}
}}}
%%%%%
\put(2,65){\makebox(180,5)[tl]{\parbox{186mm}{{\bf Observing runs:}
}}}
\put(5,58){\makebox(50,5)[tl]{\parbox{190mm}{{Number of requested nights: \bf \nnights}
}}}
\put(85,58){\makebox(50,5)[tl]{\parbox{190mm}{{Moon phase:}
}}}
\put(115,58){\makebox(30,5)[tl]{\parbox{40mm}{{dark}
\put(2,-1){\line(1,0){5}}
\put(7,-1){\line(0,1){4}}
\put(2,-1){\line(0,1){4}}
\put(2,3){\line(1,0){5}}
{\hspace{3mm}\Large\bf \MFdark}
}}}
\put(140,58){\makebox(30,5)[tl]{\parbox{40mm}{{bright}
\put(2,-1){\line(1,0){5}}
\put(7,-1){\line(0,1){4}}
\put(2,-1){\line(0,1){4}}
\put(2,3){\line(1,0){5}}
{\hspace{3mm}\Large\bf \MFbright}
}}}
\put(165,58){\makebox(30,5)[tl]{\parbox{40mm}{{any}
\put(2,-1){\line(1,0){5}}
\put(7,-1){\line(0,1){4}}
\put(2,-1){\line(0,1){4}}
\put(2,3){\line(1,0){5}}
{\hspace{3mm}\Large\bf \MFany}
}}}
\put(5,52){\makebox(50,5)[tl]{\parbox{170mm}{{Scheduling constraints: {\it (max 3 lines)}}
}}}
\put(15,47){\makebox(170,5)[tl]{\parbox{160mm}{{\Sconstr}
}}}
\put(5,31){\makebox(50,5)[tl]{\parbox{170mm}{{Justification of the number of nights requested: {\it (max 6 lines)}}
}}}
\put(15,26){\makebox(170,5)[tl]{\parbox{160mm}{{\Justif}
}}}
\end{picture}

\vskip 2mm

\begin{picture}(185,65)
\put(0,0){\line(1,0){185}}
\put(185,0){\line(0,1){65}}
\put(0,0){\line(0,1){65}}
\put(0,65){\line(1,0){185}}

\put(2,57){\makebox(180,5)[tl]{\parbox{186mm}{{\bf Team:}
}}}
\put(5,50){\makebox(50,5)[tl]{\parbox{170mm}{{Experience of team members: {\it (max 3 lines)}}
}}}
\put(15,45){\makebox(170,5)[tl]{\parbox{160mm}{{\experience}
}}}
\put(5,28){\makebox(50,5)[tl]{\parbox{170mm}{{Recent papers based on data acquired at the Institute of Astronomy: {\it (max 5 items)}}
}}}
\put(15,23){\makebox(50,5)[tl]{\parbox{170mm}{{1. {\paperone}}
}}}
\put(15,18){\makebox(50,5)[tl]{\parbox{170mm}{{2. {\papertwo}}
}}}
\put(15,13){\makebox(50,5)[tl]{\parbox{170mm}{{3. {\paperthree}}
}}}
\put(15,8){\makebox(50,5)[tl]{\parbox{170mm}{{4. {\paperfour}}
}}}
\put(15,3){\makebox(50,5)[tl]{\parbox{170mm}{{5. {\paperfive}}
}}}

\end{picture}

\vskip 2mm

{\makebox(180,5)[tl]{\parbox{185mm}{{\small
O\'swiadczam, \.ze jako kierownik zg\l{}aszanego projektu obserwacyjnego zapozna\l{}em/-am si\k{e} z tre\'sci\k{a} \emph{Regulaminu korzystania z teleskop\'ow optycznych Instytutu Astronomii UMK} z dnia 1 marca 2020 r.\ oraz \.ze zobowi\k{a}zuj\k{e} si\k{e} dopilnowa\'c, aby wszyscy obserwatorzy realizuj\k{a}cy ten projekt r\'ownie\.z zapoznali si\k{e} z tre\'sci\k{a} ww.\ dokumentu.
}}}}

\vskip 2mm

{\makebox(180,-10)[tl]{\parbox{185mm}{{\small
Data: $\rule{0.8cm}{0.15mm}$.$\rule{0.8cm}{0.15mm}$.$\rule{1.6cm}{0.15mm}$ r.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Podpis: $\rule{6cm}{0.15mm}$
}}}}

\newpage
}

%
%	page 2
%

\def\makepagetwo{% This is page 2

\begin{picture}(185,250)
\put(0,0){\line(1,0){185}}
\put(185,0){\line(0,1){250}}
\put(0,0){\line(0,1){250}}
\put(0,250){\line(1,0){185}}

\put(2,242){\makebox(185,5)[tl]{\parbox{180mm}{{\bf Scientific justification:}
}}}
\put(2,237){\makebox(185,5)[tl]{\parbox{180mm}{{\it (max 1 page of text; references, figures, and tables should be included on next page(s) if needed)}
}}}
\put(10,230){\makebox(185,5)[tl]{\parbox{165mm}{\scientific
}}}
\end{picture}
}