OSDN Git Service

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