OSDN Git Service

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