OSDN Git Service

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