% ------------------- basic settings -----------------------
\ExecuteOptions{usename}
\if@twocolumn \columnseprule=0pt \columnsep=2zw \fi
%%\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus -.2ex}{1ex plus .2ex}{\Large\bf}}
%%\def\subsection{\@startsection {subsection}{2}{\z@}{-2.5ex plus -1ex minus -.2ex}{1ex plus .2ex}{\large\bf}}
%% 章・節の空白（2016年から変更）%%
\def\section{\@startsection {section}{1}{\z@}{-1.5ex plus -1ex minus -.2ex}{0.8ex plus .2ex}{\Large\bf}}
\def\subsection{\@startsection {subsection}{2}{\z@}{-1ex plus -.5ex minus -.2ex}{0.8ex plus .2ex}{\large\bf}}
\def\volumenumber#1{\gdef\@volumenumber{#1}} \volumenumber{}
\def\publish#1{\gdef\@publishyear{#1}} \publish{}
\def\nendo#1{\gdef\@nendo{#1}} \nendo{}
\def\bangou#1{\gdef\@bangou{#1}} \bangou{}
\long\def\epilogue#1{\gdef\@epilogue{#1\par}} \gdef\@epilogue{}
\def\editor#1{\gdef\@editor{#1}} \editor{}
\def\teacher#1{\def\@teacher{#1}} \teacher{}
\def\shozoku#1{\def\@shozoku{#1}} \shozoku{}
\def\subtitle#1{\def\@subtitle{#1}} \subtitle{}
% modification of \author
\newif\ifaddauth%
\addauthtrue%
\def\addauthora#1#2{#1　　#2}%
\def\addauthorb#1#2{#1・#2}%
\let\@authora=\empty%
\let\@authorb=\empty%
\def\author#1{\@for\aauthor:=#1\do{%
\ifaddauth \let\@authora=\aauthor\let\@authorb=\aauthor%
\addauthfalse%
\else%
\edef\@authora{\addauthora{\@authora}{\aauthor}}%
\edef\@authorb{\addauthorb{\@authorb}{\aauthor}}%
\fi}%
\addauthtrue}\author{}
\def\and{　　}
\def\aand{　}
\def\hhh{\hspace*{-2em}}
% --------------- page -------------------------------
%%\setlength{\oddsidemargin}{-.5in}
%%\setlength{\evensidemargin}{-.5in}
%% 綴じしろ(2016年から) %%
\setlength{\oddsidemargin}{-.65in}
\setlength{\evensidemargin}{-.3in}
%\setlength{\footskip}{-.5in}
\setlength{\textwidth}{180mm}
\setlength{\textheight}{234mm}
\setlength{\headsep}{5mm}
%\fancypage{\setlength{\fboxsep}{3mm}\fbox}{}%
% ---------------- change course label -----------------
\def\coursename#1{{\def\@course{#1}%
   \oddpage%
   \onecolumn\par\null\vskip 40mm%
\begin{center}{\Huge \@course}\end{center}
   \addcontentsline{toc}{section}{%
    \protect\@tocdisplay{\@course}{course}{}}%
%    \@oddpage
\pagestyle{plain}
\twocolumn
}}
% ---------------- page style --------------------------
\def\ps@suuri{%
\@twosidetrue%
\let\@mkboth\@gobbletwo
     \def\@oddhead{%
\hfill{徳島大学数理科学教室}}%
%%%%%\def\@oddfoot{\hfil\thepage
%%%%%     \hfil}\def\@evenhead{}\let\@evenfoot\@oddfoot}
\def\@oddfoot{}\def\@evenhead{}\let\@evenfoot\@oddfoot}
% ---------------- page selection ----------------------
\newcount\@currentx
\def\oddpage{%
\@currentx=\c@page%
\divide \@currentx 2\relax
\multiply \@currentx 2\relax
\ifnum\@currentx=\c@page\null\clearpage\else\empty\fi
}
\def\@oddpage{%
\onecolumn
\@currentx=\c@page%
\divide \@currentx 2\relax
\multiply \@currentx 2\relax
\ifnum\@currentx=\c@page\pagestyle{empty}\null\newpage\else\empty\fi
\twocolumn
\empty}
% ---------------- maketitle of each paper -------------
%  redefine \maketitle to reset/unreset several macros and counters
\def\maketitle{\par
 \begingroup
  \def\thefootnote{\fnsymbol{footnote}}%
  \def\@makefnmark{\hbox
   to\z@{$\m@th^{\@thefnmark}$\hss}}%
  \if@twocolumn
   \twocolumn[\@maketitle]%
   \else \newpage
   \global\@topnum\z@
   \@maketitle \fi\thispagestyle{suuri}\@thanks
 \endgroup
 \begingroup
  \def\and{・}%
  \def\aand{・}%
  \def\hhh{}%
   \addcontentsline{toc}{section}{%
    \protect\@tocdisplay{\@title}{\@authorb}{\@subtitle}}%
 \endgroup
 \xdef\firstpagenumber{\thepage}%
 \pagestyle{suuri}%
 \setcounter{footnote}{0}%
 \gdef\@thanks{}%
}
%
\def\@maketitle{\newpage
\def\and{　　}
\def\aand{　}
\def\hhh{\hspace*{-2em}}
\unitlength=1mm%
\begin{picture}(186,55)(0,0)%
\linethickness{0.5mm}%
\put(0,58){\line(1,0){180}}%
\linethickness{0.2mm}%
\put(1,57){\line(1,0){178}}%
\put(0,25){\makebox(180,20){\begin{minipage}{\textwidth}\centering \LARGE \@title\end{minipage}}}%
\put(0,10){\makebox(180,10)[c]{\Large \@authora}}%
\put(0,7){\makebox(180,10)[r]{\large 指導教員　\@teacher}}%
\put(1,1){\line(1,0){178}}%
\linethickness{0.5mm}%
\put(0,0){\line(1,0){180}}%
\end{picture}%
 \par\vskip 2.3em}
% to enforce \psc in \do above (in \@maketitle}: in English papers,
%        "\sc" must be replace by "\SmllCps" within English authors
\def\SmllCps{\sc\hbox{}} % why do we need this kind of mess???
% ---------------------- sectioning ------------------------
\def\thesection{\arabic{section}}
% no output for \tableofcontents
\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
 \let\@svsec\@empty\else
 \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 1em}\fi
 \@tempskipa #5\relax
 \ifdim \@tempskipa>\z@
  \begingroup #6\relax
   \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}%
  \endgroup
 \csname #1mark\endcsname{#7}\else
 \def\@svsechd{#6\hskip #3\relax  %% \relax added 2 May 90
  \@svsec #8\csname #1mark\endcsname
  {#7}\addcontentsline
   {toc}{#1}{\ifnum #2>\c@secnumdepth \else
   \protect\numberline{\csname the#1\endcsname}\fi
   #7}}\fi
 \@xsect{#5}}
%
% --------- \cleardoublepage even in non-twoside case ------
\def\cleardoublepageunderoneside{}
%  --------------------- bibliography ----------------------
\def\refname{参考文献}
%
\def\thebibliography#1{\section*{\refname\markboth
 {\refname}{\refname}}\list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \fussy
 \sfcode`\.=1000\relax}
\endinput
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
