OSDN Git Service

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