OSDN Git Service

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