OSDN Git Service

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