OSDN Git Service

microtype
[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
25 \NeedsTeXFormat{LaTeX2e}
26 \ProvidesClass{ltjtarticle}
27   [2019/08/12 v1.8b-ltj-17
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 \AtEndOfPackageFile{everyshi}{%
107   \def\@EveryShipout@Output{%
108     \setbox8\vbox{%
109       \yoko
110       \@EveryShipout@Hook
111       \@EveryShipout@AtNextHook
112       \global\setbox\luatexoutputbox=\box\luatexoutputbox
113     }%
114     \gdef\@EveryShipout@AtNextHook{}%
115     \@EveryShipout@Org@Shipout\box\luatexoutputbox
116   }}
117 \DeclareOption{oneside}{\@twosidefalse}
118 \DeclareOption{twoside}{\@twosidetrue}
119 \DeclareOption{onecolumn}{\@twocolumnfalse}
120 \DeclareOption{twocolumn}{\@twocolumntrue}
121 \DeclareOption{titlepage}{\@titlepagetrue}
122 \DeclareOption{notitlepage}{\@titlepagefalse}
123 \DeclareOption{leqno}{\input{leqno.clo}}
124 \DeclareOption{fleqn}{\input{fleqn.clo}}
125 \DeclareOption{openbib}{%
126   \AtEndOfPackage{%
127    \renewcommand\@openbib@code{%
128       \advance\leftmargin\bibindent
129       \itemindent -\bibindent
130       \listparindent \itemindent
131       \parsep \z@
132       }%
133    \renewcommand\newblock{\par}}}
134 \if@compatibility
135   \@mathrmmctrue
136 \else
137   \DeclareOption{mathrmmc}{\@mathrmmctrue}
138 \fi
139 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
140 \DeclareOption{final}{\setlength\overfullrule{0pt}}
141 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
142   function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
143   'ltj.jclasses_load_jfm', 1)}
144 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
145 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
146 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
147 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
148 \ltjglobalsetparameter{differentjfm=both}
149 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
150 \DeclareOption{disablejfam}{}
151 \ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,tate}
152 \ProcessOptions\relax
153 \input{ltjtsize1\@ptsize.clo}
154 \RequirePackage{lltjext}
155 \def\Cjascale{0.962216}
156 \if@stysize
157   \setlength\columnsep{3\Cwd}
158 \else
159   \setlength\columnsep{10\p@}
160 \fi
161 \setlength\columnseprule{0\p@}
162 \iftombow
163   \newlength{\stockwidth}
164   \newlength{\stockheight}
165   \setlength{\stockwidth}{\paperwidth}
166   \setlength{\stockheight}{\paperheight}
167   \advance \stockwidth 2in
168   \advance \stockheight 2in
169   \ifdefined\pdfpagewidth
170     \setlength{\pdfpagewidth}{\stockwidth}
171     \setlength{\pdfpageheight}{\stockheight}
172   \else
173     \setlength{\pagewidth}{\stockwidth}
174     \setlength{\pageheight}{\stockheight}
175   \fi
176 \else
177   \ifdefined\pdfpagewidth
178     \setlength{\pdfpagewidth}{\paperwidth}
179     \setlength{\pdfpageheight}{\paperheight}
180   \else
181     \setlength{\pagewidth}{\paperwidth}
182     \setlength{\pageheight}{\paperheight}
183   \fi
184 \fi
185 \setlength\lineskip{1\p@}
186 \setlength\normallineskip{1\p@}
187 \renewcommand{\baselinestretch}{}
188 \setlength\parskip{0\p@ \@plus \p@}
189 \setlength\parindent{1\Cwd}
190 \@lowpenalty   51
191 \@medpenalty  151
192 \@highpenalty 301
193 \setcounter{topnumber}{2}
194 \setcounter{bottomnumber}{1}
195 \setcounter{totalnumber}{3}
196 \setcounter{dbltopnumber}{2}
197 \renewcommand{\topfraction}{.7}
198 \renewcommand{\bottomfraction}{.3}
199 \renewcommand{\textfraction}{.2}
200 \renewcommand{\floatpagefraction}{.5}
201 \renewcommand{\dbltopfraction}{.7}
202 \renewcommand{\dblfloatpagefraction}{.5}
203 \def\pltx@cleartorightpage{\clearpage\if@twoside
204   \unless\ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
205     \hbox{}\thispagestyle{empty}\newpage
206     \if@twocolumn\hbox{}\newpage\fi
207   \fi\fi}
208 \def\pltx@cleartoleftpage{\clearpage\if@twoside
209   \ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
210     \hbox{}\thispagestyle{empty}\newpage
211     \if@twocolumn\hbox{}\newpage\fi
212   \fi\fi}
213 \def\pltx@cleartooddpage{\clearpage\if@twoside
214   \ifodd\c@page\else
215     \hbox{}\thispagestyle{empty}\newpage
216     \if@twocolumn\hbox{}\newpage\fi
217   \fi\fi}
218 \def\pltx@cleartoevenpage{\clearpage\if@twoside
219   \ifodd\c@page
220     \hbox{}\thispagestyle{empty}\newpage
221     \if@twocolumn\hbox{}\newpage\fi
222   \fi\fi}
223 \def\ps@plain{\let\@mkboth\@gobbletwo
224    \let\ps@jpl@in\ps@plain
225    \let\@oddhead\@empty
226    \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
227    \let\@evenhead\@empty
228    \let\@evenfoot\@oddfoot}
229 \let\ps@jpl@in\ps@plain
230 \def\ps@headnombre{\let\@mkboth\@gobbletwo
231     \let\ps@jpl@in\ps@headnombre
232   \def\@evenhead{\hfil\thepage}%
233   \def\@oddhead{\thepage\hfil}%
234   \let\@oddfoot\@empty\let\@evenfoot\@empty}
235 \def\ps@footnombre{\let\@mkboth\@gobbletwo
236     \let\ps@jpl@in\ps@footnombre
237   \def\@evenfoot{\hfil\thepage}%
238   \def\@oddfoot{\thepage\hfil}%
239   \let\@oddhead\@empty\let\@evenhead\@empty}
240 \if@twoside
241   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
242     \let\@oddfoot\@empty\let\@evenfoot\@empty
243     \def\@evenhead{{\leftmark}\hfil\thepage}%
244     \def\@oddhead{\thepage\hfil\rightmark}%
245     \let\@mkboth\markboth
246     \def\sectionmark##1{\markboth{%
247        \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
248        ##1}{}}%
249     \def\subsectionmark##1{\markright{%
250        \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1\zw\fi
251        ##1}}%
252   }
253 \else % if not twoside
254   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
255     \let\@oddfoot\@empty
256     \def\@oddhead{\thepage\hfil\rightmark}%
257     \let\@mkboth\markboth
258   \def\sectionmark##1{\markright{%
259      \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1\zw\fi
260      ##1}}%
261   }
262 \fi
263 \if@twoside
264   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
265     \def\@evenhead{\hfil\leftmark}% right page
266     \def\@evenfoot{\hfil\thepage}% right page
267     \def\@oddhead{\rightmark\hfil}% left page
268     \def\@oddfoot{\thepage\hfil}% left page
269   \let\@mkboth\markboth
270   \def\sectionmark##1{\markboth{%
271      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
272      ##1}{}}%
273   \def\subsectionmark##1{\markright{%
274      \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1\zw\fi
275      ##1}}%
276   }
277 \else % if one column
278   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
279     \def\@oddhead{\rightmark\hfil}%
280     \def\@oddfoot{\thepage\hfil}%
281     \let\@mkboth\markboth
282   \def\sectionmark##1{\markright{%
283      \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1\zw\fi
284      ##1}}%
285   }
286 \fi
287 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
288   \let\@oddfoot\@empty\let\@evenfoot\@empty
289   \def\@evenhead{{\leftmark}\hfil\thepage}%
290   \def\@oddhead{\thepage\hfil\rightmark}%
291   \let\@mkboth\@gobbletwo
292   \let\sectionmark\@gobble
293   \let\subsectionmark\@gobble
294 }
295 \if@compatibility
296 \newenvironment{titlepage}
297     {%
298      \if@twocolumn\@restonecoltrue\onecolumn
299      \else\@restonecolfalse\newpage\fi
300      \thispagestyle{empty}%
301      \setcounter{page}\z@
302     }%
303     {\if@restonecol\twocolumn\else\newpage\fi
304     }
305 \else
306 \newenvironment{titlepage}
307     {%
308       \if@twocolumn
309         \@restonecoltrue\onecolumn
310       \else
311         \@restonecolfalse\newpage
312       \fi
313       \thispagestyle{empty}%
314       \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017/02/15
315     }%
316     {\if@restonecol\twocolumn \else \newpage \fi
317      \if@twoside\else
318         \setcounter{page}\@ne
319      \fi
320     }
321 \fi
322 \def\p@thanks#1{\footnotemark
323   \protected@xdef\@thanks{\@thanks
324     \protect{\noindent\hbox{\yoko$\m@th^\thefootnote$}#1\protect\par}}}
325 \if@titlepage
326   \newcommand{\maketitle}{\begin{titlepage}%
327   \let\footnotesize\small
328   \let\footnoterule\relax
329   \let\thanks\p@thanks
330   \let\footnote\thanks
331   \vbox to\textheight\bgroup\tate\hsize\textwidth
332   \null\vfil
333   \vskip 60\p@
334   \begin{center}%
335     {\LARGE \@title \par}%
336     \vskip 3em%
337     {\Large
338      \lineskip .75em%
339       \begin{tabular}[t]{c}%
340         \@author
341       \end{tabular}\par}%
342       \vskip 1.5em%
343     {\large \@date \par}%       % Set date in \large size.
344   \end{center}\par
345   \vfil{\centering\@thanks}\vfil\null
346   \egroup
347   \end{titlepage}%
348   \setcounter{footnote}{0}%
349   \global\let\thanks\relax
350   \global\let\maketitle\relax
351   \global\let\p@thanks\relax
352   \global\let\@thanks\@empty
353   \global\let\@author\@empty
354   \global\let\@date\@empty
355   \global\let\@title\@empty
356   \global\let\title\relax
357   \global\let\author\relax
358   \global\let\date\relax
359   \global\let\and\relax
360   }%
361 \else
362   \newcommand{\maketitle}{\par
363   \begingroup
364     \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
365     \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
366       \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
367     \long\def\@makefntext##1{\parindent 1\zw\noindent
368        \hb@xt@ 2\zw{\hss\@makefnmark}##1}%
369     \if@twocolumn
370       \ifnum \col@number=\@ne \@maketitle
371       \else \twocolumn[\@maketitle]%
372       \fi
373     \else
374       \newpage
375       \global\@topnum\z@   % Prevents figures from going at top of page.
376       \@maketitle
377     \fi
378      \thispagestyle{jpl@in}\@thanks
379   \endgroup
380   \setcounter{footnote}{0}%
381   \global\let\thanks\relax
382   \global\let\maketitle\relax
383   \global\let\@maketitle\relax
384   \global\let\p@thanks\relax
385   \global\let\@thanks\@empty
386   \global\let\@author\@empty
387   \global\let\@date\@empty
388   \global\let\@title\@empty
389   \global\let\title\relax
390   \global\let\author\relax
391   \global\let\date\relax
392   \global\let\and\relax
393   }
394   \def\@maketitle{%
395   \newpage\null
396   \vskip 2em%
397   \begin{center}%
398   \let\footnote\p@thanks
399     {\LARGE \@title \par}%
400     \vskip 1.5em%
401     {\large
402       \lineskip .5em%
403       \begin{tabular}[t]{c}%
404         \@author
405       \end{tabular}\par}%
406     \vskip 1em%
407     {\large \@date}%
408   \end{center}%
409   \par\vskip 1.5em}
410 \fi
411 \if@titlepage
412   \newenvironment{abstract}{%
413       \titlepage
414       \null\vfil
415       \@beginparpenalty\@lowpenalty
416       \begin{center}%
417         {\bfseries\abstractname}%
418         \@endparpenalty\@M
419       \end{center}}%
420       {\par\vfil\null\endtitlepage}
421 \else
422   \newenvironment{abstract}{%
423     \if@twocolumn
424       \section*{\abstractname}%
425     \else
426       \small
427       \begin{center}%
428         {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
429       \end{center}%
430       \quotation
431     \fi}{\if@twocolumn\else\endquotation\fi}
432 \fi
433 \setcounter{secnumdepth}{3}
434 \newcounter{part}
435 \newcounter{section}
436 \newcounter{subsection}[section]
437 \newcounter{subsubsection}[subsection]
438 \newcounter{paragraph}[subsubsection]
439 \newcounter{subparagraph}[paragraph]
440 \renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
441 \renewcommand{\thesection}{\rensuji{\@arabic\c@section}}
442 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
443 \renewcommand{\thesubsubsection}{%
444    \thesubsection・\rensuji{\@arabic\c@subsubsection}}
445 \renewcommand{\theparagraph}{%
446    \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
447 \renewcommand{\thesubparagraph}{%
448    \theparagraph・\rensuji{\@arabic\c@subparagraph}}
449 \newcommand{\part}{%
450   \if@noskipsec \leavevmode \fi
451   \par\addvspace{4ex}%
452   \@afterindenttrue
453   \secdef\@part\@spart}
454 \def\@part[#1]#2{%
455   \ifnum \c@secnumdepth >\m@ne
456     \refstepcounter{part}%
457     \addcontentsline{toc}{part}{%
458        \prepartname\thepart\postpartname\hspace{1\zw}#1}%
459   \else
460     \addcontentsline{toc}{part}{#1}%
461   \fi
462   \markboth{}{}%
463   {\parindent\z@\raggedright
464    \interlinepenalty\@M\normalfont
465    \ifnum \c@secnumdepth >\m@ne
466      \Large\bfseries\prepartname\thepart\postpartname
467      \par\nobreak
468    \fi
469    \huge\bfseries#2\par}%
470   \nobreak\vskip3ex\@afterheading}
471 \def\@spart#1{{%
472   \parindent\z@\raggedright
473   \interlinepenalty\@M\normalfont
474   \huge\bfseries#1\par}%
475   \nobreak\vskip3ex\@afterheading}
476 \newcommand{\section}{\@startsection{section}{1}{\z@}%
477    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
478    {.5\Cvs \@plus.3\Cvs}%
479    {\normalfont\Large\bfseries}}
480 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
481    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
482    {.5\Cvs \@plus.3\Cvs}%
483    {\normalfont\large\bfseries}}
484 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
485    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
486    {.5\Cvs \@plus.3\Cvs}%
487    {\normalfont\normalsize\bfseries}}
488 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
489    {3.25ex \@plus 1ex \@minus .2ex}%
490    {-1em}%
491    {\normalfont\normalsize\bfseries}}
492 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
493    {3.25ex \@plus 1ex \@minus .2ex}%
494    {-1em}%
495    {\normalfont\normalsize\bfseries}}
496 \newcommand{\appendix}{\par
497   \setcounter{section}{0}%
498   \setcounter{subsection}{0}%
499   \renewcommand{\thesection}{\rensuji{\@Alph\c@section}}}
500 \if@twocolumn
501   \setlength\leftmargini {2em}
502 \else
503   \setlength\leftmargini {2.5em}
504 \fi
505 \setlength\leftmarginii  {2.2em}
506 \setlength\leftmarginiii {1.87em}
507 \setlength\leftmarginiv  {1.7em}
508 \if@twocolumn
509   \setlength\leftmarginv {.5em}
510   \setlength\leftmarginvi{.5em}
511 \else
512   \setlength\leftmarginv {1em}
513   \setlength\leftmarginvi{1em}
514 \fi
515 \setlength  \labelsep  {.5em}
516 \setlength  \labelwidth{\leftmargini}
517 \addtolength\labelwidth{-\labelsep}
518 \@beginparpenalty -\@lowpenalty
519 \@endparpenalty   -\@lowpenalty
520 \@itempenalty     -\@lowpenalty
521 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
522 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
523 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
524 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
525 \newcommand{\labelenumi}{\theenumi}
526 \newcommand{\labelenumii}{\theenumii}
527 \newcommand{\labelenumiii}{\theenumiii}
528 \newcommand{\labelenumiv}{\theenumiv}
529 \renewcommand{\p@enumii}{\theenumi}
530 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
531 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
532 \renewenvironment{enumerate}
533   {\ifnum \@enumdepth >\thr@@\@toodeep\else
534    \advance\@enumdepth\@ne
535    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
536    \expandafter \list \csname label\@enumctr\endcsname{%
537       \ifnum\ltjgetparameter{direction}=3
538          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
539            \else\topsep\z@\fi
540          \parskip\z@ \itemsep\z@ \parsep\z@
541          \labelwidth1\zw \labelsep.3\zw
542          \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
543            \else\leftmargin\leftskip\fi
544          \advance\leftmargin 1\zw
545       \fi
546          \usecounter{\@enumctr}%
547          \def\makelabel##1{\hss\llap{##1}}}%
548    \fi}{\endlist}
549 \newcommand{\labelitemi}{\textbullet}
550 \newcommand{\labelitemii}{%
551   \ifnum\ltjgetparameter{direction}=3
552      {\textcircled{~}}
553   \else
554      {\normalfont\bfseries\textendash}
555   \fi
556 }
557 \newcommand{\labelitemiii}{\textasteriskcentered}
558 \newcommand{\labelitemiv}{\textperiodcentered}
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'.