OSDN Git Service

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