OSDN Git Service

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