\documentclass[11pt,a4paper]{jarticle}
%==== 科研費LaTeX =============================================
%	2007年度 基盤S -- buntansha_test.tex
%	buntansha_kiban_s_11-14.tex のみをテストするためのソース
%============================================================
%:
% === kiban_s_prelude ======================

% Dummy section and subsection commands.
% With these, some editors (such as TeXShop, etc.) can jump to the (sub)sections.
\newcommand{\dummy}{dummy}% 
\renewcommand{\section}[1]{\renewcommand{\dummy}{#1}}
\renewcommand{\subsection}[1]{\renewcommand{\dummy}{#1}}

% Flag for switching form file format.......
\usepackage{ifthen}
\newboolean{usePDFform}

%＝＝＝　様式のファイルの形式の指定　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
%   epsではなく、PDF の様式を読み込む場合は、次の行の頭の%を消してください。
%\setboolean{usePDFform}{true}
%＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝

% ===== my favorite packages ====================================
% ここに、自分の使いたいパッケージを宣言して下さい。
\usepackage{wrapfig}
% \usepackage{amssymb}
%\usepackage{mb}
%\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
%==========================================================

% ===== my personal definitions ==================================
% ここに、自分のよく使う記号などを定義して下さい。
\newcommand{\klpionn}{K_L \to \pi^0 \nu \overline{\nu}}
\newcommand{\kppipnn}{K^+ \to \pi^+ \nu \overline{\nu}}

% ===== Global definitions for the Kakenhi form ======================
% Dummy.  本番では自動的に正しいのが入りますので、ご心配なく。
%------ 研究課題名  -------------------------------------------
\newcommand{\研究課題名}{(自動的に入る)}

%------  研究種別  -------------------------------------------
\newcommand{\研究種別}{}

%----- 研究機関名と研究代表者の氏名-----------------------
\newcommand{\研究機関名}{(本番では自動的に入ります)}
\newcommand{\研究代表者氏名}{(自動的に入る)}

%-----  研究期間の最終年度 ------
\newcommand{\研究期間の最終元号年度}{99}	%平成で、半角数字のみ

%==========================================================
%endPrelude

%======== S-1-8 (基盤S) p.13 研究費の応募・受入等の状況・エフォート ==========
\section{研究費の応募・受入等の状況・エフォート}
\subsection{応募中の研究費}
%endUserFiles

%===== kiban_s_forms ===================================
% 2007年度　基盤S 様式
%
% 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-08-22 V1.6 Kawaguchi - modified it for Kiban_S.
% 2006-09-04 V1.7 Kawaguchi - Remade it for 2007 JFY version. + small mods by Taku.
% 2006-09-05 V1.8 Implemented a mechanism to add S-11,12,13,14 for each kenkyu-buntansha.
% 2006-09-05 V1.9 Added font declarations, and usePDFform flat to switch the form file format.
%====================================================== 
\usepackage{calc}
\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{\KLBottomInfoH}		\setlength{\KLBottomInfoH}{5mm}
\newlength{\KLBottomKikanX}		\setlength{\KLBottomKikanX}{4.5cm}
\newlength{\KLBottomKikanW}		\setlength{\KLBottomKikanW}{80mm}
\newlength{\KLBottomNameX}		\setlength{\KLBottomNameX}{15.6cm}
\newlength{\KLBottomNameW}		\setlength{\KLBottomNameW}{42mm}

% ===== Global definitions for the Kakenhi form ======================
%　奇数ページの下に記入される情報
\newcommand{\KLBottomInfo}{
    \WHBLJ{\KLBottomKikanX}{\KLBottomInfoY}{\KLBottomKikanW}{\KLBottomInfoH}{\研究機関名}
    \WHBLJ{\KLBottomNameX}{\KLBottomInfoY}{\KLBottomNameW}{\KLBottomInfoH}{\研究代表者氏名}
}
%==========================================================
\begin{document}

%========= S-1-8 (基盤S) p.11,12,13,14 分担者の研究者調書 =====================
\newcommand{\分担者氏名}{}
\newcommand{\分担者氏名ふりがな}{}
\newcommand{\分担者生年月日}{}
\newcommand{\分担者年齢}{}
\newcommand{\分担者所属研究機関と職}{}
\newcommand{\分担者学位}{}
\newcommand{\分担者現在の専門}{}
\newcommand{\分担者研究業績}{}
\newcommand{\分担者研究業績つづき}{}
\newcommand{\分担者研究経費}{}
\newcommand{\分担者本応募effort}{}
\newcommand{\分担者応募中の研究費}{}
\newcommand{\分担者受け入れ予定の研究費}{}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 　　各研究分担者について、buntansha_kiban_s_11-14.tex  を　　　　　　　　　　%
%　　コピーしたファイルを作り、様式 S-11, 12, 13, 14 の内容を書いてください。　　%
%　　そうして作ったファイルを、\input で取り込んでください。　　　　　　　　　　%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\input{buntansha_kiban_s_11-14}

\end{document}
