OSDN Git Service

1e283606f7578d781bb74df3380d2cd67a7558f0
[luatex-ja/luatexja.git] / src / ltjclasses / 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 %% \CharacterTable
25 %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
26 %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
27 %%   Digits        \0\1\2\3\4\5\6\7\8\9
28 %%   Exclamation   \!     Double quote  \"     Hash (number) \#
29 %%   Dollar        \$     Percent       \%     Ampersand     \&
30 %%   Acute accent  \'     Left paren    \(     Right paren   \)
31 %%   Asterisk      \*     Plus          \+     Comma         \,
32 %%   Minus         \-     Point         \.     Solidus       \/
33 %%   Colon         \:     Semicolon     \;     Less than     \<
34 %%   Equals        \=     Greater than  \>     Question mark \?
35 %%   Commercial at \@     Left bracket  \[     Backslash     \\
36 %%   Right bracket \]     Circumflex    \^     Underscore    \_
37 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
38 %%   Right brace   \}     Tilde         \~}
39 %%
40 \NeedsTeXFormat{LaTeX2e}
41 \ProvidesClass{ltjreport}
42   [2011/10/03 v1.6-ltj
43  Standard LuaLaTeX-ja class]
44 \RequirePackage{luatexja}
45 \newcounter{@paper}
46 \newif\if@landscape \@landscapefalse
47 \newcommand{\@ptsize}{}
48 \newif\if@restonecol
49 \newif\if@titlepage
50 \@titlepagetrue
51 \newif\if@openright
52 \hour\time \divide\hour by 60\relax
53 \@tempcnta\hour \multiply\@tempcnta 60\relax
54 \minute\time \advance\minute-\@tempcnta
55 \newif\if@stysize \@stysizefalse
56 \newif\if@enablejfam \@enablejfamtrue
57 \newif\if@mathrmmc \@mathrmmcfalse
58 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
59   \setlength\paperheight {297mm}%
60   \setlength\paperwidth  {210mm}}
61 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
62   \setlength\paperheight {210mm}
63   \setlength\paperwidth  {148mm}}
64 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
65   \setlength\paperheight {364mm}
66   \setlength\paperwidth  {257mm}}
67 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
68   \setlength\paperheight {257mm}
69   \setlength\paperwidth  {182mm}}
70 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
71   \setlength\paperheight {297mm}%
72   \setlength\paperwidth  {210mm}}
73 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
74   \setlength\paperheight {210mm}
75   \setlength\paperwidth  {148mm}}
76 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
77   \setlength\paperheight {364mm}
78   \setlength\paperwidth  {257mm}}
79 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
80   \setlength\paperheight {257mm}
81   \setlength\paperwidth  {182mm}}
82 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
83   \setlength\paperheight {297mm}%
84   \setlength\paperwidth  {210mm}}
85 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
86   \setlength\paperheight {210mm}
87   \setlength\paperwidth  {148mm}}
88 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
89   \setlength\paperheight {364mm}
90   \setlength\paperwidth  {257mm}}
91 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
92   \setlength\paperheight {257mm}
93   \setlength\paperwidth  {182mm}}
94 \if@compatibility
95   \renewcommand{\@ptsize}{0}
96 \else
97   \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
98 \fi
99 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
100 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
101 \DeclareOption{landscape}{\@landscapetrue
102   \setlength\@tempdima{\paperheight}%
103   \setlength\paperheight{\paperwidth}%
104   \setlength\paperwidth{\@tempdima}}
105 \DeclareOption{tombow}{%
106   \tombowtrue \tombowdatetrue
107   \setlength{\@tombowwidth}{.1\p@}%
108   \@bannertoken{%
109      \jobname\space:\space\number\year/\number\month/\number\day
110       (\number\hour:\number\minute)}
111   \maketombowbox}
112 \DeclareOption{tombo}{%
113   \tombowtrue \tombowdatefalse
114   \setlength{\@tombowwidth}{.1\p@}%
115   \maketombowbox}
116 \DeclareOption{mentuke}{%
117   \tombowtrue \tombowdatefalse
118   \setlength{\@tombowwidth}{\z@}%
119   \maketombowbox}
120 %% \DeclareOption{tate}{%
121 %%   \AtBeginDocument{\tate\message{《縦組モード》}%
122 %%                    \adjustbaseline}%
123 %% }
124 \DeclareOption{oneside}{\@twosidefalse}
125 \DeclareOption{twoside}{\@twosidetrue}
126 \DeclareOption{onecolumn}{\@twocolumnfalse}
127 \DeclareOption{twocolumn}{\@twocolumntrue}
128 \DeclareOption{titlepage}{\@titlepagetrue}
129 \DeclareOption{notitlepage}{\@titlepagefalse}
130 \if@compatibility
131 \else
132 \DeclareOption{openright}{\@openrighttrue}
133 \DeclareOption{openany}{\@openrightfalse}
134 \fi
135 \DeclareOption{leqno}{\input{leqno.clo}}
136 \DeclareOption{fleqn}{\input{fleqn.clo}}
137 \DeclareOption{openbib}{%
138   \AtEndOfPackage{%
139    \renewcommand\@openbib@code{%
140       \advance\leftmargin\bibindent
141       \itemindent -\bibindent
142       \listparindent \itemindent
143       \parsep \z@
144       }%
145    \renewcommand\newblock{\par}}}
146 \if@compatibility
147   \@mathrmmctrue
148 \else
149   \DeclareOption{disablejfam}{\@enablejfamfalse}
150   \DeclareOption{mathrmmc}{\@mathrmmctrue}
151 \fi
152 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
153 \DeclareOption{final}{\setlength\overfullrule{0pt}}
154 \ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany}
155 \ProcessOptions\relax
156 \input{ltjsize1\@ptsize.clo}
157 \if@stysize
158   \setlength\columnsep{2\Cwd}
159 \else
160   \setlength\columnsep{10\p@}
161 \fi
162 \setlength\columnseprule{0\p@}
163 \setlength{\@tempdima}{\paperwidth}
164 \setlength{\@tempdimb}{\paperheight}
165 \iftombow
166   \advance \@tempdima 2in
167   \advance \@tempdimb 2in
168 \fi
169 \setlength{\pdfpagewidth}{\@tempdima}
170 \setlength{\pdfpageheight}{\@tempdimb}
171 \setlength\lineskip{1\p@}
172 \setlength\normallineskip{1\p@}
173 \renewcommand{\baselinestretch}{}
174 \setlength\parskip{0\p@ \@plus \p@}
175 \setlength\parindent{1\Cwd}
176 \@lowpenalty   51
177 \@medpenalty  151
178 \@highpenalty 301
179 \setcounter{topnumber}{2}
180 \setcounter{bottomnumber}{1}
181 \setcounter{totalnumber}{3}
182 \setcounter{dbltopnumber}{2}
183 \renewcommand{\topfraction}{.7}
184 \renewcommand{\bottomfraction}{.3}
185 \renewcommand{\textfraction}{.2}
186 \renewcommand{\floatpagefraction}{.5}
187 \renewcommand{\dbltopfraction}{.7}
188 \renewcommand{\dblfloatpagefraction}{.5}
189 \def\ps@plain{\let\@mkboth\@gobbletwo
190    \let\ps@jpl@in\ps@plain
191    \let\@oddhead\@empty
192    \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
193    \let\@evenhead\@empty
194    \let\@evenfoot\@oddfoot}
195 \let\ps@jpl@in\ps@plain
196 \def\ps@headnombre{\let\@mkboth\@gobbletwo
197     \let\ps@jpl@in\ps@headnombre
198   \def\@evenhead{\thepage\hfil}%
199   \def\@oddhead{\hfil\thepage}%
200   \let\@oddfoot\@empty\let\@evenfoot\@empty}
201 \def\ps@footnombre{\let\@mkboth\@gobbletwo
202     \let\ps@jpl@in\ps@footnombre
203   \def\@evenfoot{\thepage\hfil}%
204   \def\@oddfoot{\hfil\thepage}%
205   \let\@oddhead\@empty\let\@evenhead\@empty}
206 \if@twoside
207   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
208     \let\@oddfoot\@empty\let\@evenfoot\@empty
209     \def\@evenhead{\thepage\hfil\leftmark}%
210     \def\@oddhead{{\rightmark}\hfil\thepage}%
211     \let\@mkboth\markboth
212   \def\chaptermark##1{\markboth{%
213      \ifnum \c@secnumdepth >\m@ne
214          \@chapapp\thechapter\@chappos\hskip1\zw
215      \fi
216      ##1}{}}%
217   \def\sectionmark##1{\markright{%
218      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
219      ##1}}%
220   }
221 \else % if not twoside
222   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
223     \let\@oddfoot\@empty
224     \def\@oddhead{{\rightmark}\hfil\thepage}%
225     \let\@mkboth\markboth
226 \def\chaptermark##1{\markright{%
227    \ifnum \c@secnumdepth >\m@ne
228        \@chapapp\thechapter\@chappos\hskip1\zw
229    \fi
230    ##1}}%
231   }
232 \fi
233 \if@twoside
234   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
235     \def\@evenhead{\leftmark\hfil}% right page
236     \def\@evenfoot{\thepage\hfil}% right page
237     \def\@oddhead{\hfil\rightmark}% left page
238     \def\@oddfoot{\hfil\thepage}% left page
239   \let\@mkboth\markboth
240 \def\chaptermark##1{\markboth{%
241      \ifnum \c@secnumdepth >\m@ne
242          \@chapapp\thechapter\@chappos\hskip1\zw
243      \fi
244      ##1}{}}%
245   \def\sectionmark##1{\markright{%
246      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
247      ##1}}%
248   }
249 \else % if one column
250   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
251     \def\@oddhead{\hfil\rightmark}%
252     \def\@oddfoot{\hfil\thepage}%
253     \let\@mkboth\markboth
254   \def\chaptermark##1{\markright{%
255      \ifnum \c@secnumdepth >\m@ne
256          \@chapapp\thechapter\@chappos\hskip1\zw
257      \fi
258      ##1}}%
259   }
260 \fi
261 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
262   \let\@oddfoot\@empty\let\@evenfoot\@empty
263   \def\@evenhead{\thepage\hfil\leftmark}%
264   \def\@oddhead{{\rightmark}\hfil\thepage}%
265   \let\@mkboth\@gobbletwo
266   \let\chaptermark\@gobble
267   \let\sectionmark\@gobble
268 }
269 \if@compatibility
270 \newenvironment{titlepage}
271     {%
272      \if@twocolumn\@restonecoltrue\onecolumn
273      \else\@restonecolfalse\newpage\fi
274      \thispagestyle{empty}%
275      \setcounter{page}\z@
276     }%
277     {\if@restonecol\twocolumn\else\newpage\fi
278     }
279 \else
280 \newenvironment{titlepage}
281     {%
282       \if@twocolumn
283         \@restonecoltrue\onecolumn
284       \else
285         \@restonecolfalse\newpage
286       \fi
287       \thispagestyle{empty}%
288       \setcounter{page}\@ne
289     }%
290     {\if@restonecol\twocolumn \else \newpage \fi
291      \if@twoside\else
292         \setcounter{page}\@ne
293      \fi
294     }
295 \fi
296 \def\p@thanks#1{\footnotemark
297   \protected@xdef\@thanks{\@thanks
298     \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
299 \if@titlepage
300   \newcommand{\maketitle}{\begin{titlepage}%
301   \let\footnotesize\small
302   \let\footnoterule\relax
303   \let\footnote\thanks
304   \null\vfil
305   \vskip 60\p@
306   \begin{center}%
307     {\LARGE \@title \par}%
308     \vskip 3em%
309     {\Large
310      \lineskip .75em%
311       \begin{tabular}[t]{c}%
312         \@author
313       \end{tabular}\par}%
314       \vskip 1.5em%
315     {\large \@date \par}%       % Set date in \large size.
316   \end{center}\par
317   \@thanks\vfil\null
318   \end{titlepage}%
319   \setcounter{footnote}{0}%
320   \global\let\thanks\relax
321   \global\let\maketitle\relax
322   \global\let\p@thanks\relax
323   \global\let\@thanks\@empty
324   \global\let\@author\@empty
325   \global\let\@date\@empty
326   \global\let\@title\@empty
327   \global\let\title\relax
328   \global\let\author\relax
329   \global\let\date\relax
330   \global\let\and\relax
331   }%
332 \else
333   \newcommand{\maketitle}{\par
334   \begingroup
335     \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
336     \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
337       \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
338      \long\def\@makefntext##1{\parindent 1em\noindent
339        \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
340     \if@twocolumn
341       \ifnum \col@number=\@ne \@maketitle
342       \else \twocolumn[\@maketitle]%
343       \fi
344     \else
345       \newpage
346       \global\@topnum\z@   % Prevents figures from going at top of page.
347       \@maketitle
348     \fi
349      \thispagestyle{jpl@in}\@thanks
350   \endgroup
351   \setcounter{footnote}{0}%
352   \global\let\thanks\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\reset@font
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\reset@font
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    \reset@font\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    \reset@font\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    {\reset@font\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    {\reset@font\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    {\reset@font\normalsize\bfseries}}
512 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
513    {3.25ex \@plus 1ex \@minus .2ex}%
514    {-1em}%
515    {\reset@font\normalsize\bfseries}}
516 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
517    {3.25ex \@plus 1ex \@minus .2ex}%
518    {-1em}%
519    {\reset@font\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    \list{\csname label\@enumctr\endcsname}{%
563       \iftdir
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   \iftdir
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
590    \list{\csname \@itemitem\endcsname}{%
591       \iftdir
592          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
593            \else\topsep\z@\fi
594          \parskip\z@ \itemsep\z@ \parsep\z@
595          \labelwidth1\zw \labelsep.3\zw
596          \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
597            \else\leftmargin\leftskip\fi
598          \advance\leftmargin 1\zw
599       \fi
600          \def\makelabel##1{\hss\llap{##1}}}%
601    \fi}{\endlist}
602 \newenvironment{description}
603   {\list{}{\labelwidth\z@ \itemindent-\leftmargin
604    \iftdir
605      \leftmargin\leftskip \advance\leftmargin3\Cwd
606      \rightmargin\rightskip
607      \labelsep=1\zw \itemsep\z@
608      \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
609    \fi
610            \let\makelabel\descriptionlabel}}{\endlist}
611 \newcommand{\descriptionlabel}[1]{%
612    \hspace\labelsep\normalfont\bfseries #1}
613 \newenvironment{verse}
614   {\let\\\@centercr
615    \list{}{\itemsep\z@ \itemindent -1.5em%
616            \listparindent\itemindent
617            \rightmargin\leftmargin \advance\leftmargin 1.5em}%
618            \item\relax}{\endlist}
619 \newenvironment{quotation}
620   {\list{}{\listparindent 1.5em%
621            \itemindent\listparindent
622            \rightmargin\leftmargin
623            \parsep\z@ \@plus\p@}%
624            \item\relax}{\endlist}
625 \newenvironment{quote}
626   {\list{}{\rightmargin\leftmargin}%
627            \item\relax}{\endlist}
628 \newcounter{figure}[chapter]
629 \renewcommand{\thefigure}{%
630   \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
631 \def\fps@figure{tbp}
632 \def\ftype@figure{1}
633 \def\ext@figure{lof}
634 \def\fnum@figure{\figurename~\thefigure}
635 \newenvironment{figure}
636                {\@float{figure}}
637                {\end@float}
638 \newenvironment{figure*}
639                {\@dblfloat{figure}}
640                {\end@dblfloat}
641 \newcounter{table}[chapter]
642 \renewcommand{\thetable}{%
643   \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
644 \def\fps@table{tbp}
645 \def\ftype@table{2}
646 \def\ext@table{lot}
647 \def\fnum@table{\tablename~\thetable}
648 \newenvironment{table}
649                {\@float{table}}
650                {\end@float}
651 \newenvironment{table*}
652                {\@dblfloat{table}}
653                {\end@dblfloat}
654 \newlength\abovecaptionskip
655 \newlength\belowcaptionskip
656 \setlength\abovecaptionskip{10\p@}
657 \setlength\belowcaptionskip{0\p@}
658 \long\def\@makecaption#1#2{%
659   \vskip\abovecaptionskip
660   \iftdir\sbox\@tempboxa{#1\hskip1\zw#2}%
661     \else\sbox\@tempboxa{#1: #2}%
662   \fi
663   \ifdim \wd\@tempboxa >\hsize
664     \iftdir #1\hskip1\zw#2\relax\par
665       \else #1: #2\relax\par\fi
666   \else
667     \global \@minipagefalse
668     \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
669   \fi
670   \vskip\belowcaptionskip}
671 \setlength\arraycolsep{5\p@}
672 \setlength\tabcolsep{6\p@}
673 \setlength\arrayrulewidth{.4\p@}
674 \setlength\doublerulesep{2\p@}
675 \setlength\tabbingsep{\labelsep}
676 \skip\@mpfootins = \skip\footins
677 \setlength\fboxsep{3\p@}
678 \setlength\fboxrule{.4\p@}
679 \@addtoreset{equation}{chapter}
680 \renewcommand{\theequation}{%
681   \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
682 \if@compatibility\else
683   \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
684   \DeclareSymbolFontAlphabet{\mathmc}{mincho}
685   \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
686   \jfam\symmincho
687   \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
688 \fi
689 \if@mathrmmc
690   \AtBeginDocument{%
691   \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
692   \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
693 }%
694 \fi
695 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
696 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
697 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
698 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
699 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
700 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
701 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
702 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
703 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
704 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
705 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
706 \setcounter{tocdepth}{2}
707 \newcommand{\@pnumwidth}{1.55em}
708 \newcommand{\@tocrmarg}{2.55em}
709 \newcommand{\@dotsep}{4.5}
710 \newdimen\toclineskip
711 \setlength\toclineskip{\z@}
712 \newdimen\@lnumwidth
713 \def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
714 \def\@dottedtocline#1#2#3#4#5{%
715   \ifnum #1>\c@tocdepth \else
716     \vskip\toclineskip \@plus.2\p@
717     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
718      \parindent #2\relax\@afterindenttrue
719      \interlinepenalty\@M
720      \leavevmode
721      \@lnumwidth #3\relax
722      \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
723      {#4}\nobreak
724      \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
725      \hfill\nobreak
726      \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
727      \par}%
728   \fi}
729 \def\addcontentsline#1#2#3{%
730   \protected@write\@auxout
731     {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
732 \@temptokena{\thepage}}%
733     {\string\@writefile{#1}%
734        {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
735 }
736 \newcommand{\tableofcontents}{%
737   \if@twocolumn\@restonecoltrue\onecolumn
738   \else\@restonecolfalse\fi
739   \chapter*{\contentsname
740     \@mkboth{\contentsname}{\contentsname}%
741   }\@starttoc{toc}%
742   \if@restonecol\twocolumn\fi
743 }
744 \newcommand*{\l@part}[2]{%
745   \ifnum \c@tocdepth >-2\relax
746     \addpenalty{-\@highpenalty}%
747     \addvspace{2.25em \@plus\p@}%
748     \begingroup
749     \parindent\z@\rightskip\@pnumwidth
750     \parfillskip-\@pnumwidth
751     {\leavevmode\large\bfseries
752      \setlength\@lnumwidth{4\zw}%
753      #1\hfil\nobreak
754      \hbox to\@pnumwidth{\hss#2}}\par
755     \nobreak
756     \global\@nobreaktrue
757     \everypar{\global\@nobreakfalse\everypar{}}%
758      \endgroup
759   \fi}
760 \newcommand*{\l@chapter}[2]{%
761   \ifnum \c@tocdepth >\m@ne
762     \addpenalty{-\@highpenalty}%
763     \addvspace{1.0em \@plus\p@}%
764     \begingroup
765       \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
766       \leavevmode\bfseries
767       \setlength\@lnumwidth{4\zw}%
768       \advance\leftskip\@lnumwidth \hskip-\leftskip
769       #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
770       \penalty\@highpenalty
771     \endgroup
772   \fi}
773 \newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
774 \newcommand*{\l@subsection}   {\@dottedtocline{2}{3.8em}{3.2em}}
775 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
776 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{10em}{5em}}
777 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
778 \newcommand{\listoffigures}{%
779   \if@twocolumn\@restonecoltrue\onecolumn
780   \else\@restonecolfalse\fi
781   \chapter*{\listfigurename
782   \@mkboth{\listfigurename}{\listfigurename}}%
783   \@starttoc{lof}%
784   \if@restonecol\twocolumn\fi
785 }
786 \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
787 \newcommand{\listoftables}{%
788   \if@twocolumn\@restonecoltrue\onecolumn
789   \else\@restonecolfalse\fi
790   \chapter*{\listtablename
791   \@mkboth{\listtablename}{\listtablename}}%
792   \@starttoc{lot}%
793   \if@restonecol\twocolumn\fi
794 }
795 \let\l@table\l@figure
796 \newdimen\bibindent
797 \setlength\bibindent{1.5em}
798 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
799 \newenvironment{thebibliography}[1]
800 {\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
801    \list{\@biblabel{\@arabic\c@enumiv}}%
802         {\settowidth\labelwidth{\@biblabel{#1}}%
803          \leftmargin\labelwidth
804          \advance\leftmargin\labelsep
805          \@openbib@code
806          \usecounter{enumiv}%
807          \let\p@enumiv\@empty
808          \renewcommand\theenumiv{\@arabic\c@enumiv}}%
809    \sloppy
810    \clubpenalty4000
811    \@clubpenalty\clubpenalty
812    \widowpenalty4000%
813    \sfcode`\.\@m}
814   {\def\@noitemerr
815     {\@latex@warning{Empty `thebibliography' environment}}%
816    \endlist}
817 \let\@openbib@code\@empty
818 \newenvironment{theindex}
819   {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
820    \columnseprule\z@ \columnsep 35\p@
821    \twocolumn[\@makeschapterhead{\indexname}]%
822    \@mkboth{\indexname}{\indexname}%
823    \thispagestyle{jpl@in}\parindent\z@
824    \parskip\z@ \@plus .3\p@\relax
825    \let\item\@idxitem}
826   {\if@restonecol\onecolumn\else\clearpage\fi}
827 \newcommand{\@idxitem}{\par\hangindent 40\p@}
828 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
829 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
830 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
831 \renewcommand{\footnoterule}{%
832   \kern-3\p@
833   \hrule width .4\columnwidth
834   \kern 2.6\p@}
835 \@addtoreset{footnote}{chapter}
836 \newcommand\@makefntext[1]{\parindent 1em
837   \noindent\hbox to 1.8em{\hss\@makefnmark}#1}
838 \newif\ifSeireki \Seirekifalse
839 \def\Seireki{\Seirekitrue}
840 \def\Wareki{\Seirekifalse}
841 \newcount\heisei \heisei\year \advance\heisei-1988\relax
842 \def\today{{%
843   \iftdir
844     \ifSeireki
845       \kansuji\number\year 年
846       \kansuji\number\month 月
847       \kansuji\number\day 日
848     \else
849       平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi
850       \kansuji\number\month 月
851       \kansuji\number\day 日
852     \fi
853   \else
854     \ifSeireki
855       \number\year~年
856       \number\month~月
857       \number\day~日
858     \else
859       平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
860       \number\month~月
861       \number\day~日
862     \fi
863   \fi}}
864 \newcommand{\prepartname}{第}
865 \newcommand{\postpartname}{部}
866 \newcommand{\prechaptername}{第}
867 \newcommand{\postchaptername}{章}
868 \newcommand{\contentsname}{目 次}
869 \newcommand{\listfigurename}{図 目 次}
870 \newcommand{\listtablename}{表 目 次}
871 \newcommand{\bibname}{関連図書}
872 \newcommand{\indexname}{索 引}
873 \newcommand{\figurename}{図}
874 \newcommand{\tablename}{表}
875 \newcommand{\appendixname}{付 録}
876 \newcommand{\abstractname}{概 要}
877 \pagestyle{plain}
878 \pagenumbering{arabic}
879 \raggedbottom
880 \if@twocolumn
881   \twocolumn
882   \sloppy
883 \else
884   \onecolumn
885 \fi
886 \if@twoside
887   \@mparswitchtrue
888 \else
889   \@mparswitchfalse
890 \fi
891 \endinput
892 %%
893 %% End of file `ltjreport.cls'.