OSDN Git Service

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