OSDN Git Service

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