OSDN Git Service

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