OSDN Git Service

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