OSDN Git Service

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