OSDN Git Service

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