OSDN Git Service

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