OSDN Git Service

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