OSDN Git Service

sync with platex/fd84179, jsclasses/4a43685
[luatex-ja/luatexja.git] / src / ltjtreport.cls
1 %%
2 %% This is file `ltjtreport.cls',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ltjclasses.dtx  (with options: `report,tate')
8 %% 
9 %% IMPORTANT NOTICE:
10 %% 
11 %% For the copyright see the source file.
12 %% 
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from ltjtreport.cls.
15 %% 
16 %% For distribution of the original source see the terms
17 %% for copying and modification in the file ltjclasses.dtx.
18 %% 
19 %% This generated file may be distributed as long as the
20 %% original source files, as listed above, are part of the
21 %% same distribution. (The sources need not necessarily be
22 %% in the same archive or directory.)
23 %% File: ltjclasses.dtx
24 \NeedsTeXFormat{LaTeX2e}
25 \ProvidesClass{ltjtreport}
26   [2017/09/19 v1.7g-ltj-15
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 \AtEndOfPackageFile{everyshi}{%
108   \def\@EveryShipout@Output{%
109     \setbox8\vbox{%
110       \yoko
111       \@EveryShipout@Hook
112       \@EveryShipout@AtNextHook
113       \global\setbox\luatexoutputbox=\box\luatexoutputbox
114     }%
115     \gdef\@EveryShipout@AtNextHook{}%
116     \@EveryShipout@Org@Shipout\box\luatexoutputbox
117   }}
118 \DeclareOption{oneside}{\@twosidefalse}
119 \DeclareOption{twoside}{\@twosidetrue}
120 \DeclareOption{onecolumn}{\@twocolumnfalse}
121 \DeclareOption{twocolumn}{\@twocolumntrue}
122 \DeclareOption{titlepage}{\@titlepagetrue}
123 \DeclareOption{notitlepage}{\@titlepagefalse}
124 \if@compatibility
125 \else
126 \DeclareOption{openright}{\@openrighttrue\@openleftfalse}
127 \DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
128 \DeclareOption{openany}{\@openrightfalse\@openleftfalse}
129 \fi
130 \DeclareOption{leqno}{\input{leqno.clo}}
131 \DeclareOption{fleqn}{\input{fleqn.clo}}
132 \DeclareOption{openbib}{%
133   \AtEndOfPackage{%
134    \renewcommand\@openbib@code{%
135       \advance\leftmargin\bibindent
136       \itemindent -\bibindent
137       \listparindent \itemindent
138       \parsep \z@
139       }%
140    \renewcommand\newblock{\par}}}
141 \if@compatibility
142   \@mathrmmctrue
143 \else
144   \DeclareOption{disablejfam}{%
145     \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
146   \DeclareOption{mathrmmc}{\@mathrmmctrue}
147 \fi
148 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
149 \DeclareOption{final}{\setlength\overfullrule{0pt}}
150 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
151   function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
152   'ltj.jclasses_load_jfm', 1)}
153 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
154 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
155 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
156 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
157 \ltjglobalsetparameter{differentjfm=both}
158 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
159 \ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany,tate}
160 \ProcessOptions\relax
161 \input{ltjtsize1\@ptsize.clo}
162 \RequirePackage{lltjext}
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 \if@compatibility\else
740   \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
741   \DeclareSymbolFontAlphabet{\mathmc}{mincho}
742   \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
743   \jfam\symmincho
744   \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
745 \fi
746 \if@mathrmmc
747   \AtBeginDocument{%
748   \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
749   \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
750 }%
751 \fi
752 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
753 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
754 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
755 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
756 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
757 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
758 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
759 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
760 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
761 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
762 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
763 \setcounter{tocdepth}{2}
764 \newcommand{\@pnumwidth}{1.55em}
765 \newcommand{\@tocrmarg}{2.55em}
766 \newcommand{\@dotsep}{4.5}
767 \newdimen\toclineskip
768 \setlength\toclineskip{2\p@}
769 \newdimen\@lnumwidth
770 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
771 \def\@dottedtocline#1#2#3#4#5{%
772   \ifnum #1>\c@tocdepth \else
773     \vskip\toclineskip \@plus.2\p@
774     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
775      \parindent #2\relax\@afterindenttrue
776      \interlinepenalty\@M
777      \leavevmode
778      \@lnumwidth #3\relax
779      \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
780      {#4}\nobreak
781      \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
782      \hfill\nobreak
783      \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
784      \par}%
785   \fi}
786 \def\addcontentsline#1#2#3{%
787   \protected@write\@auxout
788     {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
789 \@temptokena{\rensuji{\thepage}}}%
790     {\string\@writefile{#1}%
791        {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
792 }
793 \newcommand{\tableofcontents}{%
794   \if@twocolumn\@restonecoltrue\onecolumn
795   \else\@restonecolfalse\fi
796   \chapter*{\contentsname
797     \@mkboth{\contentsname}{\contentsname}%
798   }\@starttoc{toc}%
799   \if@restonecol\twocolumn\fi
800 }
801 \newcommand*{\l@part}[2]{%
802   \ifnum \c@tocdepth >-2\relax
803     \addpenalty{-\@highpenalty}%
804     \addvspace{2.25em \@plus\p@}%
805     \begingroup
806     \parindent\z@\rightskip\@pnumwidth
807     \parfillskip-\@pnumwidth
808     {\leavevmode\large\bfseries
809      \setlength\@lnumwidth{4\zw}%
810      #1\hfil\nobreak
811      \hb@xt@\@pnumwidth{\hss#2}}\par
812     \nobreak
813     \global\@nobreaktrue
814     \everypar{\global\@nobreakfalse\everypar{}}%
815      \endgroup
816   \fi}
817 \newcommand*{\l@chapter}[2]{%
818   \ifnum \c@tocdepth >\m@ne
819     \addpenalty{-\@highpenalty}%
820     \addvspace{1.0em \@plus\p@}%
821     \begingroup
822       \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
823       \leavevmode\bfseries
824       \setlength\@lnumwidth{4\zw}%
825       \advance\leftskip\@lnumwidth \hskip-\leftskip
826       #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
827       \penalty\@highpenalty
828     \endgroup
829   \fi}
830 \newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
831 \newcommand*{\l@subsection}   {\@dottedtocline{2}{2\zw}{6\zw}}
832 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
833 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{4\zw}{9\zw}}
834 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
835 \newcommand{\listoffigures}{%
836   \if@twocolumn\@restonecoltrue\onecolumn
837   \else\@restonecolfalse\fi
838   \chapter*{\listfigurename}%
839   \@mkboth{\listfigurename}{\listfigurename}%
840   \@starttoc{lof}%
841   \if@restonecol\twocolumn\fi
842 }
843 \newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
844 \newcommand{\listoftables}{%
845   \if@twocolumn\@restonecoltrue\onecolumn
846   \else\@restonecolfalse\fi
847   \chapter*{\listtablename}%
848   \@mkboth{\listtablename}{\listtablename}%
849   \@starttoc{lot}%
850   \if@restonecol\twocolumn\fi
851 }
852 \let\l@table\l@figure
853 \newdimen\bibindent
854 \setlength\bibindent{1.5em}
855 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
856 \newenvironment{thebibliography}[1]
857 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
858    \list{\@biblabel{\@arabic\c@enumiv}}%
859         {\settowidth\labelwidth{\@biblabel{#1}}%
860          \leftmargin\labelwidth
861          \advance\leftmargin\labelsep
862          \@openbib@code
863          \usecounter{enumiv}%
864          \let\p@enumiv\@empty
865          \renewcommand\theenumiv{\@arabic\c@enumiv}}%
866    \sloppy
867    \clubpenalty4000
868    \@clubpenalty\clubpenalty
869    \widowpenalty4000%
870    \sfcode`\.\@m}
871   {\def\@noitemerr
872     {\@latex@warning{Empty `thebibliography' environment}}%
873    \endlist}
874 \let\@openbib@code\@empty
875 \newenvironment{theindex}
876   {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
877    \twocolumn[\@makeschapterhead{\indexname}]%
878    \@mkboth{\indexname}{\indexname}%
879    \thispagestyle{jpl@in}\parindent\z@
880    \parskip\z@ \@plus .3\p@\relax
881    \columnseprule\z@ \columnsep 35\p@
882    \let\item\@idxitem}
883   {\if@restonecol\onecolumn\else\clearpage\fi}
884 \newcommand{\@idxitem}{\par\hangindent 40\p@}
885 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
886 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
887 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
888 \renewcommand{\footnoterule}{%
889   \kern-3\p@
890   \hrule\@width.4\columnwidth
891   \kern2.6\p@}
892 \@addtoreset{footnote}{chapter}
893 \newcommand\@makefntext[1]{\parindent 1\zw
894   \noindent\hb@xt@ 2\zw{\hss\@makefnmark}#1}
895 \newif\if西暦 \西暦false
896 \def\西暦{\西暦true}
897 \def\和暦{\西暦false}
898 \newcount\heisei \heisei\year \advance\heisei-1988\relax
899 \def\today{{%
900   \ifnum\ltjgetparameter{direction}=3
901     \if西暦
902       \kansuji\year 年
903       \kansuji\month 月
904       \kansuji\day 日
905     \else
906       平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
907       \kansuji\month 月
908       \kansuji\day 日
909     \fi
910   \else
911     \if西暦
912       \number\year~年
913       \number\month~月
914       \number\day~日
915     \else
916       平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
917       \number\month~月
918       \number\day~日
919     \fi
920   \fi}}
921 \newcommand{\prepartname}{第}
922 \newcommand{\postpartname}{部}
923 \newcommand{\prechaptername}{第}
924 \newcommand{\postchaptername}{章}
925 \newcommand{\contentsname}{目 次}
926 \newcommand{\listfigurename}{図 目 次}
927 \newcommand{\listtablename}{表 目 次}
928 \newcommand{\bibname}{関連図書}
929 \newcommand{\indexname}{索 引}
930 \newcommand{\figurename}{図}
931 \newcommand{\tablename}{表}
932 \newcommand{\appendixname}{付 録}
933 \newcommand{\abstractname}{概 要}
934 \pagestyle{plain}
935 \pagenumbering{arabic}
936 \raggedbottom
937 \fnfixbottomtrue % 2017-02-19
938 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
939 \if@twocolumn
940   \twocolumn
941   \sloppy
942 \else
943   \onecolumn
944 \fi
945 \normalmarginpar
946 \@mparswitchfalse
947 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
948 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
949 \endinput
950 %%
951 %% End of file `ltjtreport.cls'.