OSDN Git Service

unhbox and unvbox.
[luatex-ja/luatexja.git] / src / ltjtreport.cls
1 %%
2 %% This is file `ltjtreport.cls',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ltjclasses.dtx  (with options: `report,tate')
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 ltjtreport.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{ltjtreport}
42   [2013/06/06 v1.6-ltj-2
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   \AtBeginDocument{\tate\message{《縦組モード》}%
121                    \adjustbaseline}%
122 }
123 \DeclareOption{oneside}{\@twosidefalse}
124 \DeclareOption{twoside}{\@twosidetrue}
125 \DeclareOption{onecolumn}{\@twocolumnfalse}
126 \DeclareOption{twocolumn}{\@twocolumntrue}
127 \DeclareOption{titlepage}{\@titlepagetrue}
128 \DeclareOption{notitlepage}{\@titlepagefalse}
129 \if@compatibility
130 \else
131 \DeclareOption{openright}{\@openrighttrue}
132 \DeclareOption{openany}{\@openrightfalse}
133 \fi
134 \DeclareOption{leqno}{\input{leqno.clo}}
135 \DeclareOption{fleqn}{\input{fleqn.clo}}
136 \DeclareOption{openbib}{%
137   \AtEndOfPackage{%
138    \renewcommand\@openbib@code{%
139       \advance\leftmargin\bibindent
140       \itemindent -\bibindent
141       \listparindent \itemindent
142       \parsep \z@
143       }%
144    \renewcommand\newblock{\par}}}
145 \if@compatibility
146   \@mathrmmctrue
147 \else
148   \DeclareOption{disablejfam}{%
149     \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
150   \DeclareOption{mathrmmc}{\@mathrmmctrue}
151 \fi
152 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
153 \DeclareOption{final}{\setlength\overfullrule{0pt}}
154 \ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany,tate}
155 \ProcessOptions\relax
156 \input{ltjtsize1\@ptsize.clo}
157 %\RequirePackage{plext}
158 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
159   function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
160   'ltj.jclasses_load_jfm', 1)}
161 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
162 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
163 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
164 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
165 \ltjglobalsetparameter{differentjfm=both}
166 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
167 \if@stysize
168   \setlength\columnsep{3\Cwd}
169 \else
170   \setlength\columnsep{10\p@}
171 \fi
172 \setlength\columnseprule{0\p@}
173 \setlength{\@tempdima}{\paperwidth}
174 \setlength{\@tempdimb}{\paperheight}
175 \iftombow
176   \advance \@tempdima 2in
177   \advance \@tempdimb 2in
178 \fi
179 \setlength{\pdfpagewidth}{\@tempdima}
180 \setlength{\pdfpageheight}{\@tempdimb}
181 \setlength\lineskip{1\p@}
182 \setlength\normallineskip{1\p@}
183 \renewcommand{\baselinestretch}{}
184 \setlength\parskip{0\p@ \@plus \p@}
185 \setlength\parindent{1\Cwd}
186 \@lowpenalty   51
187 \@medpenalty  151
188 \@highpenalty 301
189 \setcounter{topnumber}{2}
190 \setcounter{bottomnumber}{1}
191 \setcounter{totalnumber}{3}
192 \setcounter{dbltopnumber}{2}
193 \renewcommand{\topfraction}{.7}
194 \renewcommand{\bottomfraction}{.3}
195 \renewcommand{\textfraction}{.2}
196 \renewcommand{\floatpagefraction}{.5}
197 \renewcommand{\dbltopfraction}{.7}
198 \renewcommand{\dblfloatpagefraction}{.5}
199 \def\ps@plain{\let\@mkboth\@gobbletwo
200    \let\ps@jpl@in\ps@plain
201    \let\@oddhead\@empty
202    \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
203    \let\@evenhead\@empty
204    \let\@evenfoot\@oddfoot}
205 \let\ps@jpl@in\ps@plain
206 \def\ps@headnombre{\let\@mkboth\@gobbletwo
207     \let\ps@jpl@in\ps@headnombre
208   \def\@evenhead{\hfil\thepage}%
209   \def\@oddhead{\thepage\hfil}%
210   \let\@oddfoot\@empty\let\@evenfoot\@empty}
211 \def\ps@footnombre{\let\@mkboth\@gobbletwo
212     \let\ps@jpl@in\ps@footnombre
213   \def\@evenfoot{\hfil\thepage}%
214   \def\@oddfoot{\thepage\hfil}%
215   \let\@oddhead\@empty\let\@evenhead\@empty}
216 \if@twoside
217   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
218     \let\@oddfoot\@empty\let\@evenfoot\@empty
219     \def\@evenhead{{\leftmark}\hfil\thepage}%
220     \def\@oddhead{\thepage\hfil\rightmark}%
221     \let\@mkboth\markboth
222   \def\chaptermark##1{\markboth{%
223      \ifnum \c@secnumdepth >\m@ne
224          \@chapapp\thechapter\@chappos\hskip1\zw
225      \fi
226      ##1}{}}%
227   \def\sectionmark##1{\markright{%
228      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
229      ##1}}%
230   }
231 \else % if not twoside
232   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
233     \let\@oddfoot\@empty
234     \def\@oddhead{\thepage\hfil\rightmark}%
235     \let\@mkboth\markboth
236 \def\chaptermark##1{\markright{%
237    \ifnum \c@secnumdepth >\m@ne
238        \@chapapp\thechapter\@chappos\hskip1\zw
239    \fi
240    ##1}}%
241   }
242 \fi
243 \if@twoside
244   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
245     \def\@evenhead{\hfil\leftmark}% right page
246     \def\@evenfoot{\hfil\thepage}% right page
247     \def\@oddhead{\rightmark\hfil}% left page
248     \def\@oddfoot{\thepage\hfil}% left page
249   \let\@mkboth\markboth
250 \def\chaptermark##1{\markboth{%
251      \ifnum \c@secnumdepth >\m@ne
252          \@chapapp\thechapter\@chappos\hskip1\zw
253      \fi
254      ##1}{}}%
255   \def\sectionmark##1{\markright{%
256      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
257      ##1}}%
258   }
259 \else % if one column
260   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
261     \def\@oddhead{\rightmark\hfil}%
262     \def\@oddfoot{\thepage\hfil}%
263     \let\@mkboth\markboth
264   \def\chaptermark##1{\markright{%
265      \ifnum \c@secnumdepth >\m@ne
266          \@chapapp\thechapter\@chappos\hskip1\zw
267      \fi
268      ##1}}%
269   }
270 \fi
271 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
272   \let\@oddfoot\@empty\let\@evenfoot\@empty
273   \def\@evenhead{{\leftmark}\hfil\thepage}%
274   \def\@oddhead{\thepage\hfil\rightmark}%
275   \let\@mkboth\@gobbletwo
276   \let\chaptermark\@gobble
277   \let\sectionmark\@gobble
278 }
279 \if@compatibility
280 \newenvironment{titlepage}
281     {%
282      \if@twocolumn\@restonecoltrue\onecolumn
283      \else\@restonecolfalse\newpage\fi
284      \thispagestyle{empty}%
285      \setcounter{page}\z@
286     }%
287     {\if@restonecol\twocolumn\else\newpage\fi
288     }
289 \else
290 \newenvironment{titlepage}
291     {%
292       \if@twocolumn
293         \@restonecoltrue\onecolumn
294       \else
295         \@restonecolfalse\newpage
296       \fi
297       \thispagestyle{empty}%
298       \setcounter{page}\@ne
299     }%
300     {\if@restonecol\twocolumn \else \newpage \fi
301      \if@twoside\else
302         \setcounter{page}\@ne
303      \fi
304     }
305 \fi
306 \def\p@thanks#1{\footnotemark
307   \protected@xdef\@thanks{\@thanks
308     \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
309 \if@titlepage
310   \newcommand{\maketitle}{\begin{titlepage}%
311   \let\footnotesize\small
312   \let\footnoterule\relax
313   \let\thanks\p@thanks
314   \let\footnote\thanks
315   \vbox to\textheight\bgroup\tate\hsize\textwidth
316   \null\vfil
317   \vskip 60\p@
318   \begin{center}%
319     {\LARGE \@title \par}%
320     \vskip 3em%
321     {\Large
322      \lineskip .75em%
323       \begin{tabular}[t]{c}%
324         \@author
325       \end{tabular}\par}%
326       \vskip 1.5em%
327     {\large \@date \par}%       % Set date in \large size.
328   \end{center}\par
329   \vfil{\centering\@thanks}\vfil\null
330   \egroup
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{\ifydir $\m@th^{\@thefnmark}$
350       \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
351     \long\def\@makefntext##1{\parindent 1\zw\noindent
352        \hbox to 2\zw{\hss\@makefnmark}##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\p@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}{\rensuji{\@Roman\c@part}}
426 \renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
427 \renewcommand{\thesection}{\thechapter・\rensuji{\@arabic\c@section}}
428 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
429 \renewcommand{\thesubsubsection}{%
430    \thesubsection・\rensuji{\@arabic\c@subsubsection}}
431 \renewcommand{\theparagraph}{%
432    \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
433 \renewcommand{\thesubparagraph}{%
434    \theparagraph・\rensuji{\@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}{\rensuji{\@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}{\rensuji{\@arabic\c@enumi}}
561 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
562 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
563 \renewcommand{\theenumiv}{\rensuji{\@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       \iftdir
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   \iftdir
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       \iftdir
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    \iftdir
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\rensuji{\@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\rensuji{\@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   \iftdir\sbox\@tempboxa{#1\hskip1\zw#2}%
674     \else\sbox\@tempboxa{#1: #2}%
675   \fi
676   \ifdim \wd\@tempboxa >\hsize
677     \iftdir #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{2\p@}
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{\rensuji{\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\zw}{4\zw}}
787 \newcommand*{\l@subsection}   {\@dottedtocline{2}{2\zw}{6\zw}}
788 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
789 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{4\zw}{9\zw}}
790 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
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\zw}{4\zw}}
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 1\zw
850   \noindent\hbox to 2\zw{\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   \iftdir
857     \if西暦
858       \kansuji\number\year 年
859       \kansuji\number\month 月
860       \kansuji\number\day 日
861     \else
862       平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi
863       \kansuji\number\month 月
864       \kansuji\number\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 \normalmarginpar
900 \@mparswitchfalse
901 \endinput
902 %%
903 %% End of file `ltjtreport.cls'.