OSDN Git Service

luatexja-ruby: added baseheight key
[luatex-ja/luatexja.git] / src / ltjreport.cls
1 %%
2 %% This is file `ltjreport.cls',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ltjclasses.dtx  (with options: `report,yoko')
8 %% 
9 %% IMPORTANT NOTICE:
10 %% 
11 %% For the copyright see the source file.
12 %% 
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from ltjreport.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{ltjreport}
26   [2020-09-30 v1.8f-ltj-20
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 \@titlepagetrue
35 \newif\if@openright
36 \newif\if@openleft
37 \hour\time \divide\hour by 60\relax
38 \@tempcnta\hour \multiply\@tempcnta 60\relax
39 \minute\time \advance\minute-\@tempcnta
40 \newif\if@stysize \@stysizefalse
41 \newif\if@mathrmmc \@mathrmmcfalse
42 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
43   \setlength\paperheight {297mm}%
44   \setlength\paperwidth  {210mm}}
45 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
46   \setlength\paperheight {210mm}
47   \setlength\paperwidth  {148mm}}
48 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
49   \setlength\paperheight {364mm}
50   \setlength\paperwidth  {257mm}}
51 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
52   \setlength\paperheight {257mm}
53   \setlength\paperwidth  {182mm}}
54 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
55   \setlength\paperheight {297mm}%
56   \setlength\paperwidth  {210mm}}
57 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
58   \setlength\paperheight {210mm}
59   \setlength\paperwidth  {148mm}}
60 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
61   \setlength\paperheight {364mm}
62   \setlength\paperwidth  {257mm}}
63 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
64   \setlength\paperheight {257mm}
65   \setlength\paperwidth  {182mm}}
66 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
67   \setlength\paperheight {297mm}%
68   \setlength\paperwidth  {210mm}}
69 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
70   \setlength\paperheight {210mm}
71   \setlength\paperwidth  {148mm}}
72 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
73   \setlength\paperheight {364mm}
74   \setlength\paperwidth  {257mm}}
75 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
76   \setlength\paperheight {257mm}
77   \setlength\paperwidth  {182mm}}
78 \if@compatibility
79   \renewcommand{\@ptsize}{0}
80 \else
81   \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
82 \fi
83 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
84 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
85 \DeclareOption{landscape}{\@landscapetrue
86   \setlength\@tempdima{\paperheight}%
87   \setlength\paperheight{\paperwidth}%
88   \setlength\paperwidth{\@tempdima}}
89 \DeclareOption{tombow}{%
90   \tombowtrue \tombowdatetrue
91   \setlength{\@tombowwidth}{.1\p@}%
92   \@bannertoken{%
93      \jobname\space(\number\year-\two@digits\month-\two@digits\day
94      \space\two@digits\hour:\two@digits\minute)}%
95   \maketombowbox}
96 \DeclareOption{tombo}{%
97   \tombowtrue \tombowdatefalse
98   \setlength{\@tombowwidth}{.1\p@}%
99   \maketombowbox}
100 \DeclareOption{mentuke}{%
101   \tombowtrue \tombowdatefalse
102   \setlength{\@tombowwidth}{\z@}%
103   \maketombowbox}
104 \DeclareOption{tate}{%
105   \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
106 }
107 \DeclareOption{oneside}{\@twosidefalse}
108 \DeclareOption{twoside}{\@twosidetrue}
109 \DeclareOption{onecolumn}{\@twocolumnfalse}
110 \DeclareOption{twocolumn}{\@twocolumntrue}
111 \DeclareOption{titlepage}{\@titlepagetrue}
112 \DeclareOption{notitlepage}{\@titlepagefalse}
113 \if@compatibility
114 \else
115 \DeclareOption{openright}{\@openrighttrue\@openleftfalse}
116 \DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
117 \DeclareOption{openany}{\@openrightfalse\@openleftfalse}
118 \fi
119 \DeclareOption{leqno}{\input{leqno.clo}}
120 \DeclareOption{fleqn}{\input{fleqn.clo}}
121 \DeclareOption{openbib}{%
122   \AtEndOfPackage{%
123    \renewcommand\@openbib@code{%
124       \advance\leftmargin\bibindent
125       \itemindent -\bibindent
126       \listparindent \itemindent
127       \parsep \z@
128       }%
129    \renewcommand\newblock{\par}}}
130 \if@compatibility
131   \@mathrmmctrue
132 \else
133   \DeclareOption{mathrmmc}{\@mathrmmctrue}
134 \fi
135 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
136 \DeclareOption{final}{\setlength\overfullrule{0pt}}
137 \newif\ifptexmin
138 \DeclareOption{ptexmin}{\ptexmintrue}%
139 \DeclareOption{disablejfam}{}
140 \ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany}
141 \ProcessOptions\relax
142 \ifptexmin
143 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
144   function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
145   'ltj.jclasses_load_jfm', 1)}
146 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
147 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
148 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
149 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
150 \ltjglobalsetparameter{differentjfm=both}
151 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
152 \fi
153 \input{ltjsize1\@ptsize.clo}
154
155 \def\Cjascale{0.962216}
156 \if@stysize
157   \setlength\columnsep{2\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 \if@openleft
224   \let\cleardoublepage\pltx@cleartoleftpage
225 \else\if@openright
226   \let\cleardoublepage\pltx@cleartorightpage
227 \fi\fi
228 \def\ps@plain{\let\@mkboth\@gobbletwo
229    \let\ps@jpl@in\ps@plain
230    \let\@oddhead\@empty
231    \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
232    \let\@evenhead\@empty
233    \let\@evenfoot\@oddfoot}
234 \let\ps@jpl@in\ps@plain
235 \def\ps@headnombre{\let\@mkboth\@gobbletwo
236     \let\ps@jpl@in\ps@headnombre
237   \def\@evenhead{\thepage\hfil}%
238   \def\@oddhead{\hfil\thepage}%
239   \let\@oddfoot\@empty\let\@evenfoot\@empty}
240 \def\ps@footnombre{\let\@mkboth\@gobbletwo
241     \let\ps@jpl@in\ps@footnombre
242   \def\@evenfoot{\thepage\hfil}%
243   \def\@oddfoot{\hfil\thepage}%
244   \let\@oddhead\@empty\let\@evenhead\@empty}
245 \if@twoside
246   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
247     \let\@oddfoot\@empty\let\@evenfoot\@empty
248     \def\@evenhead{\thepage\hfil\leftmark}%
249     \def\@oddhead{{\rightmark}\hfil\thepage}%
250     \let\@mkboth\markboth
251   \def\chaptermark##1{\markboth{%
252      \ifnum \c@secnumdepth >\m@ne
253          \@chapapp\thechapter\@chappos\hskip1\zw
254      \fi
255      ##1}{}}%
256   \def\sectionmark##1{\markright{%
257      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
258      ##1}}%
259   }
260 \else % if not twoside
261   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
262     \let\@oddfoot\@empty
263     \def\@oddhead{{\rightmark}\hfil\thepage}%
264     \let\@mkboth\markboth
265 \def\chaptermark##1{\markright{%
266    \ifnum \c@secnumdepth >\m@ne
267        \@chapapp\thechapter\@chappos\hskip1\zw
268    \fi
269    ##1}}%
270   }
271 \fi
272 \if@twoside
273   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
274     \def\@evenhead{\leftmark\hfil}% right page
275     \def\@evenfoot{\thepage\hfil}% right page
276     \def\@oddhead{\hfil\rightmark}% left page
277     \def\@oddfoot{\hfil\thepage}% left page
278   \let\@mkboth\markboth
279 \def\chaptermark##1{\markboth{%
280      \ifnum \c@secnumdepth >\m@ne
281          \@chapapp\thechapter\@chappos\hskip1\zw
282      \fi
283      ##1}{}}%
284   \def\sectionmark##1{\markright{%
285      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
286      ##1}}%
287   }
288 \else % if one column
289   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
290     \def\@oddhead{\hfil\rightmark}%
291     \def\@oddfoot{\hfil\thepage}%
292     \let\@mkboth\markboth
293   \def\chaptermark##1{\markright{%
294      \ifnum \c@secnumdepth >\m@ne
295          \@chapapp\thechapter\@chappos\hskip1\zw
296      \fi
297      ##1}}%
298   }
299 \fi
300 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
301   \let\@oddfoot\@empty\let\@evenfoot\@empty
302   \def\@evenhead{\thepage\hfil\leftmark}%
303   \def\@oddhead{{\rightmark}\hfil\thepage}%
304   \let\@mkboth\@gobbletwo
305   \let\chaptermark\@gobble
306   \let\sectionmark\@gobble
307 }
308 \if@compatibility
309 \newenvironment{titlepage}
310     {%
311      \if@twocolumn\@restonecoltrue\onecolumn
312      \else\@restonecolfalse\newpage\fi
313      \thispagestyle{empty}%
314      \setcounter{page}\z@
315     }%
316     {\if@restonecol\twocolumn\else\newpage\fi
317     }
318 \else
319 \newenvironment{titlepage}
320     {%
321       \if@twocolumn
322         \@restonecoltrue\onecolumn
323       \else
324         \@restonecolfalse\newpage
325       \fi
326       \thispagestyle{empty}%
327       \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017/02/15
328     }%
329     {\if@restonecol\twocolumn \else \newpage \fi
330      \if@twoside\else
331         \setcounter{page}\@ne
332      \fi
333     }
334 \fi
335 \def\p@thanks#1{\footnotemark
336   \protected@xdef\@thanks{\@thanks
337     \protect{\noindent\hbox{\yoko$\m@th^\thefootnote$}#1\protect\par}}}
338 \if@titlepage
339   \newcommand{\maketitle}{\begin{titlepage}%
340   \let\footnotesize\small
341   \let\footnoterule\relax
342   \let\footnote\thanks
343   \null\vfil
344   \vskip 60\p@
345   \begin{center}%
346     {\LARGE \@title \par}%
347     \vskip 3em%
348     {\Large
349      \lineskip .75em%
350       \begin{tabular}[t]{c}%
351         \@author
352       \end{tabular}\par}%
353       \vskip 1.5em%
354     {\large \@date \par}%       % Set date in \large size.
355   \end{center}\par
356   \@thanks\vfil\null
357   \end{titlepage}%
358   \setcounter{footnote}{0}%
359   \global\let\thanks\relax
360   \global\let\maketitle\relax
361   \global\let\p@thanks\relax
362   \global\let\@thanks\@empty
363   \global\let\@author\@empty
364   \global\let\@date\@empty
365   \global\let\@title\@empty
366   \global\let\title\relax
367   \global\let\author\relax
368   \global\let\date\relax
369   \global\let\and\relax
370   }%
371 \else
372   \newcommand{\maketitle}{\par
373   \begingroup
374     \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
375     \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
376       \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
377      \long\def\@makefntext##1{\parindent 1em\noindent
378        \hb@xt@1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
379     \if@twocolumn
380       \ifnum \col@number=\@ne \@maketitle
381       \else \twocolumn[\@maketitle]%
382       \fi
383     \else
384       \newpage
385       \global\@topnum\z@   % Prevents figures from going at top of page.
386       \@maketitle
387     \fi
388      \thispagestyle{jpl@in}\@thanks
389   \endgroup
390   \setcounter{footnote}{0}%
391   \global\let\thanks\relax
392   \global\let\maketitle\relax
393   \global\let\@maketitle\relax
394   \global\let\p@thanks\relax
395   \global\let\@thanks\@empty
396   \global\let\@author\@empty
397   \global\let\@date\@empty
398   \global\let\@title\@empty
399   \global\let\title\relax
400   \global\let\author\relax
401   \global\let\date\relax
402   \global\let\and\relax
403   }
404   \def\@maketitle{%
405   \newpage\null
406   \vskip 2em%
407   \begin{center}%
408   \let\footnote\thanks
409     {\LARGE \@title \par}%
410     \vskip 1.5em%
411     {\large
412       \lineskip .5em%
413       \begin{tabular}[t]{c}%
414         \@author
415       \end{tabular}\par}%
416     \vskip 1em%
417     {\large \@date}%
418   \end{center}%
419   \par\vskip 1.5em}
420 \fi
421 \if@titlepage
422   \newenvironment{abstract}{%
423       \titlepage
424       \null\vfil
425       \@beginparpenalty\@lowpenalty
426       \begin{center}%
427         {\bfseries\abstractname}%
428         \@endparpenalty\@M
429       \end{center}}%
430       {\par\vfil\null\endtitlepage}
431 \else
432   \newenvironment{abstract}{%
433     \if@twocolumn
434       \section*{\abstractname}%
435     \else
436       \small
437       \begin{center}%
438         {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
439       \end{center}%
440       \quotation
441     \fi}{\if@twocolumn\else\endquotation\fi}
442 \fi
443 \newcommand*{\chaptermark}[1]{}
444 \setcounter{secnumdepth}{2}
445 \newcounter{part}
446 \newcounter{chapter}
447 \newcounter{section}[chapter]
448 \newcounter{subsection}[section]
449 \newcounter{subsubsection}[subsection]
450 \newcounter{paragraph}[subsubsection]
451 \newcounter{subparagraph}[paragraph]
452 \renewcommand{\thepart}{\@Roman\c@part}
453 \renewcommand{\thechapter}{\@arabic\c@chapter}
454 \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
455 \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
456 \renewcommand{\thesubsubsection}{%
457    \thesubsection.\@arabic\c@subsubsection}
458 \renewcommand{\theparagraph}{%
459    \thesubsubsection.\@arabic\c@paragraph}
460 \renewcommand{\thesubparagraph}{%
461    \theparagraph.\@arabic\c@subparagraph}
462 \newcommand{\@chapapp}{\prechaptername}
463 \newcommand{\@chappos}{\postchaptername}
464 \newcommand{\part}{%
465   \if@openleft \cleardoublepage \else
466   \if@openright \cleardoublepage \else \clearpage \fi \fi
467   \thispagestyle{empty}%
468   \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
469   \null\vfil
470   \secdef\@part\@spart}
471 \def\@part[#1]#2{%
472   \ifnum \c@secnumdepth >-2\relax
473     \refstepcounter{part}%
474     \addcontentsline{toc}{part}{%
475        \prepartname\thepart\postpartname\hspace{1em}#1}%
476   \else
477     \addcontentsline{toc}{part}{#1}%
478   \fi
479   \markboth{}{}%
480   {\centering
481    \interlinepenalty\@M\normalfont
482    \ifnum \c@secnumdepth >-2\relax
483      \huge\bfseries\prepartname\thepart\postpartname
484      \par\vskip20\p@
485    \fi
486    \Huge\bfseries#2\par}%
487    \@endpart}
488 \def\@spart#1{{%
489   \centering
490   \interlinepenalty\@M\normalfont
491   \Huge\bfseries#1\par}%
492   \@endpart}
493 \def\@endpart{\vfil\newpage
494    \if@twoside
495     \if@openleft %% \if@openleft added (2017/02/15)
496      \null\thispagestyle{empty}\newpage
497     \else\if@openright %% \if@openright added (2016/12/18)
498      \null\thispagestyle{empty}\newpage
499     \fi\fi %% added (2016/12/18, 2017/02/15)
500    \fi
501    \if@tempswa\twocolumn\fi}
502 \newcommand{\chapter}{%
503   \if@openleft \cleardoublepage \else
504   \if@openright \cleardoublepage \else \clearpage \fi \fi
505   \thispagestyle{jpl@in}%
506   \global\@topnum\z@
507   \@afterindenttrue
508   \secdef\@chapter\@schapter}
509 \def\@chapter[#1]#2{%
510   \ifnum \c@secnumdepth >\m@ne
511     \refstepcounter{chapter}%
512     \typeout{\@chapapp\space\thechapter\space\@chappos}%
513     \addcontentsline{toc}{chapter}%
514       {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
515   \else
516     \addcontentsline{toc}{chapter}{#1}%
517   \fi
518   \chaptermark{#1}%
519   \addtocontents{lof}{\protect\addvspace{10\p@}}%
520   \addtocontents{lot}{\protect\addvspace{10\p@}}%
521   \@makechapterhead{#2}\@afterheading}
522 \def\@makechapterhead#1{\hbox{}%
523   \vskip2\Cvs
524   {\parindent\z@
525    \raggedright
526    \normalfont\huge\bfseries
527    \leavevmode
528    \ifnum \c@secnumdepth >\m@ne
529      \setlength\@tempdima{\linewidth}%
530      \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
531      \addtolength\@tempdima{-\wd\z@}%
532      \unhbox\z@\nobreak
533      \vtop{\hsize\@tempdima#1}%
534    \else
535      #1\relax
536    \fi}\nobreak\vskip3\Cvs}
537 \def\@schapter#1{%
538   \@makeschapterhead{#1}\@afterheading
539 }
540 \def\@makeschapterhead#1{\hbox{}%
541   \vskip2\Cvs
542   {\parindent\z@
543    \raggedright
544    \normalfont\huge\bfseries
545    \leavevmode
546    \setlength\@tempdima{\linewidth}%
547    \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
548 \newcommand{\section}{\@startsection{section}{1}{\z@}%
549    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
550    {.5\Cvs \@plus.3\Cvs}%
551    {\normalfont\Large\bfseries}}
552 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
553    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
554    {.5\Cvs \@plus.3\Cvs}%
555    {\normalfont\large\bfseries}}
556 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
557    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
558    {.5\Cvs \@plus.3\Cvs}%
559    {\normalfont\normalsize\bfseries}}
560 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
561    {3.25ex \@plus 1ex \@minus .2ex}%
562    {-1em}%
563    {\normalfont\normalsize\bfseries}}
564 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
565    {3.25ex \@plus 1ex \@minus .2ex}%
566    {-1em}%
567    {\normalfont\normalsize\bfseries}}
568 \newcommand{\appendix}{\par
569   \setcounter{chapter}{0}%
570   \setcounter{section}{0}%
571   \renewcommand{\@chapapp}{\appendixname}%
572   \renewcommand{\@chappos}\space%
573   \renewcommand{\thechapter}{\@Alph\c@chapter}}
574 \if@twocolumn
575   \setlength\leftmargini {2em}
576 \else
577   \setlength\leftmargini {2.5em}
578 \fi
579 \setlength\leftmarginii  {2.2em}
580 \setlength\leftmarginiii {1.87em}
581 \setlength\leftmarginiv  {1.7em}
582 \if@twocolumn
583   \setlength\leftmarginv {.5em}
584   \setlength\leftmarginvi{.5em}
585 \else
586   \setlength\leftmarginv {1em}
587   \setlength\leftmarginvi{1em}
588 \fi
589 \setlength  \labelsep  {.5em}
590 \setlength  \labelwidth{\leftmargini}
591 \addtolength\labelwidth{-\labelsep}
592 \@beginparpenalty -\@lowpenalty
593 \@endparpenalty   -\@lowpenalty
594 \@itempenalty     -\@lowpenalty
595 \renewcommand{\theenumi}{\@arabic\c@enumi}
596 \renewcommand{\theenumii}{\@alph\c@enumii}
597 \renewcommand{\theenumiii}{\@roman\c@enumiii}
598 \renewcommand{\theenumiv}{\@Alph\c@enumiv}
599 \newcommand{\labelenumi}{\theenumi.}
600 \newcommand{\labelenumii}{(\theenumii)}
601 \newcommand{\labelenumiii}{\theenumiii.}
602 \newcommand{\labelenumiv}{\theenumiv.}
603 \renewcommand{\p@enumii}{\theenumi}
604 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
605 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
606 \renewenvironment{enumerate}
607   {\ifnum \@enumdepth >\thr@@\@toodeep\else
608    \advance\@enumdepth\@ne
609    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
610    \expandafter \list \csname label\@enumctr\endcsname{%
611       \ifnum\ltjgetparameter{direction}=3
612          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
613            \else\topsep\z@\fi
614          \parskip\z@ \itemsep\z@ \parsep\z@
615          \labelwidth1\zw \labelsep.3\zw
616          \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
617            \else\leftmargin\leftskip\fi
618          \advance\leftmargin 1\zw
619       \fi
620          \usecounter{\@enumctr}%
621          \def\makelabel##1{\hss\llap{##1}}}%
622    \fi}{\endlist}
623 \newcommand{\labelitemi}{\labelitemfont \textbullet}
624 \newcommand{\labelitemii}{%
625   \ifnum\ltjgetparameter{direction}=3
626      {\labelitemfont \textcircled{~}}
627   \else
628      {\labelitemfont \bfseries\textendash}
629   \fi
630 }
631 \newcommand{\labelitemiii}{\labelitemfont \textasteriskcentered}
632 \newcommand{\labelitemiv}{\labelitemfont \textperiodcentered}
633 \newcommand\labelitemfont{\normalfont}
634 \renewenvironment{itemize}
635   {\ifnum \@itemdepth >\thr@@\@toodeep\else
636    \advance\@itemdepth\@ne
637    \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
638    \expandafter \list \csname \@itemitem\endcsname{%
639       \ifnum\ltjgetparameter{direction}=3
640          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
641            \else\topsep\z@\fi
642          \parskip\z@ \itemsep\z@ \parsep\z@
643          \labelwidth1\zw \labelsep.3\zw
644          \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
645            \else\leftmargin\leftskip\fi
646          \advance\leftmargin 1\zw
647       \fi
648          \def\makelabel##1{\hss\llap{##1}}}%
649    \fi}{\endlist}
650 \newenvironment{description}
651   {\list{}{\labelwidth\z@ \itemindent-\leftmargin
652    \ifnum\ltjgetparameter{direction}=3
653      \leftmargin\leftskip \advance\leftmargin3\Cwd
654      \rightmargin\rightskip
655      \labelsep=1\zw \itemsep\z@
656      \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
657    \fi
658            \let\makelabel\descriptionlabel}}{\endlist}
659 \newcommand{\descriptionlabel}[1]{%
660    \hspace\labelsep\normalfont\bfseries #1}
661 \newenvironment{verse}
662   {\let\\\@centercr
663    \list{}{\itemsep\z@ \itemindent -1.5em%
664            \listparindent\itemindent
665            \rightmargin\leftmargin \advance\leftmargin 1.5em}%
666            \item\relax}{\endlist}
667 \newenvironment{quotation}
668   {\list{}{\listparindent 1.5em%
669            \itemindent\listparindent
670            \rightmargin\leftmargin
671            \parsep\z@ \@plus\p@}%
672            \item\relax}{\endlist}
673 \newenvironment{quote}
674   {\list{}{\rightmargin\leftmargin}%
675            \item\relax}{\endlist}
676 \newcounter{figure}[chapter]
677 \renewcommand{\thefigure}{%
678   \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
679 \def\fps@figure{tbp}
680 \def\ftype@figure{1}
681 \def\ext@figure{lof}
682 \def\fnum@figure{\figurename~\thefigure}
683 \newenvironment{figure}
684                {\@float{figure}}
685                {\end@float}
686 \newenvironment{figure*}
687                {\@dblfloat{figure}}
688                {\end@dblfloat}
689 \newcounter{table}[chapter]
690 \renewcommand{\thetable}{%
691   \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
692 \def\fps@table{tbp}
693 \def\ftype@table{2}
694 \def\ext@table{lot}
695 \def\fnum@table{\tablename~\thetable}
696 \newenvironment{table}
697                {\@float{table}}
698                {\end@float}
699 \newenvironment{table*}
700                {\@dblfloat{table}}
701                {\end@dblfloat}
702 \newlength\abovecaptionskip
703 \newlength\belowcaptionskip
704 \setlength\abovecaptionskip{10\p@}
705 \setlength\belowcaptionskip{0\p@}
706 \long\def\@makecaption#1#2{%
707   \vskip\abovecaptionskip
708   \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
709     \else\sbox\@tempboxa{#1: #2}%
710   \fi
711   \ifdim \wd\@tempboxa >\hsize
712     \ifnum\ltjgetparameter{direction}=3  #1\hskip1\zw#2\relax\par
713       \else #1: #2\relax\par\fi
714   \else
715     \global \@minipagefalse
716     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
717   \fi
718   \vskip\belowcaptionskip}
719 \setlength\arraycolsep{5\p@}
720 \setlength\tabcolsep{6\p@}
721 \setlength\arrayrulewidth{.4\p@}
722 \setlength\doublerulesep{2\p@}
723 \setlength\tabbingsep{\labelsep}
724 \skip\@mpfootins = \skip\footins
725 \setlength\fboxsep{3\p@}
726 \setlength\fboxrule{.4\p@}
727 \@addtoreset{equation}{chapter}
728 \renewcommand{\theequation}{%
729   \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
730 \unless\ifltj@disablejfam
731 \if@compatibility\else
732   \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
733   \DeclareSymbolFontAlphabet{\mathmc}{mincho}
734   \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
735   \jfam\symmincho
736   \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
737 \fi
738 \if@mathrmmc
739   \AtBeginDocument{%
740   \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
741   \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
742 }%
743 \fi
744 \fi
745 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
746 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
747 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
748 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
749 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
750 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
751 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
752 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
753 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
754 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
755 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
756 \setcounter{tocdepth}{2}
757 \newcommand{\@pnumwidth}{1.55em}
758 \newcommand{\@tocrmarg}{2.55em}
759 \newcommand{\@dotsep}{4.5}
760 \newdimen\toclineskip
761 \setlength\toclineskip{\z@}
762 \newdimen\@lnumwidth
763 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
764 \def\@dottedtocline#1#2#3#4#5{%
765   \ifnum #1>\c@tocdepth \else
766     \vskip\toclineskip \@plus.2\p@
767     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
768      \parindent #2\relax\@afterindenttrue
769      \interlinepenalty\@M
770      \leavevmode
771      \@lnumwidth #3\relax
772      \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
773      {#4}\nobreak
774      \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
775      \hfill\nobreak
776      \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
777      \par}%
778   \fi}
779 \providecommand*\protected@file@percent{}
780 \def\addcontentsline#1#2#3{%
781   \protected@write\@auxout
782     {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
783      \@temptokena{\thepage}%
784     }{\string\@writefile{#1}%
785        {\protect\contentsline{#2}{#3}{\the\@temptokena}{}%
786 \protected@file@percent}}%
787 }
788 \newcommand{\tableofcontents}{%
789   \if@twocolumn\@restonecoltrue\onecolumn
790   \else\@restonecolfalse\fi
791   \chapter*{\contentsname
792     \@mkboth{\contentsname}{\contentsname}%
793   }\@starttoc{toc}%
794   \if@restonecol\twocolumn\fi
795 }
796 \newcommand*{\l@part}[2]{%
797   \ifnum \c@tocdepth >-2\relax
798     \addpenalty{-\@highpenalty}%
799     \addvspace{2.25em \@plus\p@}%
800     \begingroup
801     \parindent\z@\rightskip\@pnumwidth
802     \parfillskip-\@pnumwidth
803     {\leavevmode\large\bfseries
804      \setlength\@lnumwidth{4\zw}%
805      #1\hfil\nobreak
806      \hb@xt@\@pnumwidth{\hss#2}}\par
807     \nobreak
808     \global\@nobreaktrue
809     \everypar{\global\@nobreakfalse\everypar{}}%
810      \endgroup
811   \fi}
812 \newcommand*{\l@chapter}[2]{%
813   \ifnum \c@tocdepth >\m@ne
814     \addpenalty{-\@highpenalty}%
815     \addvspace{1.0em \@plus\p@}%
816     \begingroup
817       \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
818       \leavevmode\bfseries
819       \setlength\@lnumwidth{4\zw}%
820       \advance\leftskip\@lnumwidth \hskip-\leftskip
821       #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
822       \penalty\@highpenalty
823     \endgroup
824   \fi}
825 \newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
826 \newcommand*{\l@subsection}   {\@dottedtocline{2}{3.8em}{3.2em}}
827 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
828 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{10em}{5em}}
829 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
830 \newcommand{\listoffigures}{%
831   \if@twocolumn\@restonecoltrue\onecolumn
832   \else\@restonecolfalse\fi
833   \chapter*{\listfigurename}%
834   \@mkboth{\listfigurename}{\listfigurename}%
835   \@starttoc{lof}%
836   \if@restonecol\twocolumn\fi
837 }
838 \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
839 \newcommand{\listoftables}{%
840   \if@twocolumn\@restonecoltrue\onecolumn
841   \else\@restonecolfalse\fi
842   \chapter*{\listtablename}%
843   \@mkboth{\listtablename}{\listtablename}%
844   \@starttoc{lot}%
845   \if@restonecol\twocolumn\fi
846 }
847 \let\l@table\l@figure
848 \newdimen\bibindent
849 \setlength\bibindent{1.5em}
850 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
851 \newenvironment{thebibliography}[1]
852 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
853    \list{\@biblabel{\@arabic\c@enumiv}}%
854         {\settowidth\labelwidth{\@biblabel{#1}}%
855          \leftmargin\labelwidth
856          \advance\leftmargin\labelsep
857          \@openbib@code
858          \usecounter{enumiv}%
859          \let\p@enumiv\@empty
860          \renewcommand\theenumiv{\@arabic\c@enumiv}}%
861    \sloppy
862    \clubpenalty4000
863    \@clubpenalty\clubpenalty
864    \widowpenalty4000%
865    \sfcode`\.\@m}
866   {\def\@noitemerr
867     {\@latex@warning{Empty `thebibliography' environment}}%
868    \endlist}
869 \let\@openbib@code\@empty
870 \newenvironment{theindex}
871   {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
872    \twocolumn[\@makeschapterhead{\indexname}]%
873    \@mkboth{\indexname}{\indexname}%
874    \thispagestyle{jpl@in}\parindent\z@
875    \parskip\z@ \@plus .3\p@\relax
876    \columnseprule\z@ \columnsep 35\p@
877    \let\item\@idxitem}
878   {\if@restonecol\onecolumn\else\clearpage\fi}
879 \newcommand{\@idxitem}{\par\hangindent 40\p@}
880 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
881 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
882 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
883 \renewcommand{\footnoterule}{%
884   \kern-3\p@
885   \hrule\@width.4\columnwidth
886   \kern2.6\p@}
887 \@addtoreset{footnote}{chapter}
888 \newcommand\@makefntext[1]{\parindent 1em
889   \noindent\hb@xt@ 1.8em{\hss\@makefnmark}#1}
890 \newif\if西暦 \西暦true
891 \def\西暦{\西暦true}
892 \def\和暦{\西暦false}
893 \newcount\heisei \heisei\year \advance\heisei-1988\relax
894 \def\pltx@today@year@#1{%
895   \ifnum\numexpr\year-#1=1 元\else
896     \ifnum\ltjgetparameter{direction}=3
897       \kansuji\numexpr\year-#1\relax
898     \else
899       \number\numexpr\year-#1\relax\nobreak
900     \fi
901   \fi 年
902 }
903 \def\pltx@today@year{%
904   \ifnum\numexpr\year*10000+\month*100+\day<19890108
905     昭和\pltx@today@year@{1925}%
906   \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
907     平成\pltx@today@year@{1988}%
908   \else
909     令和\pltx@today@year@{2018}%
910   \fi\fi}
911 \def\today{{%
912   \if西暦
913     \ifnum\ltjgetparameter{direction}=3 \kansuji\year
914     \else\number\year\nobreak\fi 年
915   \else
916     \pltx@today@year
917   \fi
918   \ifnum\ltjgetparameter{direction}=3
919     \kansuji\month 月
920     \kansuji\day 日
921   \else
922     \number\month\nobreak 月
923     \number\day\nobreak 日
924   \fi}}
925 \newcommand{\prepartname}{第}
926 \newcommand{\postpartname}{部}
927 \newcommand{\prechaptername}{第}
928 \newcommand{\postchaptername}{章}
929 \newcommand{\contentsname}{目 次}
930 \newcommand{\listfigurename}{図 目 次}
931 \newcommand{\listtablename}{表 目 次}
932 \newcommand{\bibname}{関連図書}
933 \newcommand{\indexname}{索 引}
934 \newcommand{\figurename}{図}
935 \newcommand{\tablename}{表}
936 \newcommand{\appendixname}{付 録}
937 \newcommand{\abstractname}{概 要}
938 \pagestyle{plain}
939 \pagenumbering{arabic}
940 \raggedbottom
941 \fnfixbottomtrue % 2017-02-19
942 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
943 \if@twocolumn
944   \twocolumn
945   \sloppy
946 \else
947   \onecolumn
948 \fi
949 \if@twoside
950   \@mparswitchtrue
951 \else
952   \@mparswitchfalse
953 \fi
954 %% この節のコードは|filehook|パッケージ(Lua\TeX-ja読み込み時に自動でロードされます)
955 %% の機能を用いています。
956 \ltj@ExecuteBeforePackage*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
957 \ltj@ExecuteAfterPackage*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
958 \endinput
959 %%
960 %% End of file `ltjreport.cls'.