%************ VERAprop17A.sty ******************
% VERAprop17A.sty
% Version 1.0
% By Mareki Honma (based on NRO cover sheet)
% Modified by K.M.Shibata
%

\topmargin -15mm
\topskip 0mm
\oddsidemargin -5mm
\evensidemargin \oddsidemargin
\textheight 275mm
\textwidth 170mm
\pagestyle{empty}

\newif\if@noblank\@noblanktrue \def \blank{\@noblankfalse}

\def\ProposalNo#1{
\noindent
\if@noblank
{VERA common use in 2017A}\hspace{8cm}
\underline{Proposal \makebox[20mm][l]{No.\ #1}}
\else
{VERA common use in 2017A}\hspace{8cm}
\underline{Proposal \makebox[20mm][l]{No.\ }}
\fi \vspace{4mm}
}

\def\FirstPage{
\begin{center}
{\Large VERA Proposal Cover Sheet (1/2) }
\end{center}
\vspace{2mm}

}

\def\Date#1#2#3{
\noindent
\if@noblank
{1. Date: {\ #1 }/{\ #2 }/{\ #3}}
\else
{1. Date: {\ }/{\ }/{\ }}
\fi \vspace{2mm}

}

\def\Title#1{
\noindent
\if@noblank
{2. Proposal Title: \\ \large
\parbox{162mm}{\hspace*{3mm}{#1}}}
\else
{2. Proposal Title: }
\fi \vspace{2mm}

}

\def\l{\large}
\def\AuthorA#1#2#3#4#5{{\l #1} & {\l #2} & {\l #3} & {\l #4} & {\l #5}}
\def\AuthorB#1#2#3#4#5{{\l #1} & {\l #2} & {\l #3} & {\l #4} & {\l #5}}
\def\AuthorC#1#2#3#4#5{{\l #1} & {\l #2} & {\l #3} & {\l #4} & {\l #5}}
\def\AuthorD#1#2#3#4#5{{\l #1} & {\l #2} & {\l #3} & {\l #4} & {\l #5}}
\def\AuthorE#1#2#3#4#5{{\l #1} & {\l #2} & {\l #3} & {\l #4} & {\l #5}}
\def\AuthorF#1#2#3#4#5{{\l #1} & {\l #2} & {\l #3} & {\l #4} & {\l #5}}
\def\AuthorG#1#2#3#4#5{{\l #1} & {\l #2} & {\l #3} & {\l #4} & {\l #5}}
\def\AuthorH#1#2#3#4#5{{\l #1} & {\l #2} & {\l #3} & {\l #4} & {\l #5}}

\def\Authors#1#2#3#4#5#6#7#8{
\noindent
\begin{tabular}{|llllc|} \hline
\makebox[45mm][l]{3. Authors} & \makebox[65mm][l]{Institution} &
\makebox[15mm][l]{Country} & \makebox[10mm][l]{Thesis} &
\makebox[10mm][l]{year} \\
\hline \large
\if@noblank
\ & \ &  \ & \ & \ \\
#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ #6 \\ #7 \\ #8 \\
\ & \ &  \ & \ & \ \\
\hline
\else
\ & \ &  \ & \ & \ \\
\null & \null &  \null & \null & \null \\
\null & \null &  \null & \null & \null \\
\null & \null &  \null & \null & \null \\
\null & \null &  \null & \null & \null \\
\null & \null &  \null & \null & \null \\
\null & \null &  \null & \null & \null \\
\null & \null &  \null & \null & \null \\
\ & \ &  \ & \ & \ \\
\hline
\fi
\end{tabular} \\ [0.4\baselineskip]

}

\def\PrincipalAuthor#1#2#3{
\noindent
\if@noblank
{4. Principal Author: \ #1 }\\ [0.1\baselineskip]
\hspace*{8mm} {Institution: \ #2 }\\ [0.1\baselineskip]
\hspace*{8mm} {Address: \ #3 }\\ [0.1\baselineskip]
\else
{4. Principal Author: }\\ [0.1\baselineskip]
\hspace*{8mm} {Institution: \  }\\ [0.1\baselineskip]
\hspace*{8mm} {Address: \   }\\ [0.1\baselineskip]
\fi 
}

\def\Correspondence#1#2#3{
\noindent
\if@noblank
\hspace*{8mm} \makebox[45mm][l]{Phone: {#1} } \makebox[45mm][l]{Fax: {#2} }\makebox[60mm][l]{E-mail: {#3} }
\else
\hspace*{8mm} \makebox[45mm][l]{Phone: {} } \makebox[45mm][l]{Fax: {} }\makebox[60mm][l]{E-mail: {} }
\\[0.1\baselineskip]
\fi \vspace{4mm}

}

\def\Category#1{
\noindent
\if@noblank
{5. Scientific Category : \underline{\makebox[6mm][c]{#1}} \hspace{3mm} (1: Star forming regions, 2: Stars, 3: AGNs, 4: others, 5: ToO)}
\else
{5. Scientific Category : \underline{\makebox[6mm][c]} \hspace{3mm} (1: Star forming regions, 2: Stars, 3: AGNs, 4: others, 5: ToO)}
\fi \vspace{2mm}

}

\def\Abstract#1{
\noindent
\if@noblank
\put(0,0){\framebox(472,160)[tl]{ \parbox{162mm}{\vspace*{1mm}
{6: Abstract (do not write outside this space)} \\
{\hspace*{1cm}{\large #1}} }}}
\else
\put(0,0){\framebox(472,160)[tl]{ \parbox{162mm}{\vspace*{1mm}
{6: Abstract (do not write outside this space)} \\
{\hspace*{1cm}{\large }} }}}
\fi \vspace{4mm}

}

\def\Array#1{
\noindent
\if@noblank
{7. Array: \underline{\makebox[6mm][c]{#1}} \hspace{3mm} (1: VERA, 2: VERA + NRO45m + NICT34m, 3: VERA + NRO45m)}
\else
{7. Array: \underline{\makebox[6mm][c]{}} \hspace{3mm} (1: VERA, 2: VERA + NRO45m + NICT34m, 3: VERA + NRO45m)}
\fi \vspace{1mm}

}

\def\Band#1{
\noindent
\if@noblank
{8. Band: \underline{\makebox[6mm][c]{#1}} \hspace{3mm} (1: K band, 2: Q band, 3: C band)}
\else
{8. Band: \underline{\makebox[6mm][c]{}} \hspace{3mm} (1: K band, 2: Q band, 3: C band)}
\fi \vspace{1mm}

}

\def\Recorder#1{
\noindent
\if@noblank
{9. Recorder: \underline{\makebox[6mm][c]{#1}} \hspace{3mm} (1: 1024Mbps )}
\else
{9. Recorder: \underline{\makebox[6mm][c]{}} \hspace{3mm} (1: 1024Mbps )}
\fi \vspace{1mm}
%{9. Recorder: \underline{\makebox[6mm][c]{#1}} \hspace{3mm} (1: 128Mbps, 2: 1024Mbps, 3: Both )}
%\else
%{9. Recorder: \underline{\makebox[6mm][c]{}} \hspace{3mm} (1: 128Mbps, 2: 1024Mbps, 3: Both )}
%\fi \vspace{1mm}

}

\def\DFmode#1{
\noindent
\if@noblank
{10. Digital Filter mode: \underline{\makebox[6mm][c]{#1}} \hspace{3mm}\\
\hspace*{5mm} (1: VERA1 (128MHz, 1+1), 2: VERA1S (128MHz, 2+0, single beam only), \\
\hspace*{6mm} 3: VERA7 (16MHz, 1+15), 4: VERA10 (16MHz, 8+8), 5: VERA7Q (16MHz, 2+14), \\
\hspace*{6mm} 6: VERA7C (16MHz, 16+0, single beam only), 7: VERA4S(32MHz, 8+0, single beam only))}
\else
{10. Digital Filter mode: \underline{\makebox[6mm][c]{}} \hspace{3mm}\\
\hspace*{5mm} (1: VERA1 (128MHz, 1+1), 2: VERA7 (16MHz, 1+15), \\
\hspace*{6mm} 3: VERA10 (16MHz, 8+8), 4: VERA7Q (16MHz, 2+14), \\
\hspace*{6mm} 5: VERA7C ( 16MHz, 16+0, single beam only), 6: VERA4S(32MHz, 8+0, single beam only))}
\fi \vspace{1mm}

}

%\def\StreamSelection#1#2{
%\noindent
%\if@noblank
%{11: Stream to be recorded on DIR1000: \underline{\makebox[6mm][c]{#1}}, \underline{\makebox[6mm][c]{#2}} (valid only for VERA7 or VERA10)}
%\else
%{11: Stream to be recorded on DIR1000: \underline{\makebox[6mm][c]{}}, \underline{\makebox[6mm][c]{}} (valid only for VERA7 or VERA10)}
%\fi \vspace{6mm}

%}

\def\Multi_epoch#1#2#3{
\noindent
\if@noblank
{11: Number of observational epochs: \underline{\makebox[6mm][c]{#1}}\\ \hspace*{12mm}
if multi-epochs, requested time per epoch: \underline{\makebox[6mm][c]{#2}} hours, \hspace{1mm} epoch interval: \underline{\makebox[6mm][c]{#3}} months}
\else
{11: Number of Observational Epochs: \underline{\makebox[6mm][c]{}} separeted by \underline{\makebox[6mm][c]{}} months  \hspace{2mm} Requested time per epoch: \underline{\makebox[6mm][c]{}} hours}
\fi \vspace{1mm}

}

\def\Total_Time_Requested#1{
\noindent
\if@noblank
{12: Total Time Requested: \underline{\makebox[10mm][c]{#1}} hours}
%\\ [0.25\baselineskip]
\else
{12: Total Time Requested: \underline{\makebox[10mm][c]{}} hours}
%\\ [0.25\baselineskip]
\fi \vspace*{1mm}

}

\def\Related_proposals#1{
\noindent
\if@noblank
{13: Related previous VERA proposal(s): \\
\hspace*{5mm}{\small Please note submitted year and PI name.} \\
%\vspace{3mm}\\
\parbox{162mm}{\hspace*{3mm}{#1}}}
\else
{13: Related previous VERA proposal(s): \\
\hspace*{5mm}{\small Please note submitted year and PI name.} \\
%\vspace{3mm}\\
\parbox{162mm}{\hspace*{3mm}{}}}
\fi \vspace{7mm}

}

\def\SecondPage{
\newpage
\noindent
\begin{center}
{\Large VERA Proposal Cover Sheet (2/2) }
\end{center}
\vspace{5mm}

}

\def\PairAA #1#2#3#4#5#6#7
{1 & {#1} & {#2} & {#3} & {#4} & {#5} & {#6} & {#7}}
\def\PairAB #1#2#3#4#5#6#7
{  & {#1} & {#2} & {#3} & {#4} & {#5} & {#6} & {#7}}
\def\PairBA #1#2#3#4#5#6#7
{2 & {#1} & {#2} & {#3} & {#4} & {#5} & {#6} & {#7}}
\def\PairBB #1#2#3#4#5#6#7
{  & {#1} & {#2} & {#3} & {#4} & {#5} & {#6} & {#7}}
\def\PairCA #1#2#3#4#5#6#7
{3 & {#1} & {#2} & {#3} & {#4} & {#5} & {#6} & {#7}}
\def\PairCB #1#2#3#4#5#6#7
{  & {#1} & {#2} & {#3} & {#4} & {#5} & {#6} & {#7}}
\def\PairDA #1#2#3#4#5#6#7
{4 & {#1} & {#2} & {#3} & {#4} & {#5} & {#6} & {#7}}
\def\PairDB #1#2#3#4#5#6#7
{  & {#1} & {#2} & {#3} & {#4} & {#5} & {#6} & {#7}}

\def\SourceList#1#2#3#4#5#6#7#8{
\noindent
{14. Source List  (if more than 4 source pairs, please attach a list)
}\\

\noindent
\begin{tabular}{llclllll} \hline
\makebox[7mm][l]{Pair} & \makebox[23mm][l]{Name} &
\makebox[10mm][l]{Type$^a$} &
\makebox[25mm][l]{RA$^b$ (J2000)} & \makebox[25mm][l]{DEC$^b$ (J2000)} &
\makebox[16mm][l]{Flux$^c$} & 
\makebox[14mm][l]{S.A.(deg)$^d$}\\
\hline \large
\if@noblank
 & \ & \ & \ & \ & \ & \ & \ \\
#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ #6 \\ #7 \\ #8 \\
 & \ & \ & \ & \ & \ & \ & \ \\
\hline
\else
 & \ & \ & \ & \ & \ & \ & \ \\
1 & \null & \null & \null & \null & \null & \null & \null \\
  & \null & \null & \null & \null & \null & \null & \null \\
2 & \null & \null & \null & \null & \null & \null & \null \\
  & \null & \null & \null & \null & \null & \null & \null \\
3 & \null & \null & \null & \null & \null & \null & \null \\
  & \null & \null & \null & \null & \null & \null & \null \\
4 & \null & \null & \null & \null & \null & \null & \null \\
  & \null & \null & \null & \null & \null & \null & \null \\
 & \ & \ & \ & \ & \ & \ & \ \\
\hline
\fi
\end{tabular}\\

a. type {`}L{'} for line and {`}C{'} for continuum source.

b. these coordinates are used in the correlation.

c. anticipated correlated flux density.

d. separation angle of pair sources in degree.

\vspace{3mm}

}

\def\Frequency#1{
\noindent
\if@noblank
{15: If line observation, specify frequency and/or transition: \underline{\makebox[50mm][c]{#1}}}
\else
{15: If line observation, specify frequency and/or transition: \underline{\makebox[50mm][c]{}}}
\fi \vspace{7mm}

}

\def\Resolution#1{
\noindent
\if@noblank
{16: Velocity resolution for line observation: \underline{\makebox[15mm][c]{#1}} km s$^{-1}$}
\else
{16: Velocity resolution for line observation: \underline{\makebox[15mm][c]{}} km s$^{-1}$}
\fi \vspace{7mm}

}

\def\Accumulation#1{
\noindent
\if@noblank
{17: Correlator accumulation preiod (default: 1 sec): \underline{\makebox[10mm][c]{#1}} sec}
\else
{17: Correlator accumulation preiod (default: 1 sec): \underline{\makebox[10mm][c]{}} sec}
\fi \vspace{7mm}

}

\def\Correlation#1{
\noindent
\if@noblank
{18: Requests for correlation process (if any): \\
\parbox{162mm}{\hspace*{3mm}{#1}}}
\else
{18: Requests for correlation processs (if any): \\
\parbox{162mm}{\hspace*{3mm}{}}}
\fi  \vspace{7mm}

}

\def\Scheduling#1{
\noindent
\if@noblank
{19: Requests for scheduling: \\
{\small If you have preferable date or period, please specify when and why. If your source is highly variable and you want to detect a transient phenomenan (e.g., maser flare-up), please specify your strategy for scheduling, as dynamic scheduling may be possible for VERA array (but impossible for the array including Nobeyama 45m and NICT Kashima 34m).} \\
\vspace{3mm}\\
\parbox{162mm}{\hspace*{3mm}{#1}}}
\else
{19: Requests for scheduling: \\
{\small If you have preferable date or period, please specify when and why. If your source is highly variable and you want to detect a transient phenomenan (e.g., maser flare-up), please specify your strategy for scheduling, as dynamic scheduling may be possible for VERA array (but impossible for the array including Nobeyama 45m and NICT Kashima 34m).} \\
\vspace{3mm}\\
\parbox{162mm}{\hspace*{3mm}{}}}
\fi \vspace{7mm}

}

\def\Justification{
\noindent
{20: Please attach a scientific justification which does not exceed two pages. One additional page with 
figures and tables may be included. The total should not exceed 5 pages including cover sheet.}
}
