OSDN Git Service

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