OSDN Git Service

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