OSDN Git Service

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