OSDN Git Service

lltjdef.sty
[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/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 \@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}{\labelitemfont \textbullet}
619 \newcommand{\labelitemii}{%
620   \ifnum\ltjgetparameter{direction}=3
621      {\labelitemfont \textcircled{~}}
622   \else
623      {\labelitemfont \bfseries\textendash}
624   \fi
625 }
626 \newcommand{\labelitemiii}{\labelitemfont \textasteriskcentered}
627 \newcommand{\labelitemiv}{\labelitemfont \textperiodcentered}
628 \newcommand\labelitemfont{\normalfont}
629 \renewenvironment{itemize}
630   {\ifnum \@itemdepth >\thr@@\@toodeep\else
631    \advance\@itemdepth\@ne
632    \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
633    \expandafter \list \csname \@itemitem\endcsname{%
634       \ifnum\ltjgetparameter{direction}=3
635          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
636            \else\topsep\z@\fi
637          \parskip\z@ \itemsep\z@ \parsep\z@
638          \labelwidth1\zw \labelsep.3\zw
639          \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
640            \else\leftmargin\leftskip\fi
641          \advance\leftmargin 1\zw
642       \fi
643          \def\makelabel##1{\hss\llap{##1}}}%
644    \fi}{\endlist}
645 \newenvironment{description}
646   {\list{}{\labelwidth\z@ \itemindent-\leftmargin
647    \ifnum\ltjgetparameter{direction}=3
648      \leftmargin\leftskip \advance\leftmargin3\Cwd
649      \rightmargin\rightskip
650      \labelsep=1\zw \itemsep\z@
651      \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
652    \fi
653            \let\makelabel\descriptionlabel}}{\endlist}
654 \newcommand{\descriptionlabel}[1]{%
655    \hspace\labelsep\normalfont\bfseries #1}
656 \newenvironment{verse}
657   {\let\\\@centercr
658    \list{}{\itemsep\z@ \itemindent -1.5em%
659            \listparindent\itemindent
660            \rightmargin\leftmargin \advance\leftmargin 1.5em}%
661            \item\relax}{\endlist}
662 \newenvironment{quotation}
663   {\list{}{\listparindent 1.5em%
664            \itemindent\listparindent
665            \rightmargin\leftmargin
666            \parsep\z@ \@plus\p@}%
667            \item\relax}{\endlist}
668 \newenvironment{quote}
669   {\list{}{\rightmargin\leftmargin}%
670            \item\relax}{\endlist}
671 \newcounter{figure}[chapter]
672 \renewcommand{\thefigure}{%
673   \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
674 \def\fps@figure{tbp}
675 \def\ftype@figure{1}
676 \def\ext@figure{lof}
677 \def\fnum@figure{\figurename~\thefigure}
678 \newenvironment{figure}
679                {\@float{figure}}
680                {\end@float}
681 \newenvironment{figure*}
682                {\@dblfloat{figure}}
683                {\end@dblfloat}
684 \newcounter{table}[chapter]
685 \renewcommand{\thetable}{%
686   \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
687 \def\fps@table{tbp}
688 \def\ftype@table{2}
689 \def\ext@table{lot}
690 \def\fnum@table{\tablename~\thetable}
691 \newenvironment{table}
692                {\@float{table}}
693                {\end@float}
694 \newenvironment{table*}
695                {\@dblfloat{table}}
696                {\end@dblfloat}
697 \newlength\abovecaptionskip
698 \newlength\belowcaptionskip
699 \setlength\abovecaptionskip{10\p@}
700 \setlength\belowcaptionskip{0\p@}
701 \long\def\@makecaption#1#2{%
702   \vskip\abovecaptionskip
703   \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
704     \else\sbox\@tempboxa{#1: #2}%
705   \fi
706   \ifdim \wd\@tempboxa >\hsize
707     \ifnum\ltjgetparameter{direction}=3  #1\hskip1\zw#2\relax\par
708       \else #1: #2\relax\par\fi
709   \else
710     \global \@minipagefalse
711     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
712   \fi
713   \vskip\belowcaptionskip}
714 \setlength\arraycolsep{5\p@}
715 \setlength\tabcolsep{6\p@}
716 \setlength\arrayrulewidth{.4\p@}
717 \setlength\doublerulesep{2\p@}
718 \setlength\tabbingsep{\labelsep}
719 \skip\@mpfootins = \skip\footins
720 \setlength\fboxsep{3\p@}
721 \setlength\fboxrule{.4\p@}
722 \@addtoreset{equation}{chapter}
723 \renewcommand{\theequation}{%
724   \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
725 \unless\ifltj@disablejfam
726 \if@compatibility\else
727   \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
728   \DeclareSymbolFontAlphabet{\mathmc}{mincho}
729   \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
730   \jfam\symmincho
731   \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
732 \fi
733 \if@mathrmmc
734   \AtBeginDocument{%
735   \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
736   \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
737 }%
738 \fi
739 \fi
740 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
741 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
742 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
743 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
744 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
745 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
746 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
747 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
748 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
749 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
750 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
751 \setcounter{tocdepth}{2}
752 \newcommand{\@pnumwidth}{1.55em}
753 \newcommand{\@tocrmarg}{2.55em}
754 \newcommand{\@dotsep}{4.5}
755 \newdimen\toclineskip
756 \setlength\toclineskip{\z@}
757 \newdimen\@lnumwidth
758 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
759 \def\@dottedtocline#1#2#3#4#5{%
760   \ifnum #1>\c@tocdepth \else
761     \vskip\toclineskip \@plus.2\p@
762     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
763      \parindent #2\relax\@afterindenttrue
764      \interlinepenalty\@M
765      \leavevmode
766      \@lnumwidth #3\relax
767      \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
768      {#4}\nobreak
769      \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
770      \hfill\nobreak
771      \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
772      \par}%
773   \fi}
774 \providecommand*\protected@file@percent{}
775 \def\addcontentsline#1#2#3{%
776   \protected@write\@auxout
777     {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
778      \@temptokena{\thepage}}%
779     {\string\@writefile{#1}%
780        {\protect\contentsline{#2}{#3}{\the\@temptokena}%
781 \protected@file@percent}}%
782 }
783 \newcommand{\tableofcontents}{%
784   \if@twocolumn\@restonecoltrue\onecolumn
785   \else\@restonecolfalse\fi
786   \chapter*{\contentsname
787     \@mkboth{\contentsname}{\contentsname}%
788   }\@starttoc{toc}%
789   \if@restonecol\twocolumn\fi
790 }
791 \newcommand*{\l@part}[2]{%
792   \ifnum \c@tocdepth >-2\relax
793     \addpenalty{-\@highpenalty}%
794     \addvspace{2.25em \@plus\p@}%
795     \begingroup
796     \parindent\z@\rightskip\@pnumwidth
797     \parfillskip-\@pnumwidth
798     {\leavevmode\large\bfseries
799      \setlength\@lnumwidth{4\zw}%
800      #1\hfil\nobreak
801      \hb@xt@\@pnumwidth{\hss#2}}\par
802     \nobreak
803     \global\@nobreaktrue
804     \everypar{\global\@nobreakfalse\everypar{}}%
805      \endgroup
806   \fi}
807 \newcommand*{\l@chapter}[2]{%
808   \ifnum \c@tocdepth >\m@ne
809     \addpenalty{-\@highpenalty}%
810     \addvspace{1.0em \@plus\p@}%
811     \begingroup
812       \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
813       \leavevmode\bfseries
814       \setlength\@lnumwidth{4\zw}%
815       \advance\leftskip\@lnumwidth \hskip-\leftskip
816       #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
817       \penalty\@highpenalty
818     \endgroup
819   \fi}
820 \newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
821 \newcommand*{\l@subsection}   {\@dottedtocline{2}{3.8em}{3.2em}}
822 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
823 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{10em}{5em}}
824 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
825 \newcommand{\listoffigures}{%
826   \if@twocolumn\@restonecoltrue\onecolumn
827   \else\@restonecolfalse\fi
828   \chapter*{\listfigurename}%
829   \@mkboth{\listfigurename}{\listfigurename}%
830   \@starttoc{lof}%
831   \if@restonecol\twocolumn\fi
832 }
833 \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
834 \newcommand{\listoftables}{%
835   \if@twocolumn\@restonecoltrue\onecolumn
836   \else\@restonecolfalse\fi
837   \chapter*{\listtablename}%
838   \@mkboth{\listtablename}{\listtablename}%
839   \@starttoc{lot}%
840   \if@restonecol\twocolumn\fi
841 }
842 \let\l@table\l@figure
843 \newdimen\bibindent
844 \setlength\bibindent{1.5em}
845 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
846 \newenvironment{thebibliography}[1]
847 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
848    \list{\@biblabel{\@arabic\c@enumiv}}%
849         {\settowidth\labelwidth{\@biblabel{#1}}%
850          \leftmargin\labelwidth
851          \advance\leftmargin\labelsep
852          \@openbib@code
853          \usecounter{enumiv}%
854          \let\p@enumiv\@empty
855          \renewcommand\theenumiv{\@arabic\c@enumiv}}%
856    \sloppy
857    \clubpenalty4000
858    \@clubpenalty\clubpenalty
859    \widowpenalty4000%
860    \sfcode`\.\@m}
861   {\def\@noitemerr
862     {\@latex@warning{Empty `thebibliography' environment}}%
863    \endlist}
864 \let\@openbib@code\@empty
865 \newenvironment{theindex}
866   {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
867    \twocolumn[\@makeschapterhead{\indexname}]%
868    \@mkboth{\indexname}{\indexname}%
869    \thispagestyle{jpl@in}\parindent\z@
870    \parskip\z@ \@plus .3\p@\relax
871    \columnseprule\z@ \columnsep 35\p@
872    \let\item\@idxitem}
873   {\if@restonecol\onecolumn\else\clearpage\fi}
874 \newcommand{\@idxitem}{\par\hangindent 40\p@}
875 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
876 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
877 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
878 \renewcommand{\footnoterule}{%
879   \kern-3\p@
880   \hrule\@width.4\columnwidth
881   \kern2.6\p@}
882 \@addtoreset{footnote}{chapter}
883 \newcommand\@makefntext[1]{\parindent 1em
884   \noindent\hb@xt@ 1.8em{\hss\@makefnmark}#1}
885 \newif\if西暦 \西暦true
886 \def\西暦{\西暦true}
887 \def\和暦{\西暦false}
888 \newcount\heisei \heisei\year \advance\heisei-1988\relax
889 \def\pltx@today@year@#1{%
890   \ifnum\numexpr\year-#1=1 元\else
891     \ifnum\ltjgetparameter{direction}=3
892       \kansuji\numexpr\year-#1\relax
893     \else
894       \number\numexpr\year-#1\relax\nobreak
895     \fi
896   \fi 年
897 }
898 \def\pltx@today@year{%
899   \ifnum\numexpr\year*10000+\month*100+\day<19890108
900     昭和\pltx@today@year@{1925}%
901   \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
902     平成\pltx@today@year@{1988}%
903   \else
904     令和\pltx@today@year@{2018}%
905   \fi\fi}
906 \def\today{{%
907   \if西暦
908     \ifnum\ltjgetparameter{direction}=3 \kansuji\year
909     \else\number\year\nobreak\fi 年
910   \else
911     \pltx@today@year
912   \fi
913   \ifnum\ltjgetparameter{direction}=3
914     \kansuji\month 月
915     \kansuji\day 日
916   \else
917     \number\month\nobreak 月
918     \number\day\nobreak 日
919   \fi}}
920 \newcommand{\prepartname}{第}
921 \newcommand{\postpartname}{部}
922 \newcommand{\prechaptername}{第}
923 \newcommand{\postchaptername}{章}
924 \newcommand{\contentsname}{目 次}
925 \newcommand{\listfigurename}{図 目 次}
926 \newcommand{\listtablename}{表 目 次}
927 \newcommand{\bibname}{関連図書}
928 \newcommand{\indexname}{索 引}
929 \newcommand{\figurename}{図}
930 \newcommand{\tablename}{表}
931 \newcommand{\appendixname}{付 録}
932 \newcommand{\abstractname}{概 要}
933 \pagestyle{plain}
934 \pagenumbering{arabic}
935 \raggedbottom
936 \fnfixbottomtrue % 2017-02-19
937 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
938 \if@twocolumn
939   \twocolumn
940   \sloppy
941 \else
942   \onecolumn
943 \fi
944 \if@twoside
945   \@mparswitchtrue
946 \else
947   \@mparswitchfalse
948 \fi
949 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
950 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
951 \endinput
952 %%
953 %% End of file `ltjreport.cls'.