OSDN Git Service

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