\makeatletter
\def\fig#1{図\ref{fig:#1}}
\def\figlabel#1{\label{fig:#1}}

\def\tab#1{表\ref{tab:#1}}
\def\tablabel#1{\label{tab:#1}}

\pagestyle{empty}

\input{edb.sty}

\newif\if和文
\let\if和文=\iffalse
\def\和文{\let\if和文=\iftrue}
\def\英文{\let\if和文=\iffalse}

\newcounter{著作番号}
\def\著作番号{\arabic{著作番号}}

\newcounter{学位論文番号}
\def\学位論文番号{\arabic{学位論文番号}}

\newcounter{学科番号}
\def\学科番号{\addtocounter{学科番号}{1}\Roman{学科番号}}

\newenvironment{章}[1]{
%\begin{part}{#1}
\setcounter{section}{0}
\def\thesection{\arabic{section}.}
\def\thesubsection{\arabic{section}.\arabic{subsection}}
\def\thesubsubsection{\thesubsection.\arabic{subsubsection}}
\par
\begin{center}{\large\bf#1}\end{center}
\small
\setcounter{著作番号}{0}
\setcounter{学位論文番号}{0}
\setcounter{学科番号}{0}
}{
%\end{part}
\clearpage
}

\newenvironment{学科}[1]{
\par
\noindent{\normalsize\bf 〔{\学科番号}〕#1}
\par
\gdef\リストなし{なし}
\begin{itemize}
}{
\ifx\リストなし\empty\else\item[] なし\fi
\end{itemize}
}

\def\AND{ {\itshape and} }

\newenvironment{edb:article}{
\def\@誌名字体{}%
\和文%
\let\EdbDate=\EdbDateYM@J%
%
}{
\if和文\else\let\EdbDate=\EdbDateYM@E\def\@誌名字体{\slshape}\fi
\addtocounter{著作番号}{1}%
\item[\著作番号.]
\if和文%
\EdbColUse{}{}{edb:article.author}{, }{}{}%
\else%
\EdbColUseAnd{}{}{edb:article.author}{, }{}{}%
\fi%
\nobreak\ ; %
\EdbColUse{}{}{edb:article.title}{}{}{}%
\EdbColUse{\nobreak, }{}{edb:article.subtitle}{}{}{}%
\EdbColUse{\nobreak, \@誌名字体}{}{edb:article.magazine}{}{}{}%
\EdbColUse{\nobreak, Vol.}{Vol.}{edb:article.volume}{\nobreak, }{}{}%
\EdbColUse{\nobreak, No.}{No.}{edb:article.number}{\nobreak, }{}{}%
\EdbColUse{\nobreak, }{}{edb:article.publisher}{}{}{}%
\EdbColUse{\nobreak, }{}{edb:article.city}{}{}{}%
\EdbColUse{\nobreak, }{}{edb:article.date}{}{}{}%
\EdbColUse{\nobreak, }{}{edb:article.page}{}{}{}%
\nobreak.
\gdef\リストなし{}
}

\newenvironment{edb:thesis}{
\let\EdbDate=\EdbDateYM@J%
}{
\addtocounter{学位論文番号}{1}%
\item[\学位論文番号.]
\EdbColUse{}{}{edb:thesis.name}{\nobreak, }{}{}\nobreak\ ; %
\EdbColUse{}{}{edb:thesis.title}{\nobreak, }{}{}%
\EdbColUse{\nobreak, }{}{edb:thesis.date}{\nobreak, }{}{}%
\EdbColUse{\nobreak, }{}{edb:thesis.teacher}{\nobreak, }{}{}\nobreak．%
\gdef\リストなし{}
}

\def\EdbAlert#1{}

\def\oclock{\@tempcnta\time \divide\@tempcnta 60\relax \number\@tempcnta~時}

\makeatother
