OSDN Git Service

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