% ----------------------------------------------------------------------
% jass.sty
% pLaTeX style file for the Japanese Journal of Language in Society
% written by Yasuharu DEN (den@chiba-u.jp)
%
% Copyright (c) The Japanese Association of Sociolinguistic Sciences.
% All rights reserved.
%
% Description: $B!X<R2q8@8l2J3X!Y(BLaTeX$B%9%?%$%k%U%!%$%k(B
%
% Changes:
%   2021/12/07  v1.1 $B8x3+(B
%   2016/01/24  v1.0 $B8x3+(B
% 
% ----------------------------------------------------------------------
\NeedsTeXFormat{pLaTeX2e}
\ProvidesPackage{jass}[2021/12/07 v1.1]

% ----------------------------------------------------------------------
% $B=i4|=hM}(B
% ----------------------------------------------------------------------
% jsarticle.cls $B$rFI$s$@$+$I$&$+%A%'%C%/(B
\@ifundefined{ifjisfont}{\errmessage{Please use jsarticle.cls}}{}

% twocolumn $B%*%W%7%g%s$N@_Dj(B
\@twocolumntrue
\twocolumn
\sloppy
\flushbottom

% $BK\%Q%C%1!<%8$N%*%W%7%g%s(B
% lineno --- $B9THV9f$r=PNO$9$k!JEj9FMQ!K(B(default)
% nolineno --- $B9THV9f$r=PNO$;$:!J:G=*869FMQ!K(B
\newif\ifjass@lineno \jass@linenotrue
\DeclareOption{lineno}{\jass@linenotrue}
\DeclareOption{nolineno}{\jass@linenofalse}
\ExecuteOptions{lineno}
\ProcessOptions\relax
  
% ----------------------------------------------------------------------
% $B9THV9f(B
% ----------------------------------------------------------------------
\ifjass@lineno
% $B%Z!<%8$4$H$K9THV9f(B
\RequirePackage[pagewise,mathlines]{lineno}

% lineno$B$r;H$C$?:]$K!":G=*%Z!<%8$N:81&CJ$N9b$5B7$($,>e<j$/$$$+$J$$LdBj$X$NBP=h(B
% $B:G=*%Z!<%8$N$_!"(B`\box\@outputbox'$B$r(B`\unvbox\@outputbox'$B$KJQ$($k!#(B
\renewcommand{\@LN@makecol}{%
  \@LN@orig@makecol
  \setbox\@outputbox\vbox to\textheight{%
    \boxmaxdepth\@maxdepth
    \protected@write\@auxout{}{\string\@LN@col{\if@firstcolumn1\else2\fi}}%
    \ifnum\the\c@LN@truepage=\the\c@LN@lastpage
      \unvbox\@outputbox
    \else
      \box\@outputbox
    \fi}}

% $B:G=*%Z!<%8$r(Baux$B%U%!%$%k$K5-O?(B
\newcount\c@LN@lastpage 
\AtEndDocument{%
  \protected@write\@auxout{}{\string\@LNlastpage{\noexpand\the\c@LN@truepage}}%
  \let\@LNlastpage\@gobble}
\newcommand{\@LNlastpage}[1]{\setcounter{LN@lastpage}{#1}}

% $B9THV9f$N%U%)%s%H(B
\renewcommand{\linenumberfont}{\normalfont\small\sffamily}

\pagewiselinenumbers

\else
% $B9THV9f$J$7$N>l9g(B
\let\@LN\@gobbletwo
\let\@LN@col\@gobble
\let\@LNlastpage\@gobble
\fi

% ----------------------------------------------------------------------
% $B%U%)%s%H(B
% ----------------------------------------------------------------------
\RequirePackage{txfonts}

% Word$B$N(B1pt$B$O(BLaTeX$B$N(B1pt$B$N(B
%   72.27 / 72 = 1.004$BG\(B
\mag=1004
\def\inv@mag{0.996264}
% LaTeX$B$NOBJ8%U%)%s%H$ODL>o%5%$%:$N(B0.962216$BG\!#(BJIS$B%U%)%s%H$O$5$i$K$=$N(B
% 0.961$BG\!#$h$C$F!"(BWord$B%U%)%s%H$N(B9pt$B$KBP1~$9$k(BJIS$B%U%)%s%H$O(B
%   9 / 0.962216 / 0.961 / 1.004 = 9.69pt
%
%  LaTeX command  JIS      Word
%  -------------------------------
% (\tiny          4.31pt   4pt
%  \scriptsize    4.85pt   4.5pt
% (\footnotesize  7.54pt   7pt
%  \small         8.62pt   8pt
%  \normalsize    9.69pt   9pt
%  \middlesize    10.23pt  9.5pt
%  \large         11.31pt  10.5pt
%  \Large         12.93pt  12pt
%  \LARGE         15.08pt  14pt
% (\huge          17.23pt  16pt
% (\Huge          21.54pt  20pt
% (\HUGE          25.85pt  24pt
% ----------------------------------------------------------------------
% $BK\J8!&Cf8+=P$7!&>.8+=P$7!&<oJL!&MW;]!&%-!<%o!<%I!&%m!<%^;zCx<TL>!&=jB0(B
\renewcommand{\normalsize}{%
  \@setfontsize\normalsize{9.69pt}{14.6pt}%
  \abovedisplayskip .5\baselineskip
  \belowdisplayskip\abovedisplayskip
  \abovedisplayshortskip .5\baselineskip
  \belowdisplayshortskip\abovedisplayshortskip
  \jot\z@
  \let\@listi\@listI} 

% $BKvHxCm!&;29MJ88%!&%-%c%W%7%g%s(B
\renewcommand{\small}{%
  \@setfontsize\small{8.62pt}{11pt}%
  \abovedisplayskip\z@
  \belowdisplayskip\abovedisplayskip
  \abovedisplayshortskip\z@
  \belowdisplayshortskip\z@
  \jot\z@
  \def\@listi{\leftmargin\leftmargini
              \topsep\z@
              \parsep\z@
              \itemsep\parsep}}

% $BDL>oIT;HMQ(B
\renewcommand{\footnotesize}{%
  \@setfontsize\footnotesize{7.54pt}{9.6pt}%
  \abovedisplayskip\z@
  \belowdisplayskip\abovedisplayskip
  \abovedisplayshortskip\z@
  \belowdisplayshortskip\z@
  \jot\z@
  \def\@listi{\leftmargin\leftmargini
              \topsep\z@
              \parsep\z@
              \itemsep\parsep}}

% $B>eIU$-J8;z!&2<IU$-J8;z(B
\renewcommand{\scriptsize}{\@setfontsize\scriptsize{4.85pt}{7pt}}

% $BDL>oL$;HMQ(B
\renewcommand{\tiny}{\@setfontsize\tiny{4.31pt}{6.46pt}}

% $BBg8+=P$7(B
\newcommand{\middlesize}{\@setfontsize\middlesize{10.23pt}{14.6pt}}

% $BOBJ8%5%V%?%$%H%k!&OBJ8Cx<TL>(B
\renewcommand{\large}{\@setfontsize\large{11.31pt}{16.1pt}}

% $B1Q8l%?%$%H%k!&%5%V%?%$%H%k(B
\renewcommand{\Large}{\@setfontsize\Large{12.93pt}{17.6pt}}

% $BOBJ8%?%$%H%k(B
\renewcommand{\LARGE}{\@setfontsize\LARGE{15.08pt}{19.6pt}}

% $BDL>oL$;HMQ(B
\renewcommand{\huge}{\@setfontsize\huge{17.23pt}{22.4pt}}

% $BDL>oL$;HMQ(B
\renewcommand{\Huge}{\@setfontsize\Huge{21.54pt}{28.0pt}}

% $BDL>oL$;HMQ(B
\renewcommand{\HUGE}{\@setfontsize\HUGE{25.85pt}{33.6pt}}

\normalsize

% ----------------------------------------------------------------------
% $B%l%$%"%&%H(B
% ----------------------------------------------------------------------
% 23$B;z!_(B40$B9T(B
% ----------------------------------------------------------------------
% $B>e2<M>Gr$H=D%5%$%:(B
\setlength{\topmargin}{19.6truemm}      % $B>e$NM>Gr$r(B45mm$B!J(B=1inch+19.6mm$B!K$K(B
% \setlength{\topmargin}{22.1truemm}      % $B>e$NM>Gr$r(B47.5mm$B!J(B=1inch+22.1mm$B!K$K(B
\addtolength{\topmargin}{-\headheight}  %
\addtolength{\topmargin}{-\headsep}     % $B%X%C%@$NJ,$@$1K\J8NN0h$r0\F0$5$;$k(B

% $B9T?t(B
\setlength{\textheight}{40\baselineskip}% $B3F%Z!<%8$N9T?t$O(B40$B9T(B  
% \addtolength{\textheight}{-90truemm}    % $B2<$NM>Gr$b(B45mm
% \addtolength{\textheight}{-95truemm}    % $B2<$NM>Gr$b(B47.5mm

% $B:81&M>Gr$H2#%5%$%:(B
\setlength{\textwidth}{\paperwidth}
\setlength{\oddsidemargin}{-1.4truemm}  % $B:8$NM>Gr$r(B24mm(=1inch-1.4mm)$B$K(B
\setlength{\evensidemargin}{-1.4truemm} %
\addtolength{\textwidth}{-48truemm}     % $B1&$NM>Gr$b(B24mm 

% $B:81&CJ$NI}(B
\setlength{\columnwidth}{23.1zw}        % $B3FCJ$NI}$O(B23$B;z(B

% $B:81&CJ$N4V3V(B
\setlength{\columnsep}{\textwidth}
\addtolength{\columnsep}{-2\columnwidth}% $BK\J8NN0h$NI}(B - $B:81&CJ$NI}(B

% ----------------------------------------------------------------------
% $B%?%$%H%k!&Cx<T!&MWLs(B
% ----------------------------------------------------------------------
% $B%?%$%H%kIt$N:81&%^!<%8%s(B
\newdimen\headermargin
\setlength{\headermargin}{\textwidth}
\addtolength{\headermargin}{-45zw}      % $B%?%$%H%kIt$NI}$r(B45$B;z$K(B
\divide\headermargin\tw@                % $BJRB&$N%^!<%8%s(B

% $B%?%$%H%kIt$HK\J8$N4V3V$ND4@0(B
\newdimen\adjustheader
\adjustheader\z@

% $BMW;]!&%-!<%o!<%I$NI8=`2~9TI}(B
\newskip\headerlineskip
\setlength{\headerlineskip}{12pt}

% $B%?%$%H%kIt$N=PNO(B
\renewcommand{\@maketitle}{%
  \newpage\null
\ifjass@lineno
  % $BK\J8$N9THV9f=PNO$H$N@\B3$N$?$a(B
  \logtheLineNumber
  % internal$B%b!<%I$G9THV9f=PNO(B
  \begin{internallinenumbers}
\fi
    \vskip\baselineskip
    % $B<oJL(B
    \noindent\textbf{\@papertype}\par
    \vskip\baselineskip
    \begin{list}{}{\leftmargin\headermargin
                   \rightmargin\leftmargin}\item\relax
      \let\footnote\thanks
      % $BOBJ8%?%$%H%k(B
      \centering{\LARGE\bfseries\@jtitle}\par
      % $BOBJ8%5%V%?%$%H%k(B
      \ifx\@jsubtitle\@empty\else
        \vskip 3.9pt
        \centering{\large\bfseries\@jsubtitle}\par
      \fi
      \vskip 7.9pt
      % $BOBJ8Cx<TL>!&=jB0(B
      \centering{%
        \@tempcnta\z@
        \@myfor\@au:=\@jauthor\@@\@af:=\@jaffiliation\do{%
          \ifnum\@tempcnta>\z@\textbf{$B!&(B}\fi
          \textbf{\large\@au}$B!J(B\@af$B!K(B%
          \advance\@tempcnta\@ne}}\par
      \vskip 13pt
      % $BOBJ8MW;](B
      \begin{list}{}{\baselineskip\headerlineskip
                     \leftmargin\z@
                     \rightmargin\z@
                     \listparindent 1zw}
        \item[]\hskip\listparindent\@jabstract
      \end{list}
      \vskip 11pt
      % $BOBJ8%-!<%o!<%I(B
      \begin{list}{}{\baselineskip\headerlineskip
                     \labelsep\z@
                     \settowidth{\labelwidth}{$B%-!<%o!<%I!'(B}%
                     \leftmargin\z@
                     \advance\leftmargin\labelwidth
                     \rightmargin\z@}
        \item[\textbf{$B%-!<%o!<%I!'(B}]\@jkeywords
      \end{list}
      \vskip 9.4pt
      % $B1Q8l%?%$%H%k(B
      \centering{\Large\bfseries\@etitle\ifx\@esubtitle\@empty\else:\fi}\par
      % $B1Q8l%5%V%?%$%H%k(B
      \ifx\@esubtitle\@empty\else
        \centering{\Large\bfseries\@esubtitle}\par
      \fi
      \vskip 6.9pt
      % $B1Q8lCx<TL>!&=jB0(B
      \centering{%
        \@tempcnta\z@
        \@myfor\@au:=\@eauthor\@@\@af:=\@eaffiliation\do{%
          \ifnum\@tempcnta>0 , \fi
          \textbf{\@au} (\@af)%
          \advance\@tempcnta\@ne}}\par
      \vskip 12pt
      % $B1Q8lMW;](B
      \begin{list}{}{\baselineskip\headerlineskip
                     \leftmargin\z@
                     \rightmargin\z@
                     \listparindent 5.6mm}
        \item[]\hskip\listparindent\@eabstract
      \end{list}
      \vskip 10pt
      % $B1Q8l%-!<%o!<%I(B
      \begin{list}{}{\baselineskip\headerlineskip
                     \labelsep\z@
                     \settowidth{\labelwidth}{\textbf{Key words}: }%
                     \leftmargin\z@
                     \advance\leftmargin\labelwidth
                     \rightmargin\z@}
        \item[\textbf{Key words: }]\@ekeywords
      \end{list}
    \end{list}
    \vskip 22pt
    \vskip\baselineskip
    \vskip\adjustheader
\ifjass@lineno
    % pagewise$B%b!<%I$N9THV9f=PNO$H$N@\B3$N$?$a(B
    \global\c@pagewiselinenumber=\the\c@linenumber
    \global\advance\c@pagewiselinenumber\m@ne
  \end{internallinenumbers}
\fi}

% $BCx<TL>!J=jB0!K$N@8@.(B
\renewcommand{\and}{\noexpand\and}

\long\def\@myfornoop#1\@@#2#3\@@#4#5{}
\long\def\@myfor#1:=#2\@@#3:=#4\do#5{%
  \expandafter\def\expandafter\@fortmpa\expandafter{#2}%
  \expandafter\def\expandafter\@fortmpb\expandafter{#4}%
  \ifx\@fortmpa\@empty
    \ifx\@fortmpb\@empty\else
      \errmessage{Author list length isn't matched with affiliation list length}%
    \fi
  \else
    \ifx\@fortmpb\@empty
      \errmessage{Author list length isn't matched with affiliation list length}%
    \else
      \expandafter\expandafter\expandafter\@myforloop\expandafter#2\expandafter\and\expandafter\@nil\expandafter\and\expandafter\@nil\expandafter\@@\expandafter#1#4\and\@nil\and\@nil\@@#3{#5}%
    \fi
  \fi}
\long\def\@myforloop#1\and#2\@@#3#4\and#5\@@#6#7{%
  \def#3{#1}\def#6{#4}%
  \ifx#3\@nnil
    \expandafter\@myfornoop
  \else
    #7\relax\expandafter\@myforloop
  \fi#2\@@#3#5\@@#6{#7}}

% $B3F<o@k8@(B
\newcommand{\papertype}[1]{\gdef\@papertype{#1}}

\newcommand{\jtitle}[1]{\gdef\@jtitle{#1}}
\newcommand{\jsubtitle}[1]{\gdef\@jsubtitle{#1}}
\newcommand{\jauthor}[1]{\gdef\@jauthor{#1}}
\newcommand{\jaffiliation}[1]{\gdef\@jaffiliation{#1}}
\newcommand{\jabstract}[1]{\long\gdef\@jabstract{#1}}
\newcommand{\jkeywords}[1]{\gdef\@jkeywords{#1}}

\newcommand{\etitle}[1]{\gdef\@etitle{#1}}
\newcommand{\esubtitle}[1]{\gdef\@esubtitle{#1}}
\newcommand{\eauthor}[1]{\gdef\@eauthor{#1}}
\newcommand{\eaffiliation}[1]{\gdef\@eaffiliation{#1}}
\newcommand{\eabstract}[1]{\long\gdef\@eabstract{#1}}
\newcommand{\ekeywords}[1]{\gdef\@ekeywords{#1}}

\let\@papertype\@empty

\let\@jtitle\@empty
\let\@jsubtitle\@empty
\let\@jauthor\@empty
\let\@jaffiliation\@empty
\let\@jabstract\@empty
\let\@jkeywords\@empty

\let\@etitle\@empty
\let\@esubtitle\@empty
\let\@eauthor\@empty
\let\@eaffiliation\@empty
\let\@eabstract\@empty
\let\@ekeywords\@empty

% ----------------------------------------------------------------------
% $B8+=P$7(B
% ----------------------------------------------------------------------
% $BBg8+=P$7$NKvHx$K%T%j%*%I(B
\renewcommand{\postsectionname}{.}

% $B8+=P$7$N>e2<$N6uGr(B: $BBg8+=P$7$N$_>e2<$K(B0.5$B9T$N6uGr(B
\renewcommand{\section}{%
  \@startsection{section}{1}{\z@}%
    {.5\baselineskip}{.5\baselineskip}%
    {\normalfont\middlesize\headfont\raggedright}}
\renewcommand{\subsection}{%
  \@startsection{subsection}{2}{\z@}%
    {\z@}{\z@}%
    {\normalfont\normalsize\headfont}}
\renewcommand{\subsubsection}{%
  \@startsection{subsubsection}{3}{\z@}%
    {\z@}{\z@}%
    {\normalfont\normalsize\headfont}}
\renewcommand{\paragraph}{%
  \@startsection{paragraph}{4}{\z@}%
    {\z@}{-1zw}% $B2~9T$;$:(B1$B;z$N6u$-(B
    {\normalfont\normalsize\headfont}}

% $B8+=P$7D>8e$NK\J8$,(B1$B9T$@$1$G$b2~%Z!<%8$9$k(B
\renewcommand{\@afterheading}{%
  \@nobreaktrue
  \everypar{%
    \if@nobreak
      \@nobreakfalse
      \clubpenalty\z@
      \if@afterindent\else{\setbox\z@\lastbox}\fi
    \else
      \clubpenalty\@clubpenalty
      \everypar{\everyparhook}%
    \fi
    \everyparhook}}

% ----------------------------------------------------------------------
% $B2U>r=q$-(B
% ----------------------------------------------------------------------
% $B2U>r=q$-$N>e2<$N6uGr(B: $B$J$7(B
\renewcommand{\@listi}{%
  \leftmargin\leftmargini
  \topsep\z@
  \parsep\z@
  \itemsep\z@}
\let\@listI\@listi
\@listi
\renewcommand{\@listii}{%
  \leftmargin\leftmarginii
  \labelwidth\leftmarginii \advance\labelwidth-\labelsep
  \topsep\z@
  \parsep\z@
  \itemsep\z@}
\renewcommand{\@listiii}{%
  \leftmargin\leftmarginiii
  \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
  \topsep\z@
  \parsep\z@
  \itemsep\z@}
\renewcommand{\@listiv}{%
  \leftmargin\leftmarginiv
  \labelwidth\leftmarginiv \advance\labelwidth-\labelsep
  \topsep\z@
  \parsep\z@
  \itemsep\z@}

% $B;z2<$2(B: 2$B;z(B
\setlength{\leftmargini}{2zw}
\setlength{\leftmarginii}{2zw}
\setlength{\leftmarginiii}{2zw}
\setlength{\leftmarginiv}{2zw}

% description $B$O(B2$B;zB?$/;z2<$2(B
\renewenvironment{description}{%
  \list{}{\advance\leftmargin 2zw
          \labelwidth\leftmargin
          \labelsep 1zw
          \advance\labelwidth -\labelsep
          \let\makelabel\descriptionlabel}}{%
  \endlist}
\renewcommand{\descriptionlabel}[1]{\normalfont\headfont\hfil #1}

% ----------------------------------------------------------------------
% $B0zMQ$[$+(B
% ----------------------------------------------------------------------
% $B0zMQ$N>e2<$N6uGr(B: 1$B9T(B
\renewenvironment{quotation}{%
  \list{}{\topsep\baselineskip
          \listparindent\parindent
          \itemindent\listparindent
          \rightmargin\leftmargin}%
    \item\relax}{%
  \endlist}
\renewenvironment{quote}{%
  \list{}{\topsep\baselineskip
          \rightmargin\leftmargin}
    \item\relax}{%
  \endlist}

% verbatim $B4D6-$N>e2<$N6uGr(B: 1$B9T(B
\let\jass@@verbatim\@verbatim
\renewcommand{\@verbatim}{\topsep\baselineskip\jass@@verbatim}

% center/flushleft/flushright $B4D6-$N>e2<$N6uGr(B: 1$B9T(B
\topsep\baselineskip

% ----------------------------------------------------------------------
% $B?t<0(B
% ----------------------------------------------------------------------
% $B?t<0$N>e2<$N6uGr(B: 0.5$B9T(B
% $B;z2<$2(B: $B:84s$;(B(leqno)$B$r;HMQ$7$?>l9g$O(B2$B;z(B
\abovedisplayskip .5\baselineskip
\belowdisplayskip\abovedisplayskip
\abovedisplayshortskip .5\baselineskip
\belowdisplayshortskip\abovedisplayshortskip
\jot\z@
\@ifundefined{mathindent}{}{\mathindent\leftmargini}

% $B:84s$;;~$N>e2<$N6uGr(B
\@ifundefined{mathindent}{}{%
  \let\jass@equation\equation
  \let\jass@eqnarray\eqnarray
  \renewcommand{\equation}{%
    \topsep .5\baselineskip
    \jass@equation}%
  \renewcommand{\eqnarray}{%
    \topsep .5\baselineskip
    \jass@eqnarray}}

% ----------------------------------------------------------------------
% $B?^!&I=(B
% ----------------------------------------------------------------------
% $B%-%c%W%7%g%s$N@_Dj(B
\RequirePackage[style=default]{caption}
\DeclareCaptionLabelSeparator{jspace}{$B!!(B}
\captionsetup{format=hang,labelsep=jspace,font={small,bf},tableposition=top}

% $BI=$N5SCm(B
\RequirePackage{threeparttable}

% $B%-%c%W%7%g%s$N:GDcI}(B
\renewcommand{\TPTminimum}{.5\columnwidth}

% $B?^!&I=$N>e2<$N6uGr(B
\setlength{\floatsep}{\baselineskip}
\setlength{\textfloatsep}{\baselineskip}
\setlength{\intextsep}{\baselineskip}
\setlength{\dblfloatsep}{\baselineskip}
\setlength{\dbltextfloatsep}{\baselineskip}

% $BI=$N9T9b$5(B
% $B%;%kFb$N>e2<M>Gr$O3F(B1.4mm$B!#9g$o$;$F(B
%   1.4 * 2 / (25.4 / 72.27) = 7.967 pt
% $B$3$l$O(B\small$B$N9TAw$j$G$"$k(B11pt$B$N(B
%   7.967 / 11 = 0.724$BG\(B
% \newcommand{\jass@arraystretch}{1.724}
% $B$,!"<B:]$N0u:~J*$G$ODL>o$N9TAw$j$N$h$&$@!#(B
\newcommand{\jass@arraystretch}{1.0}

% $BI=$N%;%k4VM>Gr(B
% $B%;%kFb$N:81&M>Gr$O3F(B1.4mm$B!#(B
\newdimen\jass@tabcolsep
\setlength{\jass@tabcolsep}{1.4truemm}
\addtolength{\jass@tabcolsep}{-.5\arrayrulewidth}

% $B?^!&I=$N:FDj5A(B
\let\jass@@xfloat\@xfloat
\def\@xfloat#1[#2]{%
  \jass@@xfloat{#1}[#2]%
  \jass@reserved}
\def\@xdblfloat#1[#2]{%
  \jass@@xfloat{#1}[#2]%
  \hsize\textwidth
  \linewidth\textwidth
  \jass@reserved}

% small$B%U%)%s%H!"Cf1{4s$;(B
\renewenvironment{figure}{%
  \def\jass@reserved{\small\centering}\@float{figure}}{%
  \end@float}
\renewenvironment{figure*}{%
  \def\jass@reserved{\small\centering}\@dblfloat{figure}}{%
  \end@dblfloat}
\renewenvironment{table}{%
  \def\jass@reserved{%
    \renewcommand{\arraystretch}{\jass@arraystretch}%
    \setlength{\tabcolsep}{\jass@tabcolsep}%
    \small\centering
    \begin{threeparttable}}%
  \@float{table}}{%
    \end{threeparttable}
  \end@float}
\renewenvironment{table*}{%
  \def\jass@reserved{%
    \renewcommand{\arraystretch}{\jass@arraystretch}%
    \setlength{\tabcolsep}{\jass@tabcolsep}%
    \small\centering
    \begin{threeparttable}}%
  \@dblfloat{table}}{%
    \end{threeparttable}
  \end@dblfloat}

% $B?^!&I=$N9b$5$r9TAw$j$N@0?tG\$K(B
% $B;29M(B: jcss.sty
\newdimen\jass@floatheight
\newcount\jass@floatlinecount

\renewcommand{\end@float}{%
  \@endfloatbox
  % $B?^!&I=$N9b$5$N7W;;(B
  \jass@floatheight=\ht\@currbox
  \advance\jass@floatheight \dp\@currbox
  \normalsize
  \divide\jass@floatheight\baselineskip 
  \jass@floatlinecount\jass@floatheight
  \advance\jass@floatlinecount\@ne
  \jass@floatheight\jass@floatlinecount\baselineskip
  \global\setbox\@currbox\vbox to\jass@floatheight{\vfil\copy\@currbox\vfil}%
  % $B$3$3$^$G(B
  \ifnum\@floatpenalty<\z@
    \@largefloatcheck
    \@cons\@currlist\@currbox
    \ifnum\@floatpenalty<-\@Mii
      \penalty -\@Miv
      \@tempdima\prevdepth
      \vbox{}%
      \prevdepth\@tempdima
      \penalty\@floatpenalty
    \else
      \vadjust{\penalty -\@Miv \vbox{}\penalty\@floatpenalty}\@Esphack
    \fi
  \fi}
\renewcommand{\end@dblfloat}{%
  \@endfloatbox
  % $B?^!&I=$N9b$5$N7W;;(B
  \jass@floatheight=\ht\@currbox
  \advance\jass@floatheight \dp\@currbox
  \normalsize
  \divide\jass@floatheight\baselineskip 
  \jass@floatlinecount\jass@floatheight
  \advance\jass@floatlinecount\@ne
  \jass@floatheight\jass@floatlinecount\baselineskip
  \global\setbox\@currbox\vbox to\jass@floatheight{\vfil\copy\@currbox\vfil}%
  % $B$3$3$^$G(B
  \ifnum\@floatpenalty <\z@
    \@largefloatcheck
    \global\dp\@currbox1sp %
    \@cons\@currlist\@currbox
    \ifnum\@floatpenalty <-\@Mii
      \penalty -\@Miv
      \@tempdima\prevdepth
      \vbox{}%
      \prevdepth\@tempdima
      \penalty\@floatpenalty
    \else
      \vadjust{\penalty -\@Miv \vbox{}\penalty\@floatpenalty}\@Esphack
    \fi
  \fi}

% ----------------------------------------------------------------------
% $BIU5-!&<U<-(B
% ----------------------------------------------------------------------
% $BIU5-!&<U<-$N8+=P$7(B
\newcommand{\epilegomenon}{\section*{\centerline{$BIU!!5-(B}}}
\newcommand{\acknowledgement}{\section*{\centerline{$B<U!!<-(B}}}

% ----------------------------------------------------------------------
% $BCm(B
% ----------------------------------------------------------------------
% $B5SCm$rKvHxCm$K(B
\RequirePackage{endnotes}

\let\footnote\endnote

% $B9THV9f$,M>J,$K?6$i$l$k$N$r=$@5(B
\renewcommand{\enoteheading}{\section*{\notesname}}

% $BCm$N8+=P$7(B
\renewcommand{\notesname}{\centerline{\small $BCm(B}}

% $B=q<0$NDj5A(B
\renewcommand{\enotesize}{\small}
\renewcommand{\makeenmark}{\hbox{\textsuperscript{\normalfont\scriptsize\theenmark)}}}
\renewcommand{\enoteformat}{%
  \leftskip\leftmargini
  \parindent\z@
  \leavevmode\llap{\makebox[\leftskip]{\theenmark)\hss}}}

% ----------------------------------------------------------------------
% $B;29MJ88%(B
% ----------------------------------------------------------------------
\RequirePackage{natbib}
\RequirePackage{url}

% $B0zMQ%9%?%$%k(B: Chicago
\bibstyle{chicago}

% $B;29MJ88%$N8+=P$7(B
\renewcommand{\refname}{\centerline{\small $B!Z;29MJ88%![(B}}

% $B%U%)%s%H%5%$%:(B: \small
\renewcommand{\bibfont}{\small}

% $B;z2<$2(B: 2$B;z(B
\setlength{\bibhang}{2zw}

% $BKvHx$NDI2C%F%-%9%H$NA0$KCV$/J8;z(B
\setcitestyle{notesep={:}}

% ----------------------------------------------------------------------
% $B<uIU!&=$@5HG<uIU!&7G:\7hDjF|(B
% ----------------------------------------------------------------------
\newcommand{\received}[1]{\gdef\@received{#1}}
\newcommand{\revised}[1]{\gdef\@revised{#1}}
\newcommand{\accepted}[1]{\gdef\@accepted{#1}}

\newcommand{\@received}{}
\newcommand{\@revised}{}
\newcommand{\@accepted}{}

% $B<uIUEy$N=PNO(B
\newcommand{\makeendmatter}{%
  \par\null
  % \vskip 11pt
  \begin{list}{}{\leftmargin 7zw
                 \rightmargin\z@}
    \item[]$B!J(B\@received $B<uIU!K(B\\
           \ifx\@revised\@empty\else$B!J(B\@revised $B=$@5HG<uIU!K(B\fi\\
           $B!J(B\@accepted $B7G:\7hDj!K(B
  \end{list}}

% ----------------------------------------------------------------------
% $B:G=*%Z!<%8$N:81&CJ$N9b$5B7$((B
% ----------------------------------------------------------------------
\RequirePackage[keeplastbox]{flushend}

% ----------------------------------------------------------------------
\endinput
