OSDN Git Service

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