OSDN Git Service

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