OSDN Git Service

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