%===== keizoku_forms ===================================
% 2007(H19)年度　継続  様式
%
% 2006-05-30 Taku Yamanaka (Physics Dept., Osaka Univ.)
% 2006-06-02 V1.0
% 2006-06-14 V1.1 Use automatic calculation for cost tables.
% 2006-06-18 V1.2 Split user's contents and the format.
% 2006-06-20 V1.3 Reorganized user and format files
% 2006-06-25 V1.4 Readjusted all the table column widths with p{...}.
%				With \KLTabR and \KLTabRNum, now the items can be right-justified
%				in the cell defined by p{...}.
% 2006-06-26 V1.5 Use \newlength and \setlength, instead of \newcommand, to define positions.
% 2006-07-05 V1.6 Remade for Keizoku (2005) by M. Kawaguchi.
% 2006-09-01 V1.7 Modified for 2007 JFY by M. Kawaguchi + Taku.
% 2006-09-09 V1.8 Added effort calculation, font fixes, etc..
% 2006-09-11 V2.0 Added an option to show budget summary.
% 2006-09-13 V2.1 Added an option to show the group.
%====================================================== 
\usepackage{../kakenhi}
%\DrawBox  % uncomment this to show the boxes 

\pagestyle{empty}

% ===== File format for forms ===========================
\ifthenelse{\boolean{usePDFform}}{
	\newcommand{\KLFormFormat}{pdf}	\usepackage[dvipdfm]{graphicx}
}{	\newcommand{\KLFormFormat}{eps}	\usepackage{graphicx}
}

% ===== Parameters for LaTeX =========================
\setlength{\topmargin}{-3.9cm}
\setlength{\oddsidemargin}{-2.9cm}
\setlength{\evensidemargin}{-2.9cm}
	% Above three margins are set so that the origin of the coordinate is the top-left corner.
	
\setlength{\textwidth}{22cm}		
	% should be large enough to avoid Overfull \hbox warning when including PDF form files
	
\setlength{\textheight}{30cm}	
	% should be large enough to avoid the 1st form to flow into the 2nd page
	 
% ===== Font declarations  ======================================
\DeclareFontShape{JT1}{mc}{m}{it}{<->ssub * mc/m/n}{}
\DeclareFontShape{JY1}{mc}{m}{it}{<->ssub * mc/m/n}{}

% ===== Parameters for KL (Kakenhi LaTeX) ========================
\newlength{\KLOddLeftEdge}		\setlength{\KLOddLeftEdge}{2.3cm}
\newlength{\KLEvenLeftEdge}		\setlength{\KLEvenLeftEdge}{1.3cm}
\newlength{\KLFullWidth} 		\setlength{\KLFullWidth}{17.2cm}
\newlength{\KLMiniPageWidth}	\setlength{\KLMiniPageWidth}{21cm} % 

% vertical and horizontal shift amounts for pdf and eps forms
\newlength{\KLGraphicsVspace}	\setlength{\KLGraphicsVspace}{-0cm}
\newlength{\KLGraphicsHspace}	\setlength{\KLGraphicsHspace}{-0.1cm}

% general purpose temporary variables
\newlength{\KLX}
\newlength{\KLY}
\newlength{\KLW}
\newlength{\KLH}
\newlength{\KLCella}
\newlength{\KLCellb}

% 奇数ページの下のある、種目、研究機関名、研究代表者氏名の座標
\newlength{\KLBottomInfoY}
\newlength{\KLBottomKindH}		\setlength{\KLBottomKindH}{5mm}
\newlength{\KLBottomKindX}		\setlength{\KLBottomKindX}{5.4cm}
\newlength{\KLBottomKindW}		\setlength{\KLBottomKindW}{24mm}
\newlength{\KLBottomKikanX}		\setlength{\KLBottomKikanX}{10.1cm}
\newlength{\KLBottomKikanW}		\setlength{\KLBottomKikanW}{34mm}
\newlength{\KLBottomNameX}		\setlength{\KLBottomNameX}{16.6cm}
\newlength{\KLBottomNameW}		\setlength{\KLBottomNameW}{33mm}

% ===== Global definitions for the Kakenhi form ======================
%　基本情報
\newcommand{\研究開始年度}{2007}
\newcommand{\研究開始元号年度}{19}	%平成
\newcommand{\研究種目}{継続}
\newcommand{\研究種目後半}{}
\ifthenelse{\isundefined{\研究種別}}{
	\newcommand{\研究種別}{}
}{}%
\newcommand{\KLMainFile}{keizoku.tex}

%　奇数ページの下に記入される情報
\newcommand{\KLBottomInfo}{
    \WHBLJ{\KLBottomKindX}{\KLBottomInfoY}{\KLBottomKindW}{\KLBottomKindH}{\継続分の課題番号}
    \WHBLJ{\KLBottomKikanX}{\KLBottomInfoY}{\KLBottomKikanW}{\KLBottomKindH}{\研究機関名}
    \WHBLJ{\KLBottomNameX}{\KLBottomInfoY}{\KLBottomNameW}{\KLBottomKindH}{\研究代表者氏名}
}
%==========================================================

%================================================================= 
 \begin{document}
 
%====== Budget Summary cover ==========
\ifthenelse{\boolean{BudgetSummary}}{
	\input{coverpage}
}{%<<<< NOT BudgetSummary <<<<<<

%======= S-1-14 (継続) p.1 研究目的　========================================
\section{研究目的}
\begin{minipage}{\KLMiniPageWidth}
    \WHBP{\KLOddLeftEdge}{5.1cm}{\KLFullWidth}{21.8cm}{
	%begin 研究目的　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
	\研究目的
	%end 研究目的＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
     }
     
     % ----- 下の情報 ------------
    \setlength{\KLBottomInfoY}{27.12cm}
    \KLBottomInfo
     
     %----- 様式 -------------------
     \vspace{\KLGraphicsVspace}
     \hspace{\KLGraphicsHspace}
     \includegraphics{../keizoku_forms_\KLFormFormat/yoshiki_keizoku-page1.\KLFormFormat}
\end{minipage}


%======== S-1-14 (継続) p.2 今年度までの研究経過==================================
\section{今年度までの研究経過}
\begin{minipage}{\KLMiniPageWidth}
    \WHBP{\KLEvenLeftEdge}{2.8cm}{\KLFullWidth}{24.8cm}{
	%begin 今年度までの研究経過　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
	\今年度までの研究経過
	%end 今年度までの研究経過　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
     }
     
     %----- 様式 -------------------
     \vspace{\KLGraphicsVspace}
     \hspace{\KLGraphicsHspace}
     \includegraphics{../keizoku_forms_\KLFormFormat/yoshiki_keizoku-page2.\KLFormFormat}
\end{minipage}

%======= S-1-14 (継続) p.3 今年度までの研究の評価 ==========================
\section{今年度までの研究の評価}
\begin{minipage}{\KLMiniPageWidth}
    \WHBP{\KLOddLeftEdge}{2.8cm}{\KLFullWidth}{24.2cm}{
	%begin 今年度までの研究の評価　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
	\今年度までの研究の評価
	%end 今年度までの研究の評価　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
     }
     
     % ----- 下の情報 ------------
    \setlength{\KLBottomInfoY}{27.3cm}
    \KLBottomInfo
     
     %----- 様式 -------------------
     \vspace{\KLGraphicsVspace}
     \hspace{\KLGraphicsHspace}
     \includegraphics{../keizoku_forms_\KLFormFormat/yoshiki_keizoku-page3.\KLFormFormat}
\end{minipage}


%======== S-1-14 (継続) p.4 初年度以降の研究計画・方法===========================
\section{初年度以降の研究計画・方法}
\begin{minipage}{\KLMiniPageWidth}
    \WHBP{\KLEvenLeftEdge}{5.3cm}{\KLFullWidth}{22.3cm}{
	%begin 初年度以降の研究計画・方法　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
	\初年度以降の研究計画
	%end 初年度以降の研究計画・方法　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
     }
     
     %----- 様式 -------------------
     \vspace{\KLGraphicsVspace}
     \hspace{\KLGraphicsHspace}
     \includegraphics{../keizoku_forms_\KLFormFormat/yoshiki_keizoku-page4.\KLFormFormat}
\end{minipage}

%======== S-1-14 (継続) p.5 当初計画との変更点、研究成果の発表状況=====================
\section{当初計画との変更点、研究成果の発表状況}
\begin{minipage}{\KLMiniPageWidth}
    \WHBP{\KLOddLeftEdge}{3.3cm}{\KLFullWidth}{11.1cm}{
	%begin 当初計画との変更点　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
	\当初計画との変更点
	%end 当初計画との変更点＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
    }
         
    \WHBP{\KLOddLeftEdge}{16.1cm}{\KLFullWidth}{10.4cm}{
	%begin 研究成果の発表状況　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
	\研究成果の発表状況
	%end 研究成果の発表状況＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
    }


     % ----- 下の情報 ------------
    \setlength{\KLBottomInfoY}{26.75cm}
    \KLBottomInfo
     
     %----- 様式 -------------------
     \vspace{\KLGraphicsVspace}
     \hspace{\KLGraphicsHspace}
     \includegraphics{../keizoku_forms_\KLFormFormat/yoshiki_keizoku-page5.\KLFormFormat}
\end{minipage}

%======= S-1-14 (継続)  p.6 人権、法令、分担金、研究経費の妥当性など =========
\section{人権、法令、分担金、研究経費の妥当性など}
\begin{minipage}{\KLMiniPageWidth}
\subsection{人権の保護及び法令等の遵守への対応}
    \WHBP{\KLEvenLeftEdge}{3.3cm}{\KLFullWidth}{9.7cm}{
	%begin 人権の保護及び法令等の遵守への対応　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
	\人権の保護及び法令等の遵守への対応
	%end 人権の保護及び法令等の遵守への対応　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
    }

\subsection{研究経費の妥当性・必要性}
    \WHBP{\KLEvenLeftEdge}{15.8cm}{\KLFullWidth}{11.4cm}{
	%begin 研究経費の妥当性・必要性　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
	\研究経費の妥当性と必要性
	%end 研究経費の妥当性・必要性　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
    }

  %----- 様式 -------------------
     \vspace{\KLGraphicsVspace}
     \hspace{\KLGraphicsHspace}
     \includegraphics{../keizoku_forms_\KLFormFormat/yoshiki_keizoku-page6.\KLFormFormat}
\end{minipage}
  
}%>>>> NOT BudgetSummary

%======== S-1-14 (継続) p.７ 設備備品費、消耗品費の明細=======================
\section{設備備品費、消耗品費の明細}
\begin{minipage}{\KLMiniPageWidth}
    \WHBLJ{2.1cm}{3.6cm}{11.2cm}{23.5cm}{
     	\renewcommand{\KLCostCategory}{KLequipments}
     	\KLResetGrandSum
	\begin{tabular}{p{5.5mm}p{78mm}p{15.5mm}}
         		\phantom{年} & \phantom{品名・仕様} & \phantom{1}\\
		% Above line is used to allocate the width for the cost.  DO NOT REMOVE IT.
		%begin 設備備品費の明細　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
		\設備備品費の明細
		%end 設備備品費の明細　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
	\end{tabular}
    }
     
    \WHBLJ{13.25cm}{3.6cm}{6.7cm}{23.5cm}{
     	\renewcommand{\KLCostCategory}{KLexpendables}
     	\KLResetGrandSum
	\begin{tabular}{p{43mm}p{15mm}}
         		\phantom{品名} & \phantom{1}\\
		% Above line is used to allocate the width for the cost.  DO NOT REMOVE IT.
		%begin 消耗品費の明細　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
		\消耗品費の明細
		%end 消耗品費の明細　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
	\end{tabular}
     }

   % ----- 下の情報 ------------
    \setlength{\KLBottomInfoY}{27.3cm}
    \KLBottomInfo	     
     
     %----- 様式 -------------------
     \vspace{\KLGraphicsVspace}
     \hspace{\KLGraphicsHspace}
     \includegraphics{../keizoku_forms_\KLFormFormat/yoshiki_keizoku-page7.\KLFormFormat}
\end{minipage}

%======== S-1-14 (継続) p.８ 旅費等の明細===========================
\section{旅費等の明細}
\begin{minipage}{\KLMiniPageWidth}
    \begingroup
	\setlength{\tabcolsep}{1mm}
	\begin{small}
	    \WHBLJ{11mm}{29mm}{51mm}{24.7cm}{
		\renewcommand{\KLCostCategory}{KLtravel}
		\KLResetGrandSum
		\begin{tabular}{p{8mm}p{23.5mm}p{13.5mm}}
			\phantom{18} & \phantom{事項} & \phantom{1}\\
	%begin 国内旅費＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
			\国内旅費
	%end 国内旅費＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
		\end{tabular}
	    }

	    \WHBLJ{62mm}{29mm}{41mm}{24.7cm}{
		\renewcommand{\KLCostCategory}{KLtravel}
		\KLResetGrandSum
		\begin{tabular}{p{23mm}p{14mm}}
			\phantom{事項} & \phantom{1}\\
	%begin 外国旅費＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
			\外国旅費
	%end 外国旅費＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
		\end{tabular}
	    }

	    \WHBLJ{103mm}{29mm}{43mm}{24.7cm}{
		\renewcommand{\KLCostCategory}{KLgratitude}
		\KLResetGrandSum
		\begin{tabular}{p{26mm}p{13mm}}
			\phantom{事項} & \phantom{1}\\
	%begin 謝金等 ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
			\謝金等
	%end 謝金等 ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
		\end{tabular}
	    }

	    \WHBLJ{146mm}{29mm}{43mm}{24.7cm}{
		\renewcommand{\KLCostCategory}{KLmisc}
		\KLResetGrandSum
		\begin{tabular}{p{25mm}p{14mm}}
			\phantom{事項} & \phantom{1}\\
	%begin その他＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
			\その他
	%end その他＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
		\end{tabular}
	    }
	\end{small}
    \endgroup

     
     %----- 様式 -------------------
     \vspace{\KLGraphicsVspace}
     \hspace{\KLGraphicsHspace}
     \includegraphics{../keizoku_forms_\KLFormFormat/yoshiki_keizoku-page8.\KLFormFormat}
\end{minipage}

% Print the Grand Total of the budget to the console. (as requested by the Kakenhi-Macro group).
\KLPrintGrandTotal

%==== Summary Table in DRAFT mode =====
\ifthenelse{\boolean{BudgetSummary}}{
	\newpage
	
	% restore parameters
	\setlength{\topmargin}{-2cm}
	\setlength{\oddsidemargin}{-0.5cm}
	\setlength{\evensidemargin}{-0.5cm}
	\setlength{\textwidth}{16cm}
	\setlength{\linewidth}{16cm}
	\setlength{\textheight}{25cm}

	\newpage	
	\input{summary_table}
	
	\newpage
	\input{group_table}
}{
}

