OSDN Git Service

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