OSDN Git Service

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