ieicejsp.cls 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  1. \NeedsTeXFormat{pLaTeX2e}
  2. \ProvidesClass{ieicejsp}
  3. \newcounter{@paper}
  4. \def\affliate#1{\gdef\@affliate{#1}}
  5. \newif\if@landscape \@landscapefalse
  6. \newcommand{\@ptsize}{}
  7. \newif\if@restonecol
  8. \hour\time \divide\hour by 60\relax
  9. \@tempcnta\hour \multiply\@tempcnta 60\relax
  10. \minute\time \advance\minute-\@tempcnta
  11. \newif\if@stysize \@stysizefalse
  12. \newif\if@enablejfam \@enablejfamtrue
  13. \DeclareOption{a4paper}{\setcounter{@paper}{1}%
  14. \setlength\paperheight {297mm}%
  15. \setlength\paperwidth {210mm}}
  16. \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
  17. \setlength\paperheight {297mm}%
  18. \setlength\paperwidth {210mm}}
  19. \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
  20. \setlength\paperheight {297mm}%
  21. \setlength\paperwidth {210mm}}
  22. \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
  23. \DeclareOption{landscape}{\@landscapetrue
  24. \setlength\@tempdima{\paperheight}%
  25. \setlength\paperheight{\paperwidth}%
  26. \setlength\paperwidth{\@tempdima}}
  27. \DeclareOption{tombow}{%
  28. \tombowtrue \tombowdatetrue
  29. \setlength{\@tombowwidth}{.1\p@}%
  30. \@bannertoken{%
  31. \jobname\space:\space\number\year/\number\month/\number\day
  32. (\number\hour:\number\minute)}
  33. \maketombowbox}
  34. \DeclareOption{tombo}{%
  35. \tombowtrue \tombowdatefalse
  36. \setlength{\@tombowwidth}{.1\p@}%
  37. \maketombowbox}
  38. \DeclareOption{mentuke}{%
  39. \tombowtrue \tombowdatefalse
  40. \setlength{\@tombowwidth}{\z@}%
  41. \maketombowbox}
  42. \DeclareOption{oneside}{\@twosidefalse}
  43. \DeclareOption{twoside}{\@twosidetrue}
  44. \DeclareOption{onecolumn}{\@twocolumnfalse}
  45. \DeclareOption{twocolumn}{\@twocolumntrue}
  46. \DeclareOption{leqno}{\input{leqno.clo}}
  47. \DeclareOption{fleqn}{\input{fleqn.clo}}
  48. \DeclareOption{openbib}{%
  49. \AtEndOfPackage{%
  50. \renewcommand\@openbib@code{%
  51. \advance\leftmargin\bibindent
  52. \itemindent -\bibindent
  53. \listparindent \itemindent
  54. \parsep \z@
  55. }%
  56. \renewcommand\newblock{\par}}}
  57. \if@compatibility
  58. \else
  59. \DeclareOption{disablejfam}{\@enablejfamfalse}
  60. \fi
  61. \DeclareOption{draft}{\setlength\overfullrule{5pt}}
  62. \DeclareOption{final}{\setlength\overfullrule{0pt}}
  63. \ExecuteOptions{a4paper,10pt,oneside,onecolumn,final}
  64. \ProcessOptions\relax
  65. %%
  66. \renewcommand{\normalsize}{%
  67. \@setfontsize\normalsize\@xpt{12.9}%
  68. \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
  69. \abovedisplayshortskip \z@ \@plus3\p@
  70. \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
  71. \belowdisplayskip \abovedisplayskip
  72. \let\@listi\@listI}
  73. \normalsize
  74. \setbox0\hbox{\char\euc"A1A1}%
  75. \setlength\Cht{\ht0}
  76. \setlength\Cdp{\dp0}
  77. \setlength\Cwd{\wd0}
  78. \setlength\Cvs{\baselineskip}
  79. \setlength\Chs{\wd0}
  80. \newcommand{\small}{%
  81. \@setfontsize\small\@ixpt{11}%
  82. \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
  83. \abovedisplayshortskip \z@ \@plus2\p@
  84. \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
  85. \def\@listi{\leftmargin\leftmargini
  86. \topsep 4\p@ \@plus2\p@ \@minus2\p@
  87. \parsep 2\p@ \@plus\p@ \@minus\p@
  88. \itemsep \parsep}%
  89. \belowdisplayskip \abovedisplayskip}
  90. \newcommand{\footnotesize}{%
  91. \@setfontsize\footnotesize\@viiipt{9.5}%
  92. \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
  93. \abovedisplayshortskip \z@ \@plus\p@
  94. \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
  95. \def\@listi{\leftmargin\leftmargini
  96. \topsep 3\p@ \@plus\p@ \@minus\p@
  97. \parsep 2\p@ \@plus\p@ \@minus\p@
  98. \itemsep \parsep}%
  99. \belowdisplayskip \abovedisplayskip}
  100. \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
  101. \newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt}
  102. \newcommand{\large}{\@setfontsize\large\@xiipt{17}}
  103. \newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
  104. \newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
  105. \newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
  106. \newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
  107. \setlength\topskip{1\Cht}
  108. \setlength\footskip{30\p@}
  109. \if@compatibility
  110. \setlength\maxdepth{4\p@}
  111. \else
  112. \setlength\maxdepth{.5\topskip}
  113. \fi
  114. \setlength\textwidth{\paperwidth}
  115. \setlength\oddsidemargin{18.1mm}
  116. \setlength\evensidemargin{18.1mm}
  117. \setlength\columnsep{7.1mm}
  118. \addtolength\textwidth{-\oddsidemargin}
  119. \addtolength\textwidth{-\evensidemargin}
  120. \addtolength\oddsidemargin{-1in}
  121. \addtolength\evensidemargin{-1in}
  122. \@settopoint\textwidth
  123. \@settopoint\oddsidemargin
  124. \@settopoint\evensidemargin
  125. \@settopoint\columnsep
  126. \if@twoside
  127. \setlength\marginparwidth{.6\@tempdima}
  128. \addtolength\marginparwidth{-.4in}
  129. \else
  130. \setlength\marginparwidth{.5\@tempdima}
  131. \addtolength\marginparwidth{-.4in}
  132. \fi
  133. \ifdim \marginparwidth >2in
  134. \setlength\marginparwidth{2in}
  135. \fi
  136. \@settopoint\marginparwidth
  137. \setlength\topmargin{30mm}
  138. \addtolength\topmargin{-1in}
  139. \setlength\headheight{0\p@}
  140. \setlength\headsep{0\p@}
  141. \setlength\textheight{\paperheight}
  142. \addtolength\textheight{-\topmargin}
  143. \addtolength\textheight{-\headheight}
  144. \addtolength\textheight{-\headsep}
  145. \addtolength\textheight{-27mm}
  146. \addtolength\textheight{-1in}
  147. \if@twocolumn
  148. \setlength\marginparsep{10\p@}
  149. \else
  150. \setlength\marginparsep{10\p@}
  151. \fi
  152. \setlength\marginparpush{5\p@}
  153. \setlength\footnotesep{6.65\p@}
  154. \setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
  155. \setlength\floatsep {3\p@ \@plus 2\p@ \@minus 2\p@}
  156. \setlength\textfloatsep{10\p@ \@plus 2\p@ \@minus 4\p@}
  157. \setlength\intextsep {6\p@ \@minus 2\p@}
  158. \setlength\dblfloatsep {3\p@ \@plus 2\p@ \@minus 2\p@}
  159. \setlength\dbltextfloatsep{5\p@ \@plus 2\p@ \@minus 4\p@}
  160. \setlength\@fptop{0\p@ \@plus 1fil}
  161. \setlength\@fpsep{4\p@ \@plus 2fil}
  162. \setlength\@fpbot{0\p@ \@plus 1fil}
  163. \setlength\@dblfptop{0\p@ \@plus 1fil}
  164. \setlength\@dblfpsep{4\p@ \@plus 2fil}
  165. \setlength\@dblfpbot{0\p@ \@plus 1fil}
  166. \setlength\partopsep{1\p@ \@plus 1\p@ \@minus 1\p@}
  167. \def\@listi{\leftmargin\leftmargini
  168. \parsep 2\p@ \@plus1\p@ \@minus\p@
  169. \topsep 2\p@ \@plus1\p@ \@minus2\p@
  170. \itemsep2\p@ \@plus1\p@ \@minus\p@}
  171. \let\@listI\@listi
  172. \@listi
  173. \def\@listii{\leftmargin\leftmarginii
  174. \labelwidth\leftmarginii \advance\labelwidth-\labelsep
  175. \topsep 2\p@ \@plus2\p@ \@minus\p@
  176. \parsep 1\p@ \@plus\p@ \@minus\p@
  177. \itemsep\parsep}
  178. \def\@listiii{\leftmargin\leftmarginiii
  179. \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
  180. \topsep\z@
  181. \parsep\z@
  182. \partopsep \p@ \@plus\z@ \@minus\p@
  183. \itemsep\topsep}
  184. %%
  185. \def\@listiv {\leftmargin\leftmarginiv
  186. \labelwidth\leftmarginiv
  187. \advance\labelwidth-\labelsep}
  188. \def\@listv {\leftmargin\leftmarginv
  189. \labelwidth\leftmarginv
  190. \advance\labelwidth-\labelsep}
  191. \def\@listvi {\leftmargin\leftmarginvi
  192. \labelwidth\leftmarginvi
  193. \advance\labelwidth-\labelsep}
  194. %%
  195. \setlength\columnsep{7mm}
  196. \setlength\columnseprule{0\p@}
  197. \setlength\lineskip{1\p@}
  198. \setlength\normallineskip{1\p@}
  199. \renewcommand{\baselinestretch}{}
  200. \setlength\parskip{0\p@ \@plus \p@}
  201. \setlength\parindent{1\Cwd}
  202. \@lowpenalty 51
  203. \@medpenalty 151
  204. \@highpenalty 301
  205. \setcounter{topnumber}{2}
  206. \setcounter{bottomnumber}{1}
  207. \setcounter{totalnumber}{3}
  208. \setcounter{dbltopnumber}{2}
  209. \renewcommand{\topfraction}{.7}
  210. \renewcommand{\bottomfraction}{.3}
  211. \renewcommand{\textfraction}{.2}
  212. \renewcommand{\floatpagefraction}{.5}
  213. \renewcommand{\dbltopfraction}{.7}
  214. \renewcommand{\dblfloatpagefraction}{.5}
  215. \def\ps@plain{\let\@mkboth\@gobbletwo
  216. \let\ps@jpl@in\ps@plain
  217. \let\@oddhead\@empty
  218. \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
  219. \let\@evenhead\@empty
  220. \let\@evenfoot\@oddfoot}
  221. \let\ps@jpl@in\ps@plain
  222. \def\ps@headnombre{\let\@mkboth\@gobbletwo
  223. \let\ps@jpl@in\ps@headnombre
  224. \def\@evenhead{\thepage\hfil}%
  225. \def\@oddhead{\hfil\thepage}%
  226. \let\@oddfoot\@empty\let\@evenfoot\@empty}
  227. \def\ps@footnombre{\let\@mkboth\@gobbletwo
  228. \let\ps@jpl@in\ps@footnombre
  229. \def\@evenfoot{\thepage\hfil}%
  230. \def\@oddfoot{\hfil\thepage}%
  231. \let\@oddhead\@empty\let\@evenhead\@empty}
  232. \if@twoside
  233. \def\ps@headings{\let\ps@jpl@in\ps@headnombre
  234. \let\@oddfoot\@empty\let\@evenfoot\@empty
  235. \def\@evenhead{\thepage\hfil\leftmark}%
  236. \def\@oddhead{{\rightmark}\hfil\thepage}%
  237. \let\@mkboth\markboth
  238. \def\sectionmark##1{\markboth{%
  239. \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
  240. ##1}{}}%
  241. \def\subsectionmark##1{\markright{%
  242. \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1zw\fi
  243. ##1}}%
  244. }
  245. \else % if not twoside
  246. \def\ps@headings{\let\ps@jpl@in\ps@headnombre
  247. \let\@oddfoot\@empty
  248. \def\@oddhead{{\rightmark}\hfil\thepage}%
  249. \let\@mkboth\markboth
  250. \def\sectionmark##1{\markright{%
  251. \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1zw\fi
  252. ##1}}%
  253. }
  254. \fi
  255. \if@twoside
  256. \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
  257. \def\@evenhead{\leftmark\hfil}% right page
  258. \def\@evenfoot{\thepage\hfil}% right page
  259. \def\@oddhead{\hfil\rightmark}% left page
  260. \def\@oddfoot{\hfil\thepage}% left page
  261. \let\@mkboth\markboth
  262. \def\sectionmark##1{\markboth{%
  263. \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
  264. ##1}{}}%
  265. \def\subsectionmark##1{\markright{%
  266. \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1zw\fi
  267. ##1}}%
  268. }
  269. \else % if one column
  270. \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
  271. \def\@oddhead{\hfil\rightmark}%
  272. \def\@oddfoot{\hfil\thepage}%
  273. \let\@mkboth\markboth
  274. \def\sectionmark##1{\markright{%
  275. \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1zw\fi
  276. ##1}}%
  277. }
  278. \fi
  279. \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
  280. \let\@oddfoot\@empty\let\@evenfoot\@empty
  281. \def\@evenhead{\thepage\hfil\leftmark}%
  282. \def\@oddhead{{\rightmark}\hfil\thepage}%
  283. \let\@mkboth\@gobbletwo
  284. \let\sectionmark\@gobble
  285. \let\subsectionmark\@gobble
  286. }
  287. \def\p@thanks#1{\footnotemark
  288. \protected@xdef\@thanks{\@thanks
  289. \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
  290. \newcommand{\maketitle}{\par
  291. \begingroup
  292. \parskip 0em
  293. \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
  294. \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
  295. \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
  296. \long\def\@makefntext##1{\parindent 1em\noindent
  297. \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
  298. \if@twocolumn
  299. \ifnum \col@number=\@ne \@maketitle
  300. \else \twocolumn[\@maketitle]%
  301. \fi
  302. \else
  303. \newpage
  304. \global\@topnum\z@ % Prevents figures from going at top of page.
  305. \@maketitle
  306. \fi
  307. \thispagestyle{empty}\@thanks
  308. \endgroup
  309. \setcounter{footnote}{0}%
  310. \global\let\thanks\relax
  311. \global\let\maketitle\relax
  312. \global\let\p@thanks\relax
  313. \global\let\@thanks\@empty
  314. \global\let\@author\@empty
  315. %%
  316. \global\let\@affliate\@empty
  317. %%
  318. \global\let\@date\@empty
  319. \global\let\@title\@empty
  320. \global\let\title\relax
  321. \global\let\author\relax
  322. %%
  323. \global\let\affliate\relax
  324. %%
  325. \global\let\date\relax
  326. \global\let\and\relax
  327. }
  328. \def\@maketitle{%
  329. \newpage\null
  330. \begin{center}%
  331. \let\footnote\thanks
  332. {\LARGE \baselineskip 15pt \@title \par}%
  333. \vskip 1.0em%
  334. {
  335. \lineskip .0em%
  336. \begin{tabular}[t]{c}%
  337. \baselineskip 0em%
  338. \@author
  339. \end{tabular}\par}%
  340. \vskip 1em%
  341. {\small
  342. \lineskip .0em%
  343. \begin{tabular}[t]{c}%
  344. \baselineskip 0em%
  345. \@affliate
  346. \end{tabular}\par}%
  347. \vskip 1em%
  348. \end{center}%
  349. \vskip 0.5em}%
  350. \newenvironment{abstract}{%
  351. \if@twocolumn
  352. \section*{\abstractname}%
  353. \else
  354. \small
  355. \begin{center}%
  356. {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
  357. \end{center}%
  358. \quotation
  359. \fi}{\if@twocolumn\else\endquotation\fi}
  360. \setcounter{secnumdepth}{3}
  361. \newcounter{part}
  362. \newcounter{section}
  363. \newcounter{subsection}[section]
  364. \newcounter{subsubsection}[subsection]
  365. \newcounter{paragraph}[subsubsection]
  366. \newcounter{subparagraph}[paragraph]
  367. \renewcommand{\thepart}{\@Roman\c@part}
  368. \renewcommand{\thesection}{\@arabic\c@section}
  369. \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
  370. \renewcommand{\thesubsubsection}{%
  371. \thesubsection.\@arabic\c@subsubsection}
  372. \renewcommand{\theparagraph}{%
  373. \thesubsubsection.\@arabic\c@paragraph}
  374. \renewcommand{\thesubparagraph}{%
  375. \theparagraph.\@arabic\c@subparagraph}
  376. \newcommand{\part}{\par\addvspace{4ex}%
  377. \@afterindentfalse
  378. \secdef\@part\@spart}
  379. \def\@part[#1]#2{%
  380. \ifnum \c@secnumdepth >\m@ne
  381. \refstepcounter{part}%
  382. \addcontentsline{toc}{part}{%
  383. \prepartname\thepart\postpartname\hspace{1zw}#1}%
  384. \else
  385. \addcontentsline{toc}{part}{#1}%
  386. \fi
  387. \markboth{}{}%
  388. {\parindent\z@\raggedright
  389. \interlinepenalty\@M\reset@font
  390. \ifnum \c@secnumdepth >\m@ne
  391. \Large\bfseries\prepartname\thepart\postpartname
  392. \par\nobreak
  393. \fi
  394. \huge\bfseries#2\par}%
  395. \nobreak\vskip3ex\@afterheading}
  396. \def\@spart#1{{%
  397. \parindent\z@\raggedright
  398. \interlinepenalty\@M\reset@font
  399. \huge\bfseries#1\par}%
  400. \nobreak\vskip3ex\@afterheading}
  401. %%
  402. %\newcommand{\section}{\@startsection{section}{1}{\z@}%
  403. % {1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
  404. % {.5\Cvs \@plus.3\Cdp}%
  405. % {\reset@font\Large\bfseries}}
  406. % \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
  407. % {1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
  408. % {.5\Cvs \@plus.3\Cdp}%
  409. % {\reset@font\large\bfseries}}
  410. % \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
  411. % {1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
  412. % {.5\Cvs \@plus.3\Cdp}%
  413. % {\reset@font\normalsize\bfseries}}
  414. \newcommand{\section}{\@startsection{section}{1}{\z@}%
  415. {.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
  416. {.3\Cdp}%
  417. {\reset@font\bfseries}}
  418. \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
  419. {1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
  420. {.3\Cdp}%
  421. {\reset@font\bfseries}}
  422. \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
  423. {1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}%
  424. {.3\Cdp}%
  425. {\reset@font\normalsize\bfseries}}
  426. %%
  427. \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
  428. {3.25ex \@plus 1ex \@minus .2ex}%
  429. {-1em}%
  430. {\reset@font\normalsize\bfseries}}
  431. \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
  432. {3.25ex \@plus 1ex \@minus .2ex}%
  433. {-1em}%
  434. {\reset@font\normalsize\bfseries}}
  435. \newcommand{\appendix}{\par
  436. \setcounter{section}{0}%
  437. \setcounter{subsection}{0}%
  438. \renewcommand{\thesection}{\@Alph\c@section}}
  439. \if@twocolumn
  440. % \setlength\leftmargini {2em}
  441. \setlength\leftmargini {1.5em}
  442. \else
  443. \setlength\leftmargini {2.5em}
  444. \fi
  445. \setlength\leftmarginii {2.2em}
  446. \setlength\leftmarginiii {1.87em}
  447. \setlength\leftmarginiv {1.7em}
  448. \if@twocolumn
  449. \setlength\leftmarginv {.5em}
  450. \setlength\leftmarginvi{.5em}
  451. \else
  452. \setlength\leftmarginv {1em}
  453. \setlength\leftmarginvi{1em}
  454. \fi
  455. \setlength \labelsep {.5em}
  456. \setlength \labelwidth{\leftmargini}
  457. \addtolength\labelwidth{-\labelsep}
  458. \@beginparpenalty -\@lowpenalty
  459. \@endparpenalty -\@lowpenalty
  460. \@itempenalty -\@lowpenalty
  461. \renewcommand{\theenumi}{\@arabic\c@enumi}
  462. \renewcommand{\theenumii}{\@alph\c@enumii}
  463. \renewcommand{\theenumiii}{\@roman\c@enumiii}
  464. \renewcommand{\theenumiv}{\@Alph\c@enumiv}
  465. \newcommand{\labelenumi}{\theenumi.}
  466. \newcommand{\labelenumii}{(\theenumii)}
  467. \newcommand{\labelenumiii}{\theenumiii.}
  468. \newcommand{\labelenumiv}{\theenumiv.}
  469. \renewcommand{\p@enumii}{\theenumi}
  470. \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
  471. \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
  472. \renewenvironment{enumerate}
  473. {\ifnum \@enumdepth >\thr@@\@toodeep\else
  474. \advance\@enumdepth\@ne
  475. \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
  476. \list{\csname label\@enumctr\endcsname}{%
  477. \iftdir
  478. \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
  479. \else\topsep\z@\fi
  480. \parskip\z@ \itemsep\z@ \parsep\z@
  481. \labelwidth1zw \labelsep.3zw
  482. \ifnum \@enumdepth=\@ne \leftmargin1zw\relax
  483. \else\leftmargin\leftskip\fi
  484. \advance\leftmargin 1zw
  485. \fi
  486. \usecounter{\@enumctr}%
  487. \def\makelabel##1{\hss\llap{##1}}}%
  488. \fi}{\endlist}
  489. \newcommand{\labelitemi}{\textbullet}
  490. \newcommand{\labelitemii}{%
  491. \iftdir
  492. {\textcircled{~}}
  493. \else
  494. {\normalfont\bfseries\textendash}
  495. \fi
  496. }
  497. \newcommand{\labelitemiii}{\textasteriskcentered}
  498. \newcommand{\labelitemiv}{\textperiodcentered}
  499. \renewenvironment{itemize}
  500. {\ifnum \@itemdepth >\thr@@\@toodeep\else
  501. \advance\@itemdepth\@ne
  502. \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
  503. \expandafter
  504. \list{\csname \@itemitem\endcsname}{%
  505. \iftdir
  506. \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
  507. \else\topsep\z@\fi
  508. \parskip\z@ \itemsep\z@ \parsep\z@
  509. \labelwidth1zw \labelsep.3zw
  510. \ifnum \@itemdepth =\@ne \leftmargin1zw\relax
  511. \else\leftmargin\leftskip\fi
  512. \advance\leftmargin 1zw
  513. \fi
  514. \def\makelabel##1{\hss\llap{##1}}}%
  515. \fi}{\endlist}
  516. \newenvironment{description}
  517. {\list{}{\labelwidth\z@ \itemindent-\leftmargin
  518. \iftdir
  519. \leftmargin\leftskip \advance\leftmargin3\Cwd
  520. \rightmargin\rightskip
  521. \labelsep=1zw \itemsep\z@
  522. \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
  523. \fi
  524. \let\makelabel\descriptionlabel}}{\endlist}
  525. \newcommand{\descriptionlabel}[1]{%
  526. \hspace\labelsep\normalfont\bfseries #1}
  527. \newenvironment{verse}
  528. {\let\\\@centercr
  529. \list{}{\itemsep\z@ \itemindent -1.5em%
  530. \listparindent\itemindent
  531. \rightmargin\leftmargin \advance\leftmargin 1.5em}%
  532. \item\relax}{\endlist}
  533. \newenvironment{quotation}
  534. {\list{}{\listparindent 1.5em%
  535. \itemindent\listparindent
  536. \rightmargin\leftmargin
  537. \parsep\z@ \@plus\p@}%
  538. \item\relax}{\endlist}
  539. \newenvironment{quote}
  540. {\list{}{\rightmargin\leftmargin}%
  541. \item\relax}{\endlist}
  542. \newcounter{figure}
  543. \renewcommand{\thefigure}{\@arabic\c@figure}
  544. \def\fps@figure{tbp}
  545. \def\ftype@figure{1}
  546. \def\ext@figure{lof}
  547. \def\fnum@figure{\figurename~\thefigure}
  548. \newenvironment{figure}
  549. {\@float{figure}}
  550. {\end@float}
  551. \newenvironment{figure*}
  552. {\@dblfloat{figure}}
  553. {\end@dblfloat}
  554. \newcounter{table}
  555. \renewcommand{\thetable}{\@arabic\c@table}
  556. \def\fps@table{tbp}
  557. \def\ftype@table{2}
  558. \def\ext@table{lot}
  559. \def\fnum@table{\tablename~\thetable}
  560. \newenvironment{table}
  561. {\@float{table}}
  562. {\end@float}
  563. \newenvironment{table*}
  564. {\@dblfloat{table}}
  565. {\end@dblfloat}
  566. \newlength\abovecaptionskip
  567. \newlength\belowcaptionskip
  568. %%
  569. %\setlength\abovecaptionskip{10\p@}
  570. %\setlength\belowcaptionskip{0\p@}
  571. \setlength\abovecaptionskip{0\p@}
  572. \setlength\belowcaptionskip{-4\p@}
  573. %%
  574. \long\def\@makecaption#1#2{%
  575. \vskip\abovecaptionskip
  576. \sbox\@tempboxa{#1\hskip1zw#2}%
  577. \ifdim \wd\@tempboxa >\hsize
  578. #1\hskip1zw#2\relax\par
  579. \else
  580. \global \@minipagefalse
  581. \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
  582. \fi
  583. \vskip\belowcaptionskip}
  584. \setlength\arraycolsep{5\p@}
  585. %%
  586. %\setlength\tabcolsep{6\p@}
  587. \setlength\tabcolsep{3\p@}
  588. %%
  589. \setlength\arrayrulewidth{.4\p@}
  590. \setlength\doublerulesep{2\p@}
  591. \setlength\tabbingsep{\labelsep}
  592. \skip\@mpfootins = \skip\footins
  593. \setlength\fboxsep{3\p@}
  594. \setlength\fboxrule{.4\p@}
  595. \renewcommand{\theequation}{\@arabic\c@equation}
  596. \if@enablejfam
  597. \DeclareSymbolFont{mincho}{JY1}{mc}{m}{n}
  598. \DeclareSymbolFontAlphabet{\mathmc}{mincho}
  599. \SetSymbolFont{mincho}{bold}{JY1}{gt}{m}{n}
  600. \DeclareMathAlphabet{\mathgt}{JY1}{gt}{m}{n}
  601. \reDeclareMathAlphabet{\mathrm}{\@mathrm}{\@mathmc}
  602. \reDeclareMathAlphabet{\mathbf}{\@mathbf}{\@mathgt}
  603. \jfam\symmincho
  604. \else
  605. \DeclareRobustCommand{\mathmc}{%
  606. \@latex@error{Command \noexpand\mathmc invalid with\space
  607. `disablejfam' class option.}\@eha
  608. }
  609. \DeclareRobustCommand{\mathgt}{%
  610. \@latex@error{Command \noexpand\mathgt invalid with\space
  611. `disablejfam' class option.}\@eha
  612. }
  613. \fi
  614. \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
  615. \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
  616. \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
  617. \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
  618. \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
  619. \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
  620. \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
  621. \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
  622. \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
  623. \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
  624. \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
  625. \setcounter{tocdepth}{3}
  626. \newcommand{\@pnumwidth}{1.55em}
  627. \newcommand{\@tocrmarg}{2.55em}
  628. \newcommand{\@dotsep}{4.5}
  629. \newdimen\toclineskip
  630. \setlength\toclineskip{\z@}
  631. \newdimen\@lnumwidth
  632. \def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
  633. \def\@dottedtocline#1#2#3#4#5{\ifnum #1>\c@tocdepth \else
  634. \vskip\toclineskip \@plus.2\p@
  635. {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
  636. \parindent #2\relax\@afterindenttrue
  637. \interlinepenalty\@M
  638. \leavevmode
  639. \@lnumwidth #3\relax
  640. \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
  641. {#4}\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep
  642. mu$}\hfill \nobreak\hbox to\@pnumwidth{%
  643. \hss\reset@font\rmfamily \normalcolor #5}\par}\fi}
  644. \def\addcontentsline#1#2#3{%
  645. \protected@write\@auxout
  646. {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
  647. \@temptokena{\thepage}}%
  648. {\string\@writefile{#1}%
  649. {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
  650. }
  651. \newcommand{\tableofcontents}{%
  652. \section*{\contentsname
  653. \@mkboth{\contentsname}{\contentsname}%
  654. }\@starttoc{toc}%
  655. }
  656. \newcommand*{\l@part}[2]{%
  657. \ifnum \c@tocdepth >-2\relax
  658. \addpenalty{\@secpenalty}%
  659. \addvspace{2.25em \@plus\p@}%
  660. \begingroup
  661. \parindent\z@\rightskip\@pnumwidth
  662. \parfillskip-\@pnumwidth
  663. {\leavevmode\large\bfseries
  664. \setlength\@lnumwidth{4zw}%
  665. #1\hfil\nobreak
  666. \hbox to\@pnumwidth{\hss#2}}\par
  667. \nobreak
  668. \if@compatibility
  669. \global\@nobreaktrue
  670. \everypar{\global\@nobreakfalse\everypar{}}%
  671. \fi
  672. \endgroup
  673. \fi}
  674. \newcommand*{\l@section}[2]{%
  675. \ifnum \c@tocdepth >\z@
  676. \addpenalty{\@secpenalty}%
  677. \addvspace{1.0em \@plus\p@}%
  678. \begingroup
  679. \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
  680. \leavevmode\bfseries
  681. \setlength\@lnumwidth{1.5em}%
  682. \advance\leftskip\@lnumwidth \hskip-\leftskip
  683. #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
  684. \endgroup
  685. \fi}
  686. \newcommand*{\l@subsection} {\@dottedtocline{2}{1.5em}{2.3em}}
  687. \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3.8em}{3.2em}}
  688. \newcommand*{\l@paragraph} {\@dottedtocline{4}{7.0em}{4.1em}}
  689. \newcommand*{\l@subparagraph} {\@dottedtocline{5}{10em}{5em}}
  690. \newcommand{\listoffigures}{%
  691. \section*{\listfigurename
  692. \@mkboth{\listfigurename}{\listfigurename}}%
  693. \@starttoc{lof}%
  694. }
  695. \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
  696. \newcommand{\listoftables}{%
  697. \section*{\listtablename
  698. \@mkboth{\listtablename}{\listtablename}}%
  699. \@starttoc{lot}%
  700. }
  701. \let\l@table\l@figure
  702. \newdimen\bibindent
  703. \setlength\bibindent{1.5em}
  704. \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
  705. \newenvironment{thebibliography}[1]
  706. {\section*{\refname\@mkboth{\refname}{\refname}}%
  707. \list{\@biblabel{\@arabic\c@enumiv}}%
  708. {\settowidth\labelwidth{\@biblabel{#1}}%
  709. \leftmargin\labelwidth
  710. \advance\leftmargin\labelsep
  711. \@openbib@code
  712. \usecounter{enumiv}%
  713. \let\p@enumiv\@empty
  714. \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  715. \sloppy
  716. \clubpenalty4000
  717. \@clubpenalty\clubpenalty
  718. \widowpenalty4000%
  719. \sfcode`\.\@m}
  720. {\def\@noitemerr
  721. {\@latex@warning{Empty `thebibliography' environment}}%
  722. \endlist}
  723. \let\@openbib@code\@empty
  724. \newenvironment{theindex}
  725. {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
  726. \columnseprule\z@ \columnsep 35\p@
  727. \twocolumn[\section*{\indexname}]%
  728. \@mkboth{\indexname}{\indexname}%
  729. \thispagestyle{jpl@in}\parindent\z@
  730. \parskip\z@ \@plus .3\p@\relax
  731. \let\item\@idxitem}
  732. {\if@restonecol\onecolumn\else\clearpage\fi}
  733. \newcommand{\@idxitem}{\par\hangindent 40\p@}
  734. \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
  735. \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
  736. \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
  737. \renewcommand{\footnoterule}{%
  738. \kern-3\p@
  739. \hrule width .4\columnwidth
  740. \kern 2.6\p@}
  741. \newcommand\@makefntext[1]{\parindent 1em
  742. \noindent\hbox to 1.8em{\hss\@makefnmark}#1}
  743. \newif\if西暦 \西暦false
  744. \def\西暦{\西暦true}
  745. \def\和暦{\西暦false}
  746. \newcount\heisei \heisei\year \advance\heisei-1988\relax
  747. \def\today{{%
  748. \iftdir
  749. \if西暦
  750. \kansuji\number\year 年
  751. \kansuji\number\month 月
  752. \kansuji\number\day 日
  753. \else
  754. 平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi
  755. \kansuji\number\month 月
  756. \kansuji\number\day 日
  757. \fi
  758. \else
  759. \if西暦
  760. \number\year~年
  761. \number\month~月
  762. \number\day~日
  763. \else
  764. 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
  765. \number\month~月
  766. \number\day~日
  767. \fi
  768. \fi}}
  769. \newcommand{\prepartname}{第}
  770. \newcommand{\postpartname}{部}
  771. \newcommand{\contentsname}{目 次}
  772. \newcommand{\listfigurename}{図 目 次}
  773. \newcommand{\listtablename}{表 目 次}
  774. \newcommand{\refname}{参考文献}
  775. \newcommand{\indexname}{索 引}
  776. \newcommand{\figurename}{図}
  777. \newcommand{\tablename}{表}
  778. \newcommand{\appendixname}{付 録}
  779. \newcommand{\abstractname}{概 要}
  780. \pagestyle{empty}
  781. \pagenumbering{arabic}
  782. \raggedbottom
  783. \if@twocolumn
  784. \twocolumn
  785. \sloppy
  786. \flushbottom
  787. \else
  788. \onecolumn
  789. \fi
  790. \if@twoside
  791. \@mparswitchtrue
  792. \else
  793. \@mparswitchfalse
  794. \fi
  795. \endinput
  796. %%