OSDN Git Service

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