OSDN Git Service

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