OSDN Git Service

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