OSDN Git Service

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