%=================================================================
% form05_wakate_startup_header.tex
%	for the 2007(H19) Japanese Fiscal Year
%	2006-10-01 : Taku Yamanaka (Osaka Univ.)
%			Switched to the new development system using a "mother file".
%	2007-03-24: Taku
%			Switched to a method using "picture" environment.
%=================================================================
\usepackage{calc}
\usepackage{watermark}
\usepackage{longtable}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.

\geometry{noheadfoot,scale=1}  %scale=1 resets margins to 0
\setlength{\unitlength}{1pt}

% picture environment location, in  units of points
\newcommand{\KLOddPictureX}{84}%
\newcommand{\KLEvenPictureX}{60}%
\newcommand{\KLPictureY}{742}%
\newcommand{\KLOddPictureInWaterMarkX}{72}
\newcommand{\KLEvenPictureInWaterMarkX}{48}
\newcommand{\KLPictureInWaterMarkY}{750}

% standard left edge positions
\newcommand{\KLOddLeftEdge}{65}
\newcommand{\KLOddRightEdge}{555}
\newcommand{\KLEvenLeftEdge}{42}
\newcommand{\KLEvenRightEdge}{528}

\newcommand{\KLLeftEdge}{}
\newcommand{\KLRightEdge}{}

% standard margins for text in frames
\setcounter{KLParboxSideMargin}{7}
\setcounter{KLParboxTopMargin}{12}
\setcounter{KLParboxBottomMargin}{5}

% ===== Global definitions for the Kakenhi form ======================
%　基本情報
\newcommand{\研究種目}{若手研究(スタートアップ)}
\newcommand{\研究種目後半}{}
\ifthenelse{\isundefined{\研究種別}}{
	\newcommand{\研究種別}{}
}{}%
\newcommand{\KLMainFile}{wakate\_startup.tex}
\newcommand{\KLForms}{wakate_startup_forms}
\newcommand{\KLYoshiki}{yoshiki_wakate_startup}

%　奇数ページの下に記入される情報
\newcommand{\klbyYup}{}
\newcommand{\klbyYdown}{}
\newcommand{\klbyKikanXleft}{}
\newcommand{\klbyKikanXright}{}
\newcommand{\klbyNameXleft}{}
\newcommand{\klbyNameXright}{}

\newcommand{\KLBottomInfo}[6]{%
	\ifthenelse{\equal{#1}{}}{%
		\renewcommand{\klbyYup}{82}
		\renewcommand{\klbyYdown}{68}
	}{%
		\renewcommand{\klbyYup}{#1}
		\renewcommand{\klbyYdown}{#2}
	}
	
	\ifthenelse{\equal{#3}{}}{%
		\renewcommand{\klbyKikanXleft}{133}
		\renewcommand{\klbyKikanXright}{348}
		\renewcommand{\klbyNameXleft}{438}
		\renewcommand{\klbyNameXright}{552}
	}{%
		\renewcommand{\klbyKikanXleft}{#3}
		\renewcommand{\klbyKikanXright}{#4}
		\renewcommand{\klbyNameXleft}{#5}
		\renewcommand{\klbyNmaeXright}{#6}
	}
	\KLTextBox{\klbyKikanXleft}{\klbyYup}{\klbyKikanXright}{\klbyYdown}{}{\研究機関名}%
	\KLTextBox{\klbyNameXleft}{\klbyYup}{\klbyNameXright}{\klbyYdown}{}{\研究代表者氏名}%
}
%==========================================================

%------ These should be set before \begin{document} ------
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{-8mm}
\setlength{\textwidth}{167mm}
\setlength{\topmargin}{8mm}
\setlength{\textheight}{232mm}
%----------------------------------------------------------------------------


