OSDN Git Service

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