OSDN Git Service

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