OSDN Git Service

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