OSDN Git Service

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