% 卒業論文用 class file
% 
% jbook.sty 18-Dec-88 & jbk12.sty 18 Dec 88 modified.
%
% Do NOT use options 10pt, 11pt, a4j, and twoside.
%
% Do NOT use package color.
%
\NeedsTeXFormat{pLaTeX2e}
\ProvidesClass{gnct2}
  [2023/02/15 v2.1 GNCT pLaTeX class]

\def\@ptsize{2}
\@twosidefalse \@mparswitchfalse
\def\ds@twoside{\@twosidetrue \@mparswitchtrue}\def\ds@draft{\overfullrule 5pt} 
\@options

%
% "a4j" document style option.
%
\topmargin1.4mm% -2mm%0.4mm
\textheight252mm% 250mm%247mm
\oddsidemargin3.2mm% 19.6mm%27mm
\evensidemargin3.2mm% 19.6mm%27mm

% begin original part 1
\prebreakpenalty`）=8000
\postbreakpenalty`（=8000
\prebreakpenalty`｝=8000
\postbreakpenalty`｛=8000
\prebreakpenalty`］=8000
\postbreakpenalty`［=8000
\postbreakpenalty`‘=8000
\prebreakpenalty`’=8000

\newdimen\gnctbaseline
\baselineskip \textheight
\gnctbaseline 10\baselineskip
\divide\gnctbaseline by 301\relax

%
%長さを数値に変換
%
{\catcode`\p=12\catcode`\t=12\gdef\@@Eval#1pt{#1}}
\def\@Eval#1#2{\edef#2{\expandafter\@@Eval\the#1}}
\@Eval\gnctbaseline\gbline

\textheight 30.1\gnctbaseline
\topskip\gnctbaseline% not change for \@makechapterhead.
\baselineskip\gnctbaseline% \message{gnctbaseline = \the\gnctbaseline}

\newdimen\difheadsep
\difheadsep=14.3008pt% \gnctbaseline - \ht\hbox{あ}
\advance\difheadsep -1.66626pt\relax% -\dp\hbox{あ}
\advance\topmargin -\difheadsep
%\advance\topskip -\difheadsep
% end original part 1

% begin of jbk12.sty modified
\lineskip \gnctbaseline\relax \normallineskip \gnctbaseline\relax \jot\z@ \lineskiplimit \z@
\def\baselinestretch{1}

%
% jbk12.clo 用に変更
%
%\def\@normalsize{\@setsize\normalsize{\gnctbaseline}\xiipt\@xiipt
%\abovedisplayskip \z@ \belowdisplayskip \abovedisplayskip
%\abovedisplayshortskip \z@ \belowdisplayshortskip \z@
%\let\@listi\@listI} 
%\def\small{\@setsize\small{13.6pt}\xipt\@xipt
%\abovedisplayskip \z@ \belowdisplayskip \abovedisplayskip
%\abovedisplayshortskip \z@ \belowdisplayshortskip \z@
%\def\@listi{\leftmargin\leftmargini \parsep \z@
% \itemsep \parsep
% \topsep \z@}}
%\def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt
%\abovedisplayskip \z@\belowdisplayskip \abovedisplayskip
%\abovedisplayshortskip \z@ \belowdisplayshortskip \z@
%\def\@listi{\leftmargin\leftmargini \topsep \z@ parsep \z@
%\itemsep \parsep}}
%\def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
%\def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
%\def\large{\@setsize\large{\gnctbaseline}\xivpt\@xivpt}
%\def\Large{\@setsize\Large{\gnctbaseline}\xviipt\@xviipt}
%\def\LARGE{\@setsize\LARGE{\gnctbaseline}\xxpt\@xxpt}
%\def\huge{\@setsize\huge{\gnctbaseline}\xxvpt\@xxvpt}
%\let\Huge=\huge
%\normalsize 
%

%
% jbk12.clo pLaTeX2e 1997/09/03 (jbook.cls size option)
%

\renewcommand{\normalsize}{%
    \@setfontsize\normalsize\@xiipt\gbline%
  \abovedisplayskip \z@
  \abovedisplayshortskip \z@
  \belowdisplayshortskip \z@
   \belowdisplayskip \abovedisplayskip
   \let\@listi\@listI}
\normalsize
\newcommand{\small}{%
  \@setfontsize\small\@xipt{13.6}%
  \abovedisplayskip \z@
  \abovedisplayshortskip \z@
  \belowdisplayshortskip \z@
  \def\@listi{\leftmargin\leftmargini
              \topsep \z@
              \parsep \z@
              \itemsep \parsep}%
  \belowdisplayskip \abovedisplayskip}
\newcommand{\footnotesize}{%
  \@setfontsize\footnotesize\@xpt\@xiipt
  \abovedisplayskip \z@
  \abovedisplayshortskip \z@
  \belowdisplayshortskip \z@
  \def\@listi{\leftmargin\leftmargini
              \topsep \z@
              \parsep \z@
              \itemsep \parsep}%
  \belowdisplayskip \abovedisplayskip}
\newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
\newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
\newcommand{\large}{\@setfontsize\large\@xivpt\gbline}
\newcommand{\Large}{\@setfontsize\Large\@xviipt\gbline}
\newcommand{\LARGE}{\@setfontsize\LARGE\@xxpt\gbline}
\newcommand{\huge}{\@setfontsize\huge\@xxvpt\gbline}
\let\Huge=\huge
% end jbk12.clo

% begin original part 2
\newdimen\gnctskip
\gnctskip 1zw
\textwidth 39\gnctskip% 36\gnctskip
\parindent \gnctskip

% end original part 2


\marginparwidth 1in \marginparsep 7pt 
\headheight 0pt \headsep 0pt
%不要\footheight 12pt 
\footskip 10mm

\columnsep 10pt \columnseprule 0pt 

\footnotesep 8.4pt 
\skip\footins 10.8pt plus 4pt minus 2pt 
\floatsep \z@ \textfloatsep \z@
\intextsep \z@
%不要\@maxsep \z@
\dblfloatsep \z@ \dbltextfloatsep \z@
%不要\@dblmaxsep \z@
\@fptop 0pt plus 1fil \@fpsep 10pt plus 2fil \@fpbot 0pt plus 1fil 
\@dblfptop 0pt plus 1fil \@dblfpsep 10pt plus 2fil \@dblfpbot 0pt plus 1fil
\marginparpush 0pt 

\topsep 0pt
\parskip 0pt\partopsep 0pt
\itemsep 0pt
\@lowpenalty 51 \@medpenalty 151 \@highpenalty 301 
\@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty
-\@lowpenalty 


\def\@makechapterhead#1{ \vbox to 2\gnctbaseline{\vfil \vspace*{\difheadsep}%
 \parindent 0pt \raggedright 
 \ifnum \c@secnumdepth >\m@ne \Large\bf \@chapapp{\thechapter} \quad%
 \fi \Large \bf #1\par \vfil} 
 \nobreak} 

\def\@makeschapterhead#1{ \vbox to 2\gnctbaseline{\vfil \vspace*{\difheadsep}%
 \parindent 0pt \raggedright 
 \Large \bf #1\par \vfil}
 \nobreak}

\def\chapter{\clearpage \global\@topnum\z@
\@afterindenttrue \secdef\@chapter\@schapter} 
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
 \refstepcounter{chapter}
 \typeout{\@chapapp{\thechapter}\space.}
 \addcontentsline{toc}{chapter}{\protect
 \numberline{\@chapapp{\thechapter}}#1}\else
 \addcontentsline{toc}{chapter}{#1}\fi
 \chaptermark{#1}
 \addtocontents{lof}{\protect\addvspace{10pt}}
\addtocontents{lot}{\protect\addvspace{10pt}} \if@twocolumn
\@topnewpage[\@makechapterhead{#2}] 
 \else \@makechapterhead{#2}
 \@afterheading \fi} 
\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
 \else \@makeschapterhead{#1} 
 \@afterheading\fi}

\def\section{\@startsection{section}{1}{0pt}{\gnctbaseline}%
{1sp}{\large\bf}}
\def\subsection{\@startsection{subsection}{2}{0pt}{\gnctbaseline}% 
{1sp}{\large\bf}}
\def\subsubsection{\@startsection{subsubsection}{3}{0pt}{\gnctbaseline}%
{1sp}{\large\bf}}
\def\paragraph{\@startsection{paragraph}{4}{0pt}{\z@}{1sp}{\normalsize\bf}}
\def\subparagraph{\@startsection{subparagraph}{4}{0pt}{\z@}{1sp}{\normalsize\bf}}

\def\chaptermark#1{}

\setcounter{secnumdepth}{2}

\def\preface{%
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \pagenumbering{roman}
 \def\thefigure{\@arabic\c@figure}
 \def\thetable{\@arabic\c@table}
}
\def\body{\newpage
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \pagenumbering{arabic}
 \def\thefigure{\thechapter.\@arabic\c@figure}
 \def\thetable{\thechapter.\@arabic\c@table}
}
\def\appendix{\par
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \def\@chapapp{付録}
 \def\thechapter{\Alph{chapter}}}


\leftmargini 3\gnctskip
\leftmarginii 2\gnctskip
\leftmarginiii 2\gnctskip
\leftmarginiv 2\gnctskip
\leftmarginv \gnctskip
\leftmarginvi \gnctskip
\leftmargin\leftmargini
\labelwidth\leftmargini\advance\labelwidth-\labelsep
\labelsep .5em
\def\@listI{\leftmargin\leftmargini %
  \parsep \z@ \topsep \z@
  \itemsep \z@
  \labelsep 0.75\gnctskip \labelwidth 0.25\gnctskip}
\let\@listi\@listI
\@listi 
\def\@listii{\leftmargin\leftmarginii
 \labelwidth 0.25\gnctskip \labelsep 0.75\gnctskip
 \topsep \z@
 \parsep \z@
 \itemsep \z@}
\def\@listiii{\leftmargin\leftmarginiii
 \labelwidth 0.25\gnctskip \labelsep 0.75\gnctskip
 \topsep \z@
 \parsep \z@ \partopsep \z@
 \itemsep \z@}
\def\@listiv{\leftmargin\leftmarginiv
 \labelwidth 0.25\gnctskip \labelsep0.75\gnctskip}
\def\@listv{\leftmargin\leftmarginv
 \labelwidth 0pt \labelsep 0.75\gnctskip}
\def\@listvi{\leftmargin\leftmarginvi
 \labelwidth 0pt \labelsep 0.75\gnctskip}

% end of jbk12.sty modified.


\def\labelenumi{\theenumi.} 
\def\theenumi{\arabic{enumi}} 
\def\labelenumii{(\theenumii)}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\theenumiii.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\theenumiv.}
\def\theenumiv{\Alph{enumiv}} 
\def\p@enumiv{\p@enumiii\theenumiii}

\def\labelitemi{$\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}

\def\verse{\let\\=\@centercr 
 \list{}{\itemsep\z@ \itemindent -2\gnctskip\listparindent \itemindent 
 \rightmargin\leftmargin\advance\leftmargin 2\gnctskip}\item[]}
\let\endverse\endlist
\def\quotation{\list{}{\listparindent 1\gnctskip
 \itemindent\listparindent
 \rightmargin\leftmargin}\item[]}
\let\endquotation=\endlist
\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist

\def\descriptionlabel#1{%
 \setbox0 \hbox{\bf #1}%
 \dimen0 \wd0 \dimen1 \gnctskip
 \divide \dimen0 by \dimen1
 \multiply \dimen0 by \dimen1
 \ifdim \dimen0<\wd0 \advance \dimen0 \dimen1 \fi
 \hbox to \dimen0{\box0 \hfil}\hfil}
\def\description{\list{}{\labelwidth\leftmargin
 \labelsep \gnctskip
 \advance \labelwidth -\labelsep
 \let\makelabel\descriptionlabel}}
\let\enddescription\endlist


\def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \else \newpage \fi \thispagestyle{empty}\c@page\z@}
\def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi}

\arraycolsep 5pt \tabcolsep 6pt \arrayrulewidth .4pt \doublerulesep 2pt 
\tabbingsep \labelsep 
\skip\@mpfootins = \skip\footins
\fboxsep = 3pt \fboxrule = .4pt 

\newcounter{part}
\newcounter{chapter}
\newcounter{section}[chapter]
\newcounter{subsection}[section]
\newcounter{subsubsection}[subsection]
\newcounter{paragraph}[subsubsection]
\newcounter{subparagraph}[paragraph]

\def\thepart{\Roman{part}}
\def\thechapter{\arabic{chapter}}
\def\thesection{\thechapter.\arabic{section}}
\def\thesubsection{\thesection.\arabic{subsection}}
\def\thesubsubsection{\thesubsection .\arabic{subsubsection}}
\def\theparagraph{\thesubsubsection.\arabic{paragraph}}
\def\thesubparagraph{\theparagraph.\arabic{subparagraph}}
\def\@chapapp#1{第#1章}

\def\part{\cleardoublepage \if@twocolumn \onecolumn
\@tempswatrue \else \@tempswafalse \fi \hbox{}\vfil \secdef\@part\@spart} 

\def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax \refstepcounter{part}
\addcontentsline{toc}{part}{\thepart \hspace{1em}#1}\else
\addcontentsline{toc}{part}{#1}\fi \markboth{}{}
 {\centering \ifnum \c@secnumdepth >-2\relax \huge\bf Part \thepart \par
\vskip 20pt \fi \Huge \bf #1\par}\@endpart} 
\def\@endpart{\vfil\newpage \if@twoside \hbox{} \thispagestyle{empty} 
 \newpage 
 \fi \if@tempswa \twocolumn \fi} 
\def\@spart#1{{\centering \Huge \bf #1\par}\@endpart}

\def\@pnumwidth{1.55em}
\def\@tocrmarg{2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{2}

\def\tableofcontents{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \fi\chapter*{目 次\@mkboth{目 次}{目 次}}
 \@starttoc{toc}\if@restonecol\twocolumn\fi}
\def\l@part#1#2{\addpenalty{-\@highpenalty}
 \addvspace{\gnctbaseline} \begingroup
 \@tempdima 3em \parindent \z@ \rightskip \@pnumwidth \parfillskip
-\@pnumwidth 
 {\large \bf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
 \nobreak \endgroup}

\def\l@chapter#1#2{\pagebreak[3] 
%\vskip 1.0em plus 1pt 
 \@tempdima 1.5em \advance\@tempdima 2\gnctskip \begingroup
 \parindent \z@ \rightskip \@pnumwidth 
 \parfillskip -\@pnumwidth 
 \bf \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\hfil
\nobreak\hbox to\@pnumwidth{\hss #2}\par
 \endgroup}
\def\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
\def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
\def\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
\def\l@paragraph{\@dottedtocline{4}{10em}{5em}}
\def\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \fi\chapter*{図 目 次\@mkboth
 {図 目 次}{図 目 次}}\@starttoc{lof}\if@restonecol
 \twocolumn\fi}
\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \fi\chapter*{表 目 次\@mkboth
 {表 目 次}{表 目 次}}\@starttoc{lot}\if@restonecol
 \twocolumn\fi}
\let\l@table\l@figure


\def\thebibliography#1{\chapter*{参考文献}%
 \addcontentsline{toc}{chapter}{参考文献}%
 \list
 {\arabic{enumi})}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
%\def\newblock{\hskip .11em plus .33em minus .07em}
 \def\newblock{}
 \sloppy
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist

%% from "CITESORT.STY", with a little modified
\newcount\@minsofar
\newcount\@min
\newcount\@cite@temp
\def\@citex[#1]#2{%
\if@filesw \immediate \write \@auxout {\string \citation {#2}}\fi
\@tempcntb\m@ne \def\@citea{}\let\@h@ld\relax 
\@min\m@ne%
\@cite{%
  \@for \@citeb:=#2\do {\@ifundefined {b@\@citeb}%
    {\@citea\@tempcntb\m@ne{\bf ?}%
    \@warning {Citation `\@citeb ' on page \thepage \space undefined}}%
{\@minsofar\z@ \@for \@scan@cites:=#2\do {%
  \@ifundefined{b@\@scan@cites}%
    {\@cite@temp\m@ne}
    {\@cite@temp\number\csname b@\@scan@cites \endcsname \relax}%
\ifnum\@cite@temp > \@min% select the next one to list
    \ifnum\@minsofar = \z@
      \@minsofar\number\@cite@temp
      \edef\@scan@copy{\@scan@cites}\else
    \ifnum\@cite@temp < \@minsofar
      \@minsofar\number\@cite@temp
      \edef\@scan@copy{\@scan@cites}\fi\fi\fi}\@tempcnta\@min
  \ifnum\@minsofar > \z@ % some more
    \advance\@tempcnta\@ne
    \@min\@minsofar
    \@citea\csname b@\@scan@copy\endcsname
  \fi}%
\def\@citea{),\penalty\@m\,}}}{#1}}
%% end of CITESORT.STY

%% from "CITE.STY", with a little modified
\def\@cite#1#2{\leavevmode\unskip
  \ifnum\lastpenalty=\z@\penalty\@highpenalty\fi% highpenalty before
  $^{\hbox{\scriptsize {\multiply\@highpenalty 3 #1%             % triple-highpenalties within
      \if@tempswa,\penalty\@highpenalty\ #2\fi % and before note.
    })}}$\spacefactor\@m}
%% end of CITE.STY

\newif\if@restonecol
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
\columnseprule \z@
\columnsep 35pt\twocolumn[\@makeschapterhead{索 引}]
 \@mkboth{索 引}{索 引}\thispagestyle{plain}\parindent\z@
 \parskip\z@ plus .3pt\relax\let\item\@idxitem}
\def\@idxitem{\par\hangindent 40pt}
\def\subitem{\par\hangindent 40pt \hspace*{20pt}}
\def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
\def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}

\def\footnoterule{\kern-3\p@ 
 \hrule width .4\columnwidth 
 \kern 2.6\p@} 
\@addtoreset{footnote}{chapter} 
\long\def\@makefntext#1{\parindent 1em\noindent 
 \hbox to 1.8em{\hss$^{\@thefnmark}$}#1}


\setcounter{topnumber}{4}
\def\topfraction{.9}
\setcounter{bottomnumber}{1}
\def\bottomfraction{.3}
\setcounter{totalnumber}{8}
\def\textfraction{.1}
\def\floatpagefraction{.9}
\setcounter{dbltopnumber}{4}
\def\dbltopfraction{.9}
\def\dblfloatpagefraction{.9}

\long\def\@makecaption#1#2{
 \vskip 10pt 
 \setbox\@tempboxa\hbox{#1\quad #2}
 \ifdim \wd\@tempboxa >\hsize \unhbox\@tempboxa\par \else \hbox
to\hsize{\hfil\box\@tempboxa\hfil} 
 \fi}

\newcounter{figure}[chapter]
\def\thefigure{\thechapter.\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{Figure~\thefigure}
\def\figure{\@float{figure}}
\def\endfigure{\end@float}
\@namedef{figure*}{\@dblfloat{figure}}
\@namedef{endfigure*}{\end@dblfloat}
\newcounter{table}[chapter]
\def\thetable{\thechapter.\@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{Table~\thetable}
\def\table{\@float{table}}
\def\endtable{\end@float}
\@namedef{table*}{\@dblfloat{table}}
\@namedef{endtable*}{\end@dblfloat}

\def\maketitle{\begin{titlepage}
 \let\footnotesize\small \let\footnoterule\relax \setcounter{page}{0}
 \null
 \vfil
 \vskip 60pt \begin{center}
 {\LARGE \@title \par} \vskip 3em {\large \lineskip .75em
 \begin{tabular}[t]{c}\@author 
 \end{tabular}\par} 
 \vskip 1.5em {\large \@date \par} \end{center} \par
\@thanks
\vfil
\null
\end{titlepage}
\setcounter{footnote}{0} \let\thanks\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\maketitle\relax} 

\def\abstract{\clearpage \vbox to 2\gnctbaseline{\vfil \vspace*{\difheadsep}%
    \begin{center}
      {\Large\bf Abstract}
    \end{center}
    \vfil}
  \addcontentsline{toc}{chapter}{Abstract}}
  %\addtocontents{toc}{\protect\contentsline{chapter}{Abstract}{}\%}}

\mark{{}{}} 

\def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\rm \thepage\hfil \sl
\leftmark}\def\@oddhead{\hbox{}\sl \rightmark \hfil
\rm\thepage}\def\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
>\m@ne
 \@chapapp\ \thechapter. \ \fi ##1}}{}}\def\sectionmark##1{\markright
{\uppercase{\ifnum \c@secnumdepth >\z@
 \thesection. \ \fi ##1}}}}
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{\hbox{}\sl\rightmark \hfil
\rm\thepage}\def\@oddfoot{}\def\@evenhead{\rm \thepage\hfil\sl\leftmark\hbox
{}}\def\@evenfoot{}\def\chaptermark##1{}%
\def\sectionmark##1{}\def\subsectionmark##1{}}

\def\ps@gnct{%
  \let\@mkboth=\@gobbletwo
  \def\@oddhead{}\def\@evenhead{}%
  \def\@oddfoot{\hfill -- \rm\thepage\ --\hfill}%
  \def\@evenfoot{\hfill -- \rm\thepage\ --\hfill}}


\newif\if西暦\let\if西暦=\iffalse \def\西暦{\let\if西暦=\iftrue}
\def\today{{\if西暦\count0=\year\else%
\count0=\year\advance\count0 -1988 平成\,\fi%
\ifnum\count0=1 元\else\number\count0\fi\,年\hspace{.5em}\nobreak%
\number\month\,月\hspace{.5em}\nobreak\number\day\,日}}
\@addtoreset{equation}{chapter} 
\def\theequation{\thechapter.\arabic{equation}}


% from compsoft.sty 
% height adjustment code insertion into float ending routines
\newdimen\@floatheight
\newcount\@floatlinecount

%\def\end@float{\par\vskip\z@\egroup %% \par\vskip\z@ added 15 Dec 87
%%\fboxrule=0.01pt\fboxsep=0pt% for debugging
%%\global\setbox\@currbox=\hbox{\fbox{\vbox to\@floatheight{\vfil\copy\@currbox\vfil}}}%
\def\end@float{%
  \@endfloatbox
  \@floatheight=\ht\@currbox
  \advance\@floatheight \dp\@currbox
  \divide\@floatheight\gnctbaseline \@floatlinecount=\@floatheight
  \advance\@floatlinecount by 1 %1 \@ne
  \@floatheight=\@floatlinecount\gnctbaseline
  \global\setbox\@currbox=\vbox to\@floatheight{\vfil\copy\@currbox\vfil}%
   \ifnum\@floatpenalty <\z@
     \@cons\@currlist\@currbox
     \ifdim \ht\@currbox >\textheight 
        \ht\@currbox\textheight \fi
     \ifnum\@floatpenalty < -\@Mii 
        \penalty -\@Miv 
        \@tempdima\prevdepth    %% saving and restoring \prevdepth added
        \vbox{}                 %% 26 May 87 to prevent extra vertical
        \prevdepth \@tempdima   %% space when used in vertical mode
        \penalty\@floatpenalty
      \else \vadjust{\penalty -\@Miv \vbox{}\penalty\@floatpenalty}\@esphack
     \fi\fi}

%\def\end@dblfloat{\if@twocolumn
%     \par\vskip\z@\egroup %% \par\vskip\z@ added 15 Dec 87\egroup
%%\fboxrule=0.01pt\fboxsep=0pt% for debugging
%%\global\setbox\@currbox=\hbox{\fbox{\vbox to\@floatheight{\vfil\copy\@currbox\vfil}}}%
\def\end@dblfloat{% did not check dblfloat environment - 2023/2/15
  \if@twocolumn
    \@endfloatbox
    \@floatheight=\ht\@currbox
    \advance\@floatheight \dp\@currbox
    \divide\@floatheight\gnctbaseline \@floatlinecount=\@floatheight
    \advance\@floatlinecount by 1%\@ne
    \@floatheight=\@floatlinecount\gnctbaseline
    \global\setbox\@currbox=\vbox to\@floatheight{\vfil\copy\@currbox\vfil}%
    \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
  \else
    \end@float
  \fi
}%
%     \ifnum\@floatpenalty <\z@ \@cons\@dbldeferlist\@currbox\fi
%      \ifnum \@floatpenalty =-\@Mii \@esphack\fi\else\end@float\fi}

\newbox\adjustbox%
\newdimen\adjustheight%
\newdimen\adjusttemp%
\newcount\adjustlinecount%

%\setbox\adjustbox\hbox{あ}\message{ht=\the\ht\adjustbox}\message{dp=\the\dp\adjustbox}

\newenvironment{adjust}{%\message{prevdepth=\the\prevdepth}
%\vskip-\prevdepth\vskip1.4454pt % to cancel out various depth and set
                               % it to normal 1.445pt.  For this to
                               % work properly, it is necessary to use
                               % this environment as a separate paragraph!!
\vskip-\prevdepth\vskip \gnctbaseline \hrule height\z@ \nobreak%
\vskip -\gnctbaseline%
\global\setbox\adjustbox=\vbox\bgroup%
\hsize\columnwidth\lineskip 5pt \normallineskip 5pt
\lineskiplimit 5pt \baselineskip 0pt \jot 5pt}{\egroup%
\adjustheight=\ht\adjustbox%
\advance\adjustheight \dp\adjustbox%
\adjusttemp=\adjustheight%
\divide\adjustheight\gnctbaseline \adjustlinecount=\adjustheight%
\advance\adjusttemp -\adjustlinecount\gnctbaseline%
\advance\adjusttemp 10pt\relax% gap for upside 5pt and downside 5pt 
\ifdim\adjusttemp>\difheadsep
\advance\adjustlinecount by 1 \fi%
\adjustheight=\adjustlinecount\gnctbaseline%
% you must ajust the position of top box somehow!!!
%\vskip-.5\Q\vskip-1.445pt\vspace*{.5\Q}\vspace*{1.445pt}%
\fboxrule=0.01pt\fboxsep=0pt% for debugging
%\vskip5\Q % = 1/2 gap
%\noindent\fbox{\vbox to\adjustheight{\vfil\box\adjustbox\vfil}}%
%\noindent\vbox to\adjustheight{\vfil\box\adjustbox\vfil}%
\noindent\vbox to\adjustheight{\vspace*{\difheadsep}\vss\noindent\box\adjustbox\vss}%
%\vskip-5\Q % = 1/2 gap
%\vskip-1.445pt\noindent
}

% end of compsoft.sty
\def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
   \par \@tempskipa #4\relax
   \@afterindenttrue
   \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
   \if@nobreak \everypar{}\else
     %\addpenalty{\@secpenalty}
     \addvspace{\@tempskipa}\fi \@ifstar
     {\@ssect{#3}{#4}{#5}{#6}}{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}


\ps@gnct \pagenumbering{arabic} \onecolumn \if@twoside\else\raggedbottom\fi

\def\maru#1{{\ooalign{\hfill$\scriptstyle#1$\hfill\crcr$\bigcirc$}}}

\def\ruby#1#2{\leavevmode\vbox{\baselineskip\z@skip \lineskip.25ex%
 \ialign{##\crcr\tiny\hfill#1\hfill\crcr\hfill#2\hfill\crcr}}}

% equation environment is in adjust.
\def\[{\relax\ifmmode\@badmath\else
    \ifvmode \nointerlineskip \makebox[.6\linewidth]\fi\begin{adjust}$$%%$$ BRACE MATCH HACK
\fi}

\def\]{\relax\ifmmode\ifinner\@badmath\else$$\end{adjust}\fi%%$$ BRACE MATCH HACK
        \else \@badmath \fi\ignorespaces}

\def\equation{\begin{adjust}$$ % $$ BRACE MATCHING HACK
\refstepcounter{equation}}

\def\endequation{\eqno \@eqnnum % $$ BRACE MATCHING HACK
$$\global\@ignoretrue\end{adjust}}

\def\eqnarray{%
 \begin{adjust}
  \stepcounter{equation}%
  \let\@currentlabel=\theequation
  \global\@eqnswtrue
  \global\@eqcnt\z@
  \tabskip\@centering
  \let\\=\@eqncr
  $$\halign to \displaywidth\bgroup\@eqnsel\hskip\@centering
  $\displaystyle\tabskip\z@{##}$&\global\@eqcnt\@ne
  \hfil$\displaystyle{{}##{}}$\hfil
  &\global\@eqcnt\tw@$\displaystyle\tabskip\z@{##}$\hfil
  \tabskip\@centering&\llap{##}\tabskip\z@\cr}
\def\endeqnarray{\@@eqncr\egroup
      \global\advance\c@equation\m@ne$$\global\@ignoretrue%
      \end{adjust}}

\def\@oval(#1,#2)[#3]{\begingroup\boxmaxdepth \maxdimen
  \@ovttrue \@ovbtrue \@ovltrue \@ovrtrue
  \@tfor\@tempa :=#3\do{\csname @ov\@tempa false\endcsname}\@ovxx
  #1\unitlength \@ovyy #2\unitlength
  \@tempdimb \ifdim \@ovyy >\@ovxx \@ovxx\else \@ovyy \fi
  \advance\@tempdimb -2pt\relax
  \@getcirc \@tempdimb
  \@ovro \ht\@tempboxa \@ovri \dp\@tempboxa
  \@ovdx\@ovxx \advance\@ovdx -\@tempdima \divide\@ovdx \tw@
  \@ovdy\@ovyy \advance\@ovdy -\@tempdima \divide\@ovdy \tw@
  \@circlefnt \setbox\@tempboxa
  \hbox{\if@ovr \@ovvert32\kern -\@tempdima \fi
  \if@ovl \kern \@ovxx \@ovvert01\kern -\@tempdima \kern -\@ovxx \fi
  \if@ovt \@ovhorz \kern -\@ovxx \fi
  \if@ovb \raise \@ovyy \@ovhorz \fi}\advance\@ovdx\@ovro
  \advance\@ovdy\@ovro \ht\@tempboxa\z@ \dp\@tempboxa\z@
  \@put{-\@ovdx}{-\@ovdy}{\box\@tempboxa}%
  \endgroup}

%
% jbook.cls pLaTeX2e 1997/09/03
% jLaTeX old font command
%
\DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
\DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
% end jbook.cls