%
% Time-stamp: <2009/11/05 20:26:11 (CST) daisuke>
%

\textwidth 520pt
\textheight 740pt
\oddsidemargin -55pt
\evensidemargin -55pt
\topmargin -70pt

\setlength{\unitlength}{1pt}

\newcounter{SectionNumber}
\setcounter{SectionNumber}{1}

\def\@pageWidth{500}
\def\@pageLength{740}

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

%
% parameters for Header part
%
\def\Semester#1{\gdef\@Semester{#1}}
\gdef\@Semester{}
\def\PropID#1{\gdef\@PropID{#1}}
\gdef\@PropID{}
\def\ReceivedDate#1{\gdef\@ReceivedDate{#1}}
\gdef\@ReceivedDate{}

%
% parameter for Title part
%
\def\PropTitle#1{\gdef\@PropTitle{#1}}
\gdef\@PropTitle{}

%
% parameters for PI part
%
\def\PIname#1{\gdef\@PIname{#1}}
\gdef\@PIname{}
\def\PIinst#1{\gdef\@PIinst{#1}}
\gdef\@PIinst{}
\def\PIaddress#1{\gdef\@PIaddress{#1}}
\gdef\@PIaddress{}
\def\PIemail#1{\gdef\@PIemail{#1}}
\gdef\@PIemail{}
\def\PIphone#1{\gdef\@PIphone{#1}}
\gdef\@PIphone{}
\def\PIfax#1{\gdef\@PIfax{#1}}
\gdef\@PIfax{}

%
% parameters for CoI part
%
\toksdef\ta=0 
\toksdef\tb=2
\def\concatenate#1=#2&#3{
        \ta=\expandafter{#2}
        \tb=\expandafter{#3}
        \edef#1{\the\ta\the\tb}
}
\def\CoIlist{}
\newcounter{CoIcounter}
\setcounter{CoIcounter}{0}
\newcounter{CoIcolumn}
\setcounter{CoIcolumn}{0}
\def\CoI#1#2{
  \def\@CoIname{#1}
  \def\@CoIinst{#2}
  \def\@tmpone{&}
  \def\@tmptwo{\\}
  \ifnum \theCoIcounter<14
  \ifnum \theCoIcolumn<1
  \concatenate{\CoIlist}={\CoIlist}&{\@CoIname}
  \concatenate{\CoIlist}={\CoIlist}&{\@tmpone}
  \concatenate{\CoIlist}={\CoIlist}&{\@CoIinst}
  \concatenate{\CoIlist}={\CoIlist}&{\@tmpone}
  \else
  \concatenate{\CoIlist}={\CoIlist}&{\@CoIname}
  \concatenate{\CoIlist}={\CoIlist}&{\@tmpone}
  \concatenate{\CoIlist}={\CoIlist}&{\@CoIinst}
  \concatenate{\CoIlist}={\CoIlist}&{\@tmptwo}
  \fi
  \fi
  \ifnum \theCoIcolumn>0
  \setcounter{CoIcolumn}{0}
  \else
  \stepcounter{CoIcolumn}
  \fi
  \stepcounter{CoIcounter}
}

%
% parameters for proposal type
%
\def\PropTypeResearch{\ifx\undefined\@PropType
  \gdef\@PropTypeResearch{$\surd$}\def\@PropType{1}\fi}
\gdef\@PropTypeResearch{}
\def\PropTypeInstrument{\ifx\undefined\@PropType
  \gdef\@PropTypeInstrument{$\surd$}\def\@PropType{1}\fi}
\gdef\@PropTypeInstrument{}
\def\PropTypeEducation{\ifx\undefined\@PropType
  \gdef\@PropTypeEducation{$\surd$}\def\@PropType{1}\fi}
\gdef\@PropTypeEducation{}

%
% parameters for scientific category
%
\def\SolarSystem{\ifx\undefined\@SciCat
  \gdef\@SolarSystem{$\surd$}\def\@SciCat{1}\fi}
\gdef\@SolarSystem{}
\def\ExoPlanets{\ifx\undefined\@SciCat
  \gdef\@ExoPlanets{$\surd$}\def\@SciCat{1}\fi}
\gdef\@ExoPlanets{}
\def\Stars{\ifx\undefined\@SciCat
  \gdef\@Stars{$\surd$}\def\@SciCat{1}\fi}
\gdef\@Stars{}
\def\StarFormation{\ifx\undefined\@SciCat
  \gdef\@StarFormation{$\surd$}\def\@SciCat{1}\fi}
\gdef\@StarFormation{}
\def\EvolvedStars{\ifx\undefined\@SciCat
  \gdef\@EvolvedStars{$\surd$}\def\@SciCat{1}\fi}
\gdef\@EvolvedStars{}
\def\ISM{\ifx\undefined\@SciCat
  \gdef\@ISM{$\surd$}\def\@SciCat{1}\fi}
\gdef\@ISM{}
\def\CompactObjSNe{\ifx\undefined\@SciCat
  \gdef\@CompactObjSNe{$\surd$}\def\@SciCat{1}\fi}
\gdef\@CompactObjSNe{}
\def\MilkyWayGal{\ifx\undefined\@SciCat
  \gdef\@MilkyWayGal{$\surd$}\def\@SciCat{1}\fi}
\gdef\@MilkyWayGal{}
\def\NearbyGal{\ifx\undefined\@SciCat
  \gdef\@NearbyGal{$\surd$}\def\@SciCat{1}\fi}
\gdef\@NearbyGal{}
\def\AGNQSO{\ifx\undefined\@SciCat
  \gdef\@AGNQSO{$\surd$}\def\@SciCat{1}\fi}
\gdef\@AGNQSO{}
\def\GalClusters{\ifx\undefined\@SciCat
  \gdef\@GalClusters{$\surd$}\def\@SciCat{1}\fi}
\gdef\@GalClusters{}
\def\LargeStruct{\ifx\undefined\@SciCat
  \gdef\@LargeStruct{$\surd$}\def\@SciCat{1}\fi}
\gdef\@LargeStruct{}
\def\GravLens{\ifx\undefined\@SciCat
  \gdef\@GravLens{$\surd$}\def\@SciCat{1}\fi}
\gdef\@GravLens{}
\def\DistantGal{\ifx\undefined\@SciCat
  \gdef\@DistantGal{$\surd$}\def\@SciCat{1}\fi}
\gdef\@DistantGal{}
\def\Cosmology{\ifx\undefined\@SciCat
  \gdef\@Cosmology{$\surd$}\def\@SciCat{1}\fi}
\gdef\@Cosmology{}
\def\Others{\ifx\undefined\@SciCat
  \gdef\@Others{$\surd$}\def\@SciCat{1}\fi}
\gdef\@Others{}

%
% parameters for thesis link
%
\def\PhDThesis{\ifx\undefined\@thesis
  \gdef\@PhDThesis{$\surd$}\def\@thesis{1}\fi}
\gdef\@PhDThesis{}
\def\MasterThesis{\ifx\undefined\@thesis
  \gdef\@MasterThesis{$\surd$}\def\@thesis{1}\fi}
\gdef\@MasterThesis{}
\def\Student#1#2{
  \def\@StudentName{#1}
  \def\@StudentInst{#2}
}
\def\Advisor#1#2{
  \def\@AdvisorName{#1}
  \def\@AdvisorInst{#2}
}
\def\DefenseDate#1{
  \def\@DefenseDate{#1}
}

%
% parameters for Observing runs
%
\def\ObsRunList{}
\newcounter{ObsRunCounter}
\setcounter{ObsRunCounter}{0}
\newcounter{TotalRequestedNight}
\setcounter{TotalRequestedNight}{0}
\def\ObservingRun#1#2#3#4#5#6#7{
  \def\@Tel{#1}
  \def\@Inst{#2}
  \def\@Mode{#3}
  \def\@NNight{#4}
  \def\@Moon{#5}
  \def\@PrefMonth{#6}
  \def\@OKMonth{#7}
  \def\@tmpone{&}
  \def\@tmptwo{\\}
  \ifnum \theObsRunCounter<6
  \concatenate{\ObsRunList}={\ObsRunList}&{\@Tel}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@tmpone}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@Inst}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@tmpone}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@Mode}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@tmpone}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@NNight}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@tmpone}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@Moon}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@tmpone}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@PrefMonth}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@tmpone}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@OKMonth}
  \concatenate{\ObsRunList}={\ObsRunList}&{\@tmptwo}
  \fi
  %\if \@NNight
  %\else
  %\ifnum \number\@NNight>0
  %\addtocounter{TotalRequestedNight}{\number\@NNight}
  %\fi
  %\fi
  \stepcounter{ObsRunCounter}
}
\def\TotalRequestedNumberOfNights#1{\gdef\@TotalRequestedNumberOfNights{#1}}
\gdef\@TotalRequestedNumberOfNights{}
\def\MinimumNumberOfNights#1{\gdef\@MinimumNumberOfNights{#1}}
\gdef\@MinimumNumberOfNights{}
\def\SingleSemesterProgram{\ifx\undefined\@SingleMultiSemester
  \gdef\@SingleSemesterProgram{$\surd$}\def\@SingleMultiSemester{1}\fi}
\gdef\@SingleSemesterProgram{}
\def\MultiSemesterProgram{\ifx\undefined\@SingleMultiSemester
  \gdef\@MultiSemesterProgram{$\surd$}\def\@SingleMultiSemester{1}\fi}
\gdef\@MultiSemesterProgram{}
\def\DurationOfProgram#1{\gdef\@DurationOfProgram{#1}}
\gdef\@DurationOfProgram{}

%
% parameters for observation execution methods
%
\def\ObsMethodVisitor{\gdef\@ObsMethodVisitor{$\surd$}}
\gdef\@ObsMethodVisitor{}
\def\ObsMethodService{\gdef\@ObsMethodService{$\surd$}}
\gdef\@ObsMethodService{}
\def\ObsMethodToO{\gdef\@ObsMethodToO{$\surd$}}
\gdef\@ObsMethodToO{}

%
% parameters for filters
%
\def\FilterU{\gdef\@FilterU{$\surd$}}
\gdef\@FilterU{}
\def\FilterB{\gdef\@FilterB{$\surd$}}
\gdef\@FilterB{}
\def\FilterV{\gdef\@FilterV{$\surd$}}
\gdef\@FilterV{}
\def\FilterR{\gdef\@FilterR{$\surd$}}
\gdef\@FilterR{}
\def\FilterI{\gdef\@FilterI{$\surd$}}
\gdef\@FilterI{}
\def\FilterSDSSg{\gdef\@FilterSDSSg{$\surd$}}
\gdef\@FilterSDSSg{}
\def\FilterSDSSr{\gdef\@FilterSDSSr{$\surd$}}
\gdef\@FilterSDSSr{}
\def\FilterSDSSi{\gdef\@FilterSDSSi{$\surd$}}
\gdef\@FilterSDSSi{}
\def\FilterSDSSz{\gdef\@FilterSDSSz{$\surd$}}
\gdef\@FilterSDSSz{}
\def\FilterHalpha{\gdef\@FilterHalpha{$\surd$}}
\gdef\@FilterHalpha{}
\def\FilterHbeta{\gdef\@FilterHbeta{$\surd$}}
\gdef\@FilterHbeta{}
\def\FilterOIII{\gdef\@FilterOIII{$\surd$}}
\gdef\@FilterOIII{}
\def\FilterSII{\gdef\@FilterSII{$\surd$}}
\gdef\@FilterSII{}
\def\FilterNa{\gdef\@FilterNa{$\surd$}}
\gdef\@FilterNa{}
\def\FilterCN{\gdef\@FilterCN{$\surd$}}
\gdef\@FilterCN{}
\def\FilterCtwo{\gdef\@FilterCtwo{$\surd$}}
\gdef\@FilterCtwo{}
\def\FilterCthree{\gdef\@FilterCthree{$\surd$}}
\gdef\@FilterCthree{}
\def\FilterCOp{\gdef\@FilterCOp{$\surd$}}
\gdef\@FilterCOp{}
\def\FilterBC{\gdef\@FilterBC{$\surd$}}
\gdef\@FilterBC{}
\def\FilterHtwoOp{\gdef\@FilterHtwoOp{$\surd$}}
\gdef\@FilterHtwoOp{}
\def\FilterNHtwo{\gdef\@FilterNHtwo{$\surd$}}
\gdef\@FilterNHtwo{}
\def\FilterRC{\gdef\@FilterRC{$\surd$}}
\gdef\@FilterRC{}
\def\FilterVR{\gdef\@FilterVR{$\surd$}}
\gdef\@FilterVR{}

%
% parameters for gratings
%

\def\LowResGrating{\gdef\@LowResGrating{$\surd$}}
\gdef\@LowResGrating{}
\def\HighResGrating{\gdef\@HighResGrating{$\surd$}}
\gdef\@HighResGrating{}

%
% instrument requirements
%
\def\@InstrumentRequirement{}
\long\def\InstrumentRequirement#1{\gdef\@InstrumentRequirement{#1}}

%
% scheduling requirements
%
\def\@SchedulingRequirement{}
\long\def\SchedulingRequirement#1{\gdef\@SchedulingRequirement{#1}}

%
% observing experiences
%
\def\@Experience{}
\long\def\Experience#1{\gdef\@Experience{#1}}

%
% back-up program for poor sky condition
%
\def\@Backup{}
\long\def\Backup#1{\gdef\@Backup{#1}}

%
% parameters for previous observation status
%
\def\PreviousObsList{}
\newcounter{PreviousObsNumber}
\setcounter{PreviousObsNumber}{0}
\def\PreviousObs#1#2#3#4#5{
  \def\@PrevObsSem{#1}
  \def\@PrevObsPI{#2}
  \def\@PrevObsObs{#3}
  \def\@PrevObsAna{#4}
  \def\@PrevObsPub{#5}
  \def\@tmpone{&}
  \def\@tmptwo{\\}
  \ifnum \thePreviousObsNumber<5
  \concatenate{\PreviousObsList}={\PreviousObsList}&{\@PrevObsSem}
  \concatenate{\PreviousObsList}={\PreviousObsList}&{\@tmpone}
  \concatenate{\PreviousObsList}={\PreviousObsList}&{\@PrevObsPI}
  \concatenate{\PreviousObsList}={\PreviousObsList}&{\@tmpone}
  \concatenate{\PreviousObsList}={\PreviousObsList}&{\@PrevObsObs}
  \concatenate{\PreviousObsList}={\PreviousObsList}&{\@tmpone}
  \concatenate{\PreviousObsList}={\PreviousObsList}&{\@PrevObsAna}
  \concatenate{\PreviousObsList}={\PreviousObsList}&{\@tmpone}
  \concatenate{\PreviousObsList}={\PreviousObsList}&{\@PrevObsPub}
  \concatenate{\PreviousObsList}={\PreviousObsList}&{\@tmptwo}
  \fi
  \stepcounter{PreviousObsNumber}
}

%
% parameters for publication list
%
\def\@PublicationList{}
\long\def\PublicationList#1{\gdef\@PublicationList{#1}}

%
% technical description and feasibility study
%
\def\@TechnicalDescription{}
\long\def\TechnicalDescription#1{\gdef\@TechnicalDescription{#1}}

%
% target list
%
\def\TargetList{}
\newcounter{TargetNumber}
\setcounter{TargetNumber}{0}
\def\Target#1#2#3#4#5#6{
  \def\@Object{#1}
  \def\@RA{#2}
  \def\@Dec{#3}
  \def\@Equinox{#4}
  \def\@Mag{#5}
  \def\@Remarks{#6}
  \def\@tmpone{&}
  \def\@tmptwo{\\}
  \ifnum \theTargetNumber<14
  \concatenate{\TargetList}={\TargetList}&{\@Object}
  \concatenate{\TargetList}={\TargetList}&{\@tmpone}
  \concatenate{\TargetList}={\TargetList}&{\@RA}
  \concatenate{\TargetList}={\TargetList}&{\@tmpone}
  \concatenate{\TargetList}={\TargetList}&{\@Dec}
  \concatenate{\TargetList}={\TargetList}&{\@tmpone}
  \concatenate{\TargetList}={\TargetList}&{\@Equinox}
  \concatenate{\TargetList}={\TargetList}&{\@tmpone}
  \concatenate{\TargetList}={\TargetList}&{\@Mag}
  \concatenate{\TargetList}={\TargetList}&{\@tmpone}
  \concatenate{\TargetList}={\TargetList}&{\@Remarks}
  \concatenate{\TargetList}={\TargetList}&{\@tmptwo}
  \fi
  \stepcounter{TargetNumber}
}

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

%
% printing Header part
%
\def\MakeHeader{
  \vbox{
    \hbox{
      \begin{picture}(500,80)
        \put(20,55){\bf \sf \Large Lulin Observatory}
        \put(20,35){\bf \sf \Large Institute of Astronomy}
        \put(20,15){\bf \sf \Large National Central University}
        \put(365,50){\underline{Semester: \@Semester}}
        \put(365,35){\underline{Proposal ID: \@PropID}}
        \put(365,20){\underline{Received Date: \@ReceivedDate}}
      \end{picture}
    }
    \vbox{
      \begin{picture}(500,30)
        \put(0,15){\hspace*{3cm} \bf \LARGE Application Form for Observing Time}
      \end{picture}
    }
  }
}

%
% printing Title part
%
\def\MakeTitle{
  \begin{picture}(500,45)(0,0)
    \put(0,0){\framebox(500,45){}}
    \put(5,30){\large \theSectionNumber. Title of Observing Program}
    \put(10,10){\Large \bf \sf \@PropTitle}
  \end{picture}
  \stepcounter{SectionNumber}
}

%
% printing PI part
%
\def\MakePIInfo{
  \begin{picture}(500,100)(0,0)
    \put(0,0){\framebox(500,100){}}
    \put(5,85){\large \theSectionNumber. Principal Investigator}
    \put(10,70){\makebox[50pt][l]{Name:} 
      \underline{\makebox[400pt][l]{\@PIname}}}
    \put(10,55){\makebox[50pt][l]{Institute:} 
      \underline{\makebox[400pt][l]{\@PIinst}}}
    \put(10,40){\makebox[50pt][l]{Address:} 
      \underline{\makebox[400pt][l]{\@PIaddress}}}
    \put(10,25){\makebox[50pt][l]{E-mail:} 
      \underline{\makebox[400pt][l]{\@PIemail}}}
    \put(10,10){\makebox[50pt][l]{Phone:} 
      \underline{\makebox[150pt][l]{\@PIphone}}}
    \put(260,10){\makebox[50pt][l]{Fax:} 
      \underline{\makebox[150pt][l]{\@PIfax}}}
  \end{picture}
  \stepcounter{SectionNumber}
}

%
% printing CoI part
%
\def\MakeCoIInfo{
  \begin{picture}(500,120)(0,0)
    \put(0,0){\framebox(500,120){}}
    \put(5,105){\large \theSectionNumber. Co-Investigators}
    \put(10,0){
      \parbox[b][100pt][t]{480pt}{
        \begin{tabular}{ll|ll}
          \makebox[90pt][l]{Name} & \makebox[45pt][l]{Institute} & 
          \makebox[90pt][l]{Name} & \makebox[45pt][l]{Institute} \\
          \hline
          \CoIlist
        \end{tabular}
      }
    }
  \end{picture}
  \stepcounter{SectionNumber}
}

%
% printing Abstract part
%
\def\@Abstract{}
\long\def\Abstract#1{\gdef\@Abstract{#1}}

\def\MakeAbstract{
  \begin{picture}(500,150)(0,0)
    \put(0,0){\framebox(500,150){}}
    \put(5,135){\large \theSectionNumber. Abstract}
    \put(5,0){
      \parbox[b][125pt][t]{480pt}{
        \@Abstract
      }
    }
  \end{picture}
  \stepcounter{SectionNumber}
}

%
% printing proposal type
%

\def\MakePropType{
  \begin{picture}(500,40)(0,0)
    \put(0,0){\framebox(500,40){}}
    \put(5,25){\large \theSectionNumber. Proposal Type}
    \put(10,7){\framebox(10,10){\@PropTypeResearch} Research program}
    \put(170,7){\framebox(10,10){\@PropTypeInstrument} Instrument tests}
    \put(330,7){\framebox(10,10){\@PropTypeEducation} Educational program}
  \end{picture}
  \stepcounter{SectionNumber}
}

%
% printing scientific category
%

\def\MakeCategory{
  \begin{picture}(500,85)(0,0)
    \put(0,0){\framebox(500,85){}}
    \put(5,70){\large \theSectionNumber. Scientific Category}
    \put(10,55){\framebox(10,10){\@SolarSystem} Solar System}
    \put(130,55){\framebox(10,10){\@ExoPlanets} Exoplanets}
    \put(250,55){\framebox(10,10){\@Stars} Stars}
    \put(370,55){\framebox(10,10){\@StarFormation} Star Formation}
    \put(10,40){\framebox(10,10){\@EvolvedStars} Evolved Stars}
    \put(130,40){\framebox(10,10){\@ISM} Interstellar Medium}
    \put(250,40){\framebox(10,10){\@CompactObjSNe} Compact Objects, SNe}
    \put(370,40){\framebox(10,10){\@MilkyWayGal} Milky Way Galaxy}
    \put(10,25){\framebox(10,10){\@NearbyGal} Nearby Galaxies}
    \put(130,25){\framebox(10,10){\@AGNQSO} AGN, QSO}
    \put(250,25){\framebox(10,10){\@GalClusters} Cluster of Galaxies}
    \put(370,25){\framebox(10,10){\@LargeStruct} Large Scale Structure}
    \put(10,10){\framebox(10,10){\@GravLens} Gravitational Lenses}
    \put(130,10){\framebox(10,10){\@DistantGal} Distant Galaxies}
    \put(250,10){\framebox(10,10){\@Cosmology} Cosmology}
    \put(370,10){\framebox(10,10){\@Others} Others}
  \end{picture}
  \stepcounter{SectionNumber}
}

%
% printing thesis link
%
\def\MakeThesisLink{
  \begin{picture}(500,80)(0,0)
    \put(0,0){\framebox(500,80){}}
    \put(5,65){\large \theSectionNumber. Link to Thesis Work}
    \put(10,50){\framebox(10,10){\@PhDThesis} This program is linked to a PhD thesis}
    \put(250,50){\framebox(10,10){\@MasterThesis} This program is linked to a master thesis}
    \put(10,35){Name of the student: \underline{\makebox[150pt][l]{\@StudentName}}}
    \put(280,35){Affiliation of the student: \underline{\makebox[80pt][l]{\@StudentInst}}}
    \put(10,20){Name of the advisor: \underline{\makebox[150pt][l]{\@AdvisorName}}}
    \put(280,20){Affiliation of the advisor: \underline{\makebox[80pt][l]{\@AdvisorInst}}}
    \put(10,5){Planned date of the defense: \underline{\makebox[150pt][l]{\@DefenseDate}}}
  \end{picture}
  \stepcounter{SectionNumber}
}

%
%
%
\def\MakeObservingRun{
  \begin{picture}(500,170)(0,0)
    \put(0,0){\framebox(500,170){}}
    \put(5,155){\large \theSectionNumber. Observing Time Request and Description of Observing Runs} 
    \put(10,80){
      \parbox[b][70pt][t]{480pt}{
        \begin{tabular}{l|l|l|r|l|l|l}
          \makebox[30pt][l]{Tel.} & \makebox[50pt][l]{Inst.} & \makebox[75pt][l]{Obs. Mode} & \makebox[35pt][l]{\# Night} & \makebox[40pt][l]{Moon} & \makebox[60pt][l]{Prefered} & \makebox[60pt][l]{Acceptable} \\
          \makebox[30pt][l]{} & \makebox[50pt][l]{} & \makebox[75pt][l]{(filters, grating)} & \makebox[35pt][l]{} & \makebox[40pt][l]{Phase} & \makebox[60pt][l]{Date} & \makebox[60pt][l]{Date} \\
          \hline
          \ObsRunList
        \end{tabular}
      }
    }
    \put(10,35){Total requested number of nights: \underline{\makebox[30pt]{\@TotalRequestedNumberOfNights}} nights}
    \put(250,35){Minimum acceptable number of nights: \underline{\makebox[30pt]{\@MinimumNumberOfNights}} nights}
    \put(10,20){\framebox(10,10){\@SingleSemesterProgram} This is a single-semester program.}
    \put(10,5){\framebox(10,10){\@MultiSemesterProgram} This is a multi-semester program.}
    \put(250,5){Duration of the program: \underline{\makebox[30pt]{\@DurationOfProgram}} semesters}
  \end{picture}
  \stepcounter{SectionNumber}
}

%
% printing observation execution methods
%
\def\MakeObsExecutionMethods{
  \begin{picture}(500,40)(0,0)
    \put(0,0){\framebox(500,40){}}
    \put(5,25){\large \theSectionNumber. Observation Execution Methods}
    \put(10,5){\framebox(10,10){\@ObsMethodVisitor} Visitor Mode}
    \put(170,5){\framebox(10,10){\@ObsMethodService} Service Mode}
    \put(330,5){\framebox(10,10){\@ObsMethodToO} Target-of-Opportunity}
  \end{picture}
  \stepcounter{SectionNumber}
}

%
% printing instrument requirements
%
\def\MakeInstrumentRequirement{
  \begin{picture}(500,100)(0,0)
    \put(0,0){\framebox(500,100){}}
    \put(5,85){\large \theSectionNumber. Required Filters for Imaging Observations}
    \put(10,65){\framebox(10,10){\@FilterU} Bessel U-band}
    \put(105,65){\framebox(10,10){\@FilterB} Bessel B-band}
    \put(200,65){\framebox(10,10){\@FilterV} Bessel V-band}
    \put(295,65){\framebox(10,10){\@FilterR} Bessel R-band}
    \put(390,65){\framebox(10,10){\@FilterI} Bessel I-band}
    \put(10,50){\framebox(10,10){\@FilterSDSSg} SDSS g'-band}
    \put(105,50){\framebox(10,10){\@FilterSDSSr} SDSS r'-band}
    \put(200,50){\framebox(10,10){\@FilterSDSSi} SDSS i'-band}
    \put(295,50){\framebox(10,10){\@FilterSDSSz} SDSS z'-band}
    \put(390,50){\framebox(10,10){\@FilterVR} Custom VR}

    \put(10,35){\framebox(10,10){\@FilterHalpha} H$\alpha$}
    \put(105,35){\framebox(10,10){\@FilterHbeta} H$\beta$}
    \put(200,35){\framebox(10,10){\@FilterOIII} [OIII]}
    \put(295,35){\framebox(10,10){\@FilterSII} [SII]}
    \put(390,35){\framebox(10,10){\@FilterNa} Na}
    \put(10,20){\framebox(10,10){\@FilterCN} CN}
    \put(105,20){\framebox(10,10){\@FilterCtwo} C$_2$}
    \put(200,20){\framebox(10,10){\@FilterCthree} C$_3$}
    \put(295,20){\framebox(10,10){\@FilterCOp} CO$^+$}
    \put(390,20){\framebox(10,10){\@FilterBC} Blue Continuum}
    \put(10,5){\framebox(10,10){\@FilterHtwoOp} H$_2$O$^+$}
    \put(105,5){\framebox(10,10){\@FilterNHtwo} NH$_2$}
    \put(200,5){\framebox(10,10){\@FilterRC} Red Continuum}
  \end{picture}
  \stepcounter{SectionNumber}

  \vspace*{-0.5pt}

  \begin{picture}(500,40)(0,0)
    \put(0,0){\framebox(500,40){}}
    \put(5,25){\large \theSectionNumber. Required Gratings for Spectroscopic Observations}
    \put(10,5){\framebox(10,10){\@LowResGrating} 300 gr./mm grating}
    \put(240,5){\framebox(10,10){\@HighResGrating} 1200 gr./mm grating}
  \end{picture}
  \stepcounter{SectionNumber}

  \vspace*{-0.5pt}

  \begin{picture}(500,100)(0,0)
    \put(0,0){\framebox(500,100){}}
    \put(5,85){\large \theSectionNumber. Instrument Requirement}
    \put(5,0){
      \parbox[b][55pt][t]{480pt}{
        \@InstrumentRequirement
      }
    }
  \end{picture}
  \stepcounter{SectionNumber}
}

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

%
% pringing scheduling requirements
%
\def\MakeSchedulingRequirement{
  \begin{picture}(500,100)(0,0)
    \put(0,0){\framebox(500,100){}}
    \put(5,85){\large \theSectionNumber. Scheduling Requirement}
    \put(5,0){
      \parbox[b][55pt][t]{480pt}{
        \@SchedulingRequirement
      }
    }
  \end{picture}
  \stepcounter{SectionNumber}
}

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

%
% pringing 
%
\def\MakeExperience{
  \begin{picture}(500,80)(0,0)
    \put(0,0){\framebox(500,80){}}
    \put(5,65){\large \theSectionNumber. Observing Experiences}
    \put(5,0){
      \parbox[b][55pt][t]{480pt}{
        \@Experience
      }
    }
  \end{picture}
  \stepcounter{SectionNumber}
}

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

%
% pringing 
%

\def\MakeBackup{
  \begin{picture}(500,120)(0,0)
    \put(0,0){\framebox(500,120){}}
    \put(5,105){\large \theSectionNumber. Backup Program in Poor Condition}
    \put(5,0){
      \parbox[b][95pt][t]{480pt}{
        \@Backup
      }
    }
  \end{picture}
  \stepcounter{SectionNumber}
}

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

%
% printing previous observation status
%
\def\MakePreviousObs{
  \begin{picture}(500,100)(0,0)
    \put(0,0){\framebox(500,100){}}
    \put(5,85){\large \theSectionNumber. Status of Previous Observing Runs}
    \put(10,5){
      \parbox[b][70pt][t]{480pt}{
        \begin{tabular}{l|l|l|l|l}
          \makebox[40pt][l]{Semester} & \makebox[70pt][l]{PI Name} & \makebox[100pt][l]{Observation Status} & \makebox[100pt][l]{Data Analysis Status} & \makebox[100pt][l]{Publication Status} \\
          \hline
          \PreviousObsList
        \end{tabular}
      }
    }
  \end{picture}
  \stepcounter{SectionNumber}
}

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

%
% printing publication list
%
\def\MakePublicationList{
  \begin{picture}(500,150)(0,0)
    \put(0,0){\framebox(500,150){}}
    \put(5,135){\large \theSectionNumber. Publication List}
    \put(5,0){
      \parbox[b][125pt][t]{480pt}{
        \@PublicationList
      }
    }
  \end{picture}
  \stepcounter{SectionNumber}
}

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

%
% printing technical description
%
\def\MakeTechnicalDescription{
  \begin{picture}(500,300)(0,0)
    \put(0,0){\framebox(500,300){}}
    \put(5,285){\large \theSectionNumber. Technical Description and Feasibility Study}
    \put(5,0){
      \parbox[b][275pt][t]{480pt}{
        \@TechnicalDescription
      }
    }
  \end{picture}
  \stepcounter{SectionNumber}
}

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

%
% printing target list
%
\def\MakeTargetList{
  \begin{picture}(500,200)(0,0)
    \put(0,0){\framebox(500,200){}}
    \put(5,185){\large \theSectionNumber. Target List} 
    \put(10,5){
      \parbox[b][175pt][t]{480pt}{
        \begin{tabular}{lrrrll}
          \makebox[100pt][l]{Object Name} & \makebox[50pt][c]{RA} & \makebox[50pt][c]{Dec} & \makebox[40pt][l]{Equinox} & \makebox[40pt][l]{Mag} & \makebox[120pt][l]{Remarks} \\
          \hline
          \TargetList
        \end{tabular}
      }
    }
  \end{picture}
  \stepcounter{SectionNumber}
}

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

\def\MakeHeaderForLulinOp{
  \vbox{
    \begin{picture}(500,75)
      \put(0,40){\hspace*{5pt} \bf \LARGE Technical Information for Lulin Science Operation Team}
      \put(10,25){\hspace*{70pt} (The information on this page is passed to Lulin Science Operation Team)}
      \put(10,10){\underline{Semester: \@Semester}}
      \put(170,10){\underline{Proposal ID: \@PropID}}
      \put(330,10){\underline{Received Date: \@ReceivedDate}}
    \end{picture}
  }
}
