% kiban_s_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{\isundefined{\研究業績リスト}}{
	\newcommand{\研究業績リスト}{
		\研究業績
		
		\研究業績つづき
	}
}{}

\ifthenelse{\isundefined{\生年月日tabular}}{
	\newcommand{\生年月日tabular}{\生年月日}
}{}
		
\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-8
	\input{forms/kiban_s_form_01-02}
	\input{forms/kiban_s_form_03-05}
	\input{forms/kiban_s_form_06}
	\input{forms/kiban_s_form_07}
	\input{forms/kiban_s_form_08}
}
%=======================================
% Generate p.9-10
\input{forms/kiban_s_form_09}
\input{forms/kiban_s_form_10}
%=======================================

\ifthenelse{\boolean{BudgetSummary}}{
	\input{forms/form90_summary}
}{
	\input{forms/kiban_s_form_11-12}
	\input{forms/kiban_s_form_13}
	\input{forms/kiban_s_form_14}
}
%========================================
