OSDN Git Service

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