OSDN Git Service

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