2 %% This is file `ltjbook.cls',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% ltjclasses.dtx (with options: `book,yoko')
11 %% For the copyright see the source file.
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from ltjbook.cls.
16 %% For distribution of the original source see the terms
17 %% for copying and modification in the file ltjclasses.dtx.
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
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 \~}
40 \NeedsTeXFormat{LaTeX2e}
41 \ProvidesClass{ltjbook}
43 Standard LuaLaTeX-ja class]
44 \RequirePackage{luatexja}
46 \newif\if@landscape \@landscapefalse
47 \newcommand{\@ptsize}{}
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}}
95 \renewcommand{\@ptsize}{0}
97 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
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@}%
109 \jobname\space:\space\number\year/\number\month/\number\day
110 (\number\hour:\number\minute)}
112 \DeclareOption{tombo}{%
113 \tombowtrue \tombowdatefalse
114 \setlength{\@tombowwidth}{.1\p@}%
116 \DeclareOption{mentuke}{%
117 \tombowtrue \tombowdatefalse
118 \setlength{\@tombowwidth}{\z@}%
120 %% \DeclareOption{tate}{%
121 %% \AtBeginDocument{\tate\message{《縦組モード》}%
124 \DeclareOption{oneside}{\@twosidefalse}
125 \DeclareOption{twoside}{\@twosidetrue}
126 \DeclareOption{onecolumn}{\@twocolumnfalse}
127 \DeclareOption{twocolumn}{\@twocolumntrue}
128 \DeclareOption{titlepage}{\@titlepagetrue}
129 \DeclareOption{notitlepage}{\@titlepagefalse}
133 \DeclareOption{openright}{\@openrighttrue}
134 \DeclareOption{openany}{\@openrightfalse}
136 \DeclareOption{leqno}{\input{leqno.clo}}
137 \DeclareOption{fleqn}{\input{fleqn.clo}}
138 \DeclareOption{openbib}{%
140 \renewcommand\@openbib@code{%
141 \advance\leftmargin\bibindent
142 \itemindent -\bibindent
143 \listparindent \itemindent
146 \renewcommand\newblock{\par}}}
150 \DeclareOption{disablejfam}{%
151 \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
152 \DeclareOption{mathrmmc}{\@mathrmmctrue}
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=psft:Ryumin-Light: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] psft:Ryumin-Light:jfm=min}{}
165 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] psft:GothicBBB-Medium:jfm=min;jfmvar=goth}{}
166 \ltjglobalsetparameter{differentjfm=both}
167 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
169 \setlength\columnsep{2\Cwd}
171 \setlength\columnsep{10\p@}
173 \setlength\columnseprule{0\p@}
174 \setlength{\@tempdima}{\paperwidth}
175 \setlength{\@tempdimb}{\paperheight}
177 \advance \@tempdima 2in
178 \advance \@tempdimb 2in
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}
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
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}
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
226 \@chapapp\thechapter\@chappos\hskip1\zw
230 \def\sectionmark##1{\markright{%
231 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
234 \else % if not twoside
235 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
237 \def\@oddhead{{\rightmark}\hfil\thepage}%
238 \let\@mkboth\markboth
239 \def\chaptermark##1{\markright{%
240 \ifnum \c@secnumdepth >\m@ne
242 \@chapapp\thechapter\@chappos\hskip1\zw
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
258 \@chapapp\thechapter\@chappos\hskip1\zw
262 \def\sectionmark##1{\markright{%
263 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
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
274 \@chapapp\thechapter\@chappos\hskip1\zw
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
289 \newenvironment{titlepage}
292 \if@twocolumn\@restonecoltrue\onecolumn
293 \else\@restonecolfalse\newpage\fi
294 \thispagestyle{empty}%
297 {\if@restonecol\twocolumn\else\newpage\fi
300 \newenvironment{titlepage}
304 \@restonecoltrue\onecolumn
306 \@restonecolfalse\newpage
308 \thispagestyle{empty}%
309 \setcounter{page}\@ne
311 {\if@restonecol\twocolumn \else \newpage \fi
313 \setcounter{page}\@ne
317 \def\p@thanks#1{\footnotemark
318 \protected@xdef\@thanks{\@thanks
319 \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
321 \newcommand{\maketitle}{\begin{titlepage}%
322 \let\footnotesize\small
323 \let\footnoterule\relax
328 {\LARGE \@title \par}%
332 \begin{tabular}[t]{c}%
336 {\large \@date \par}% % Set date in \large size.
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
354 \newcommand{\maketitle}{\par
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}%
362 \ifnum \col@number=\@ne \@maketitle
363 \else \twocolumn[\@maketitle]%
367 \global\@topnum\z@ % Prevents figures from going at top of page.
370 \thispagestyle{jpl@in}\@thanks
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
390 {\LARGE \@title \par}%
394 \begin{tabular}[t]{c}%
402 \newcommand*{\chaptermark}[1]{}
403 \setcounter{secnumdepth}{2}
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
433 \if@openright \cleardoublepage \else \clearpage \fi
434 \thispagestyle{empty}%
435 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
437 \secdef\@part\@spart}
439 \ifnum \c@secnumdepth >-2\relax
440 \refstepcounter{part}%
441 \addcontentsline{toc}{part}{%
442 \prepartname\thepart\postpartname\hspace{1em}#1}%
444 \addcontentsline{toc}{part}{#1}%
448 \interlinepenalty\@M\reset@font
449 \ifnum \c@secnumdepth >-2\relax
450 \huge\bfseries\prepartname\thepart\postpartname
453 \Huge\bfseries#2\par}%
457 \interlinepenalty\@M\reset@font
458 \Huge\bfseries#1\par}%
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}%
468 \secdef\@chapter\@schapter}
469 \def\@chapter[#1]#2{%
470 \ifnum \c@secnumdepth >\m@ne
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
478 \addcontentsline{toc}{chapter}{#1}%
481 \addtocontents{lof}{\protect\addvspace{10\p@}}%
482 \addtocontents{lot}{\protect\addvspace{10\p@}}%
483 \@makechapterhead{#2}\@afterheading}
484 \def\@makechapterhead#1{\hbox{}%
488 \reset@font\huge\bfseries
490 \ifnum \c@secnumdepth >\m@ne
491 \setlength\@tempdima{\linewidth}%
493 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
494 \addtolength\@tempdima{-\wd\z@}%
497 \vtop{\hsize\@tempdima#1}%
500 \fi}\nobreak\vskip3\Cvs}
502 \@makeschapterhead{#1}\@afterheading
504 \def\@makeschapterhead#1{\hbox{}%
508 \reset@font\huge\bfseries
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}%
527 {\reset@font\normalsize\bfseries}}
528 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
529 {3.25ex \@plus 1ex \@minus .2ex}%
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}}
539 \setlength\leftmargini {2em}
541 \setlength\leftmargini {2.5em}
543 \setlength\leftmarginii {2.2em}
544 \setlength\leftmarginiii {1.87em}
545 \setlength\leftmarginiv {1.7em}
547 \setlength\leftmarginv {.5em}
548 \setlength\leftmarginvi{.5em}
550 \setlength\leftmarginv {1em}
551 \setlength\leftmarginvi{1em}
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}{%
576 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
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
584 \usecounter{\@enumctr}%
585 \def\makelabel##1{\hss\llap{##1}}}%
587 \newcommand{\labelitemi}{\textbullet}
588 \newcommand{\labelitemii}{%
592 {\normalfont\bfseries\textendash}
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}%
602 \list{\csname \@itemitem\endcsname}{%
604 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
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
612 \def\makelabel##1{\hss\llap{##1}}}%
614 \newenvironment{description}
615 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
617 \leftmargin\leftskip \advance\leftmargin3\Cwd
618 \rightmargin\rightskip
619 \labelsep=1\zw \itemsep\z@
620 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
622 \let\makelabel\descriptionlabel}}{\endlist}
623 \newcommand{\descriptionlabel}[1]{%
624 \hspace\labelsep\normalfont\bfseries #1}
625 \newenvironment{verse}
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}
646 \def\fnum@figure{\figurename~\thefigure}
647 \newenvironment{figure}
650 \newenvironment{figure*}
653 \newcounter{table}[chapter]
654 \renewcommand{\thetable}{%
655 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
659 \def\fnum@table{\tablename~\thetable}
660 \newenvironment{table}
663 \newenvironment{table*}
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}%
675 \ifdim \wd\@tempboxa >\hsize
676 \iftdir #1\hskip1\zw#2\relax\par
677 \else #1: #2\relax\par\fi
679 \global \@minipagefalse
680 \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
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}
699 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
703 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
704 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
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@}
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
734 \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
736 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
738 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
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}}}%
748 \newcommand{\tableofcontents}{%
749 \if@twocolumn\@restonecoltrue\onecolumn
750 \else\@restonecolfalse\fi
751 \chapter*{\contentsname
752 \@mkboth{\contentsname}{\contentsname}%
754 \if@restonecol\twocolumn\fi
756 \newcommand*{\l@part}[2]{%
757 \ifnum \c@tocdepth >-2\relax
758 \addpenalty{-\@highpenalty}%
759 \addvspace{2.25em \@plus\p@}%
761 \parindent\z@\rightskip\@pnumwidth
762 \parfillskip-\@pnumwidth
763 {\leavevmode\large\bfseries
764 \setlength\@lnumwidth{4\zw}%
766 \hbox to\@pnumwidth{\hss#2}}\par
769 \everypar{\global\@nobreakfalse\everypar{}}%
772 \newcommand*{\l@chapter}[2]{%
773 \ifnum \c@tocdepth >\m@ne
774 \addpenalty{-\@highpenalty}%
775 \addvspace{1.0em \@plus\p@}%
777 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
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
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}}%
796 \if@restonecol\twocolumn\fi
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}}%
805 \if@restonecol\twocolumn\fi
807 \let\l@table\l@figure
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
820 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
823 \@clubpenalty\clubpenalty
827 {\@latex@warning{Empty `thebibliography' environment}}%
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
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}{%
845 \hrule width .4\columnwidth
847 \@addtoreset{footnote}{chapter}
848 \newcommand\@makefntext[1]{\parindent 1em
849 \noindent\hbox to 1.8em{\hss\@makefnmark}#1}
850 \newif\ifSeireki \Seirekifalse
851 \def\Seireki{\Seirekitrue}
852 \def\Wareki{\Seirekifalse}
853 \newcount\heisei \heisei\year \advance\heisei-1988\relax
857 \kansuji\number\year 年
858 \kansuji\number\month 月
859 \kansuji\number\day 日
861 平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi
862 \kansuji\number\month 月
863 \kansuji\number\day 日
871 平成\ifnum\heisei=1 元年\else\number\heisei~年\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}{付 録}
889 \pagenumbering{arabic}
904 %% End of file `ltjbook.cls'.