%=================================================================
\usepackage{calc}
\usepackage{watermark}
\usepackage{longtable}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.

\geometry{noheadfoot,scale=1}  
\setlength{\unitlength}{1mm}

% standard left edge positions
\setlength{\KLOddLeftEdge}{2.4cm}
\setlength{\KLUnivLeftEdge}{2.1cm}
\setlength{\KLEvenLeftEdge}{1.3cm}

\setlength{\KLLeftOddTable}{1.9cm}
\setlength{\KLLeftUnivTable}{1.9cm}
\setlength{\KLLeftEvenTable}{2.05cm}

% standard widths
\setlength{\KLFullWidth}{16.8cm}

%===== sub-page ============================
\setlength{\KLSubPageX}{18.0cm}
\setlength{\KLSubPageY}{2.0cm}

\newcommand{\KLSubPage}[2]{
    \stepcounter{KLSubPageNo}
    
    \setlength{\KLspx}{#1}	\addtolength{\KLspx}{\KLSubPageX}
    \setlength{\KLspy}{#2}	\addtolength{\KLspy}{\KLSubPageY}
    
    \WHBC{\KLspx}{\KLspy}{7mm}{6mm}{
    	\arabic{KLSubPageNo}
    }
}

% 奇数ページの下のある、種目、研究機関名、研究代表者氏名の座標
\setlength{\KLBottomInfoH}{6mm}
\setlength{\KLBottomKikanX}{4.3cm}
\setlength{\KLBottomKikanW}{78mm}
\setlength{\KLBottomNameX}{15.1cm}
\setlength{\KLBottomNameW}{42mm}

%===== header for Tokutei Koubo ========================================
%　奇数ページの下に記入される情報
\newcommand{\KLBottomInfo}{
    \WHBC{\KLBottomKikanX}{\KLBottomInfoY}{\KLBottomKikanW}{\KLBottomInfoH}{\研究機関名}
    \WHBC{\KLBottomNameX}{\KLBottomInfoY}{\KLBottomNameW}{\KLBottomInfoH}{\研究代表者氏名}
}

\newcommand{\KLMainFile}{tokusui.tex}

\newcommand{\研究種目}{特別推進研究}
\newcommand{\研究種目後半}{　新規}
\ifthenelse{\isundefined{\研究種別}}{
	\newcommand{\研究種別}{}
}{}%

%=================================================================
