%%%%%%%%%%%%%%%%%%%%%%%%%%%
% base.sty 2002
% originated from kondo and sakakima
% updated by Shinkichi Inagaki at 01/11/15
% updated by Dai Owaki 2012/11/21
% updated by Yuichi Kobayashi 2013/9/17
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\typeout{自律分散シンポジウム原稿用スタイル2016}
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% タイトルの変更
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\maketitle{%　原稿用のタイトルを出力する命令
  \par %　改段
  \begingroup
    \def\thefootnote{\arabic{footnote}) }%　脚注は番号で．脚注は研究者の所属が入る
	%\def\@makefnmark{\hbox to 0Pt{$^{\@thefnmark}$\hss}}%
	\if@twocolumn \twocolumn[\@maketitle]%　2段組の場合
	\else%　1段組の場合
	  \newpage
	  \global\@topnum=\z@ %　図がページの上にくるのを防ぐ
	  \@maketitle
	\fi
	\thispagestyle{plain}%
	\@thanks %　脚注を入れる
  \endgroup
  \setcounter{footnote}{0}%　脚注番号を0に戻す
  }
%
\def\@maketitle{%	２段組の文書で，タイトル，著者名，日付を１段組にする
  \newpage
  \null
  \vskip -\baselineskip%
  \vskip -\baselineskip%
  \vskip -\baselineskip%
  \begin{center}
  {\Large\bf \@title \par}%	タイトルは Large の太文字で，
  \end{center}%
%
  % 日本語サブタイトル： Large(14pt)，ゴシック体(英語が混ざる場合，ローマン体のボールド)
    \@ifundefined{@subtitle}{}{%
        \begin{center}%
            { \Large%
                { \textgt%
                    { \textbf%
                        { \textrm%
                            \@subtitle%
                        }%
                    }%
                }%
                \par%
            }%
            \gdef\@subtitle{}%
        \end{center}%
        \vspace{-15pt}%
    }%
% 
 \begin{center}%
  {\normalsize%			著者名は normalsize で
   \begin{tabular}[t]{l}\@author% 
   \end{tabular}\par}%
  \end{center}%
\vspace{-10pt}%
%
  \@ifundefined{@titleE}{}{%
	\begin{center}
    \large\bf%		英語タイトルは Large で	
    \@titleE%
    \gdef\@titleE{}\end{center}%
  \vspace{-10pt}}%
%
  \@ifundefined{@subtitleE}{}{%
        \begin{center}%
            { \Large%
                { \textrm%
                    { \textbf%
                        \@subtitleE%
                    }%
                }%
                \par%
            }%
            \gdef\@subtitleE{}%
        \end{center}%
        \vspace{-15pt}%
    }%
%

  \@ifundefined{@authorE}{}{%
   \begin{center}%
     \normalsize%
     \begin{tabular}[t]{l}\@authorE %
     \end{tabular}\par%
   \end{center}%
  \vspace{-10pt}}%
%
  \@ifundefined{@abst}{}{%
    \if@twocolumn%	２段組の文書の場合
      \begin{center}\begin{minipage}{17cm}%　abst の幅 18cm に設定
	\setlength{\baselineskip}{0.8\baselineskip}
	   %	行送りを，設定値の0.8倍にする
 	{\bf Abstract:}
	\@abst
	\gdef\@abst{}
     \end{minipage}\end{center}
    \else%		１段組の文書の場合
      \begin{center}\begin{minipage}{17cm}
	\setlength{\baselineskip}{0.8\baselineskip}
	\hskip 3em
	\@abst
	\gdef\@abst{}
      \end{minipage}\end{center}
    \fi}%
%
  \@ifundefined{@keyword}{}{
    \normalsize
    \begin{center}\begin{minipage}{16cm}%　keyward の幅 16cm に設定
      \begin{minipage}[t]{2cm}%	[t]:スペースの上端が，前後文の下端と一致？
	{\bf{\it Key Words}:}
      \end{minipage}
      \begin{minipage}[t]{13.8cm}
      \setlength{\baselineskip}{0.8\baselineskip}
      \@keyword
      \gdef\@keyword{}
    \end{minipage}\end{minipage}\end{center}}%
  \vskip \Cvs
}%
\long\def\titleE#1{\long\gdef\@titleE{#1}}
\long\def\authorE#1{\long\gdef\@authorE{#1}}
\long\def\abst#1{\long\gdef\@abst{#1}}
\long\def\keyword#1{\long\gdef\@keyword{#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%
% section,subsectionの表記の変更
%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\mysection}{%
	\@startsection{section}{1}{\z@}%
	{1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
	{.5\Cvs \@plus.3\Cdp}%
	 {\reset@font\large\bfseries} }%
\newcommand{\mysubsection}{%
 	\@startsection{subsection}{1}{\z@}%
	{1.0\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
	{.5\Cvs \@plus.3\Cdp}%
	{\reset@font\normalsize\bfseries} }%

%%%%%%%%%%%%%%%%%%%%%%%%%%
% captionの表記の変更
%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\figurename{Fig.}%
\def\tablename{Table.}%

%%%%%%%%%%%%%%%%%%%%%%%%%%
% captionのデザイン変更
%%%%%%%%%%%%%%%%%%%%%%%%%%
\long\def\@makecaption#1#2{%

	\vskip 8pt%
	\setbox\@tempboxa\hbox{\small#1  #2}%
	\ifdim \wd\@tempboxa >\hsize \unhbox\@tempboxa\par%
	\else \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
\fi}%

%%%%%%%%%%%%%%%%%%%%%%%%%%
% ページレイアウトの変更
% 上：{1in+\topmargin}(>2cm)+本文縦：\textheight+下の空き(>2.57cm)=29.57cm
% 左：{1in+\sidemargin}(>1.5cm)+本文横：\textwidth+右の空き(>1.5cm)=21.00cm
%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%上
% \setlength{\topmargin}{-0.04cm}%上へ2.54cm-2cm
 \setlength{\topmargin}{-0.5cm}%上へ2.54cm-2cm
 \setlength{\headheight}{0.cm}%
 \setlength{\headsep}{0.cm}%
%%%%%本文縦
 \setlength{\textheight}{24.5cm}% max25cm
 \setlength{\footskip}{0.cm}%
%%%%%左
 \setlength{\oddsidemargin}{-0.54cm}%左へ2.54cm-1.5cm
 \setlength{\evensidemargin}{-0.54cm}%左へ2.54cm-1.5cm
%%%%%本文横
 \setlength{\textwidth}{17.cm}% max18cm
%
 \addtolength{\itemsep}{-3.cm}%
% \addtolength{\itemsep}{-2.cm}%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%
% 文献リストの題名を「参考文献」にする．
%%%%%%%%%%%%%%%%%%%%%%%%%%
 \def\refname{\large 参考文献}%
%
