OSDN Git Service

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