OSDN Git Service

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