OSDN Git Service

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