OSDN Git Service

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