OSDN Git Service

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