% qitj.sty: style file for QIT Japanese manuscript
% Quantum Information Technology Committee
%
% Usage: \documentstyle[qitj]{jarticle}
%
%
\newcommand{\dg}{\gt}

% set paper parameter for A4 twocolumn
\setlength{\textwidth}{18cm}	% paper width  21.1cm
%\setlength{\textheight}{25.5cm} % paper height 29.7cm
\setlength{\textheight}{24.5cm}	% paper height 29.7cm
\renewcommand{\baselinestretch}{0.865}	% if use article.sty, then comment out


\setlength{\topmargin}{-2.9em}
\setlength{\evensidemargin}{-2em}
\setlength{\oddsidemargin}{\evensidemargin}
\setlength{\columnsep}{3.5em}
\addtolength{\columnsep}{-20pt}
%\newcommand{\refname}{References} %English References



% title parameter setting macro
\newcommand{\@jtitle}{}		% Japanese title
\newcommand{\setjtitle}[1]{\renewcommand{\@jtitle}{#1}}
\newcommand{\@jauthor}{}	% Japanese author
\newcommand{\setjauthor}[1]{\renewcommand{\@jauthor}{#1}}
\newcommand{\@email}{}		% E-mail address
\newcommand{\setemail}[1]{\renewcommand{\@email}{#1}}
\newcommand{\@jaddress}{}	% Japanese address
\newcommand{\setjaddress}[1]{\renewcommand{\@jaddress}{#1}}
\newcommand{\@jkeyword}{}	% Japanese keyword
\newcommand{\setjkeyword}[1]{\renewcommand{\@jkeyword}{#1}}
\newcommand{\@jabstract}{}	% Japanese abstract
\newcommand{\setjabstract}[1]{\renewcommand{\@jabstract}{#1}}
\newcommand{\@etitle}{}		% English title
\newcommand{\setetitle}[1]{\renewcommand{\@etitle}{#1}}
\newcommand{\@eauthor}{}	% English author
\newcommand{\seteauthor}[1]{\renewcommand{\@eauthor}{#1}}
\newcommand{\@eaddress}{}	% English address
\newcommand{\seteaddress}[1]{\renewcommand{\@eaddress}{#1}}
\newcommand{\@ekeyword}{}	% English keyword
\newcommand{\setekeyword}[1]{\renewcommand{\@ekeyword}{#1}}
\newcommand{\@eabstract}{}	% English abstract
\newcommand{\seteabstract}[1]{\renewcommand{\@eabstract}{#1}}

% address mark
\newcounter{address}
\newcommand{\addressmark}[1]{%
\setcounter{address}{#1}
${}^{\fnsymbol{address}}$}


%
% put title page
%
\newcommand{\qittitlepage}{%
\begin{titlepage}
% header
\noindent
\begin{minipage}[t]{\textwidth}
{\renewcommand{\arraystretch}{0.6}
\begin{tabular}{l}
{\footnotesize }\\
{\scriptsize }\\
{\scriptsize }
\end{tabular}
\hfill
\begin{tabular}{l}
{\footnotesize}\\
{\scriptsize }\\
\end{tabular}}
\end{minipage}\par\nopagebreak
%
% Japanese paper cover
\setlength{\parindent}{0pt}
%\setlength{\parskip}{-1zw}
%\rule[-.17\textheight]{0mm}{.17\textheight}	% title and address height
\rule[-.25\textheight]{0mm}{.25\textheight}	% title and address height
\nolinebreak
\begin{minipage}[t]{\textwidth}
\mbox{}\\[-1ex]
\setlength{\topsep}{0pt}
\begin{center}
{\huge\dg\bf \@jtitle}\\
\mbox{}\\[-0.5ex]
{\Large\@jauthor}\\
{\small\@email}\\[1ex]
%{\small
\begin{tabular}{c}
\@jaddress
\end{tabular}
%}
\end{center}
\end{minipage}\par\nopagebreak
\rule[-.15\textheight]{0mm}{.15\textheight}	% abstract height
%\nolinebreak
\begin{minipage}[t]{\textwidth}
\mbox{}\\
\addtolength{\baselineskip}{-.3ex}
%\addtolength{\baselineskip}{-1ex}
{\dg $B$"$i$^$7(B}\quad
{\small\@jabstract}
\end{minipage}\par\nopagebreak
\rule[-.05\textheight]{0mm}{.05\textheight}	% keyword height
\nolinebreak
\begin{minipage}[t]{\textwidth}
\mbox{}\\
{\dg $B%-!<%o!<%I(B}\quad
{\small\@jkeyword}
\end{minipage}\par\nopagebreak
%
% English paper cover
%\rule[-.15\textheight]{0mm}{.15\textheight}	% title and address height
%\rule[-.0\textheight]{0mm}{.0\textheight}	% title and address height
\rule[-.30\textheight]{0mm}{.30\textheight}	% title and address height
\nolinebreak
\begin{minipage}[t]{\textwidth}
\mbox{}
\setlength{\topsep}{0pt}
\begin{center}
{\huge\dg\bf \@etitle}\\
%\mbox{}\\
{\Large\@eauthor}\\
{\small\@email}\\[1ex]
%{\small
%\renewcommand{\arraystretch}{0.865}
\renewcommand{\arraystretch}{0.7}
\begin{tabular}{c}
\@eaddress
\end{tabular}
%}
\end{center}
\end{minipage}\par\nopagebreak
\rule[-.15\textheight]{0mm}{.15\textheight}	% abstract height
\nolinebreak
\begin{minipage}[t]{\textwidth}
\mbox{}\\
\mbox{}\\
\addtolength{\baselineskip}{-1ex}
%\addtolength{\baselineskip}{-3ex}
{\bf Abstract}\quad
{\small\@eabstract}
\end{minipage}\par\nopagebreak
\rule[-.05\textheight]{0mm}{.05\textheight}	% keyword height
%\nolinebreak
\begin{minipage}[t]{\textwidth}
\mbox{}\\
{\dg\bf key words}\quad
{\small\@ekeyword}
\end{minipage}\par
%
% put cover page
\end{titlepage}
}

% end of style file




