% houga_forms
%=======================================
% patches to absorb the changes between the versions 2006.09.24 and 2006.10.03.

\ifthenelse{\isundefined{\研究目的つづき}}{
	\newcommand{\研究目的つづき}{}
}{}

\ifthenelse{\isundefined{\研究計画つづき}}{
	\newcommand{\研究計画つづき}{}
}{}

\ifthenelse{\isundefined{\研究計画つづき２}}{
	\newcommand{\研究計画つづき２}{}
}{}

\ifthenelse{\isundefined{\研究業績つづき}}{
	\newcommand{\研究業績つづき}{}
}{}

\ifthenelse{\isundefined{\研究業績つづき２}}{
	\newcommand{\研究業績つづき２}{}
}{}

\ifthenelse{\isundefined{\研究計画最終年度の応募の課題番号J}}{
	\newcommand{\研究計画最終年度の応募の課題番号J}{\研究計画最終年度の応募の課題番号}
}{}

\ifthenelse{\isundefined{\年と研究業績}}{
	\newcommand{\年と研究業績}{\研究業績}
}{}

%=======================================
\ifthenelse{\boolean{BudgetSummary}}{
%framemode_AB:
\setlength{\textheight}{31cm}%
\clearpage% This should come after setting new \textheight, or otherwise the old value will be used for this page.

%f: ===== Parameters for LaTeX =========================
\setlength{\topmargin}{-2.6cm}
\setlength{\oddsidemargin}{-26mm}
\setlength{\evensidemargin}{-26mm}
	%f: Above three margins are set so that the origin of the coordinate is the top-left corner.
	
\setlength{\parindent}{0zw}
%f:===============================================

%--empty watermarks
\watermark{}
\thiswatermark{}
\rightwatermark{}
\leftwatermark{}

%-----------------------

	\input{coverpage}
}{
	% if false, generate page 1-5
	\input{forms/houga_form_01-02}
	\input{forms/houga_form_03-04}
	\input{forms/houga_form_05}
}
%=======================================
% Generate p.6
	\input{forms/houga_form_06}
%=======================================

\ifthenelse{\boolean{BudgetSummary}}{
	\input{forms/form90_summary}
}{
	\input{forms/houga_form_07}
	\input{forms/houga_form_08}
}
%========================================
