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
24 \NeedsTeXFormat{LaTeX2e}
25 \ProvidesClass{ltjbook}
26 [2017/01/17 v1.7c-ltj-12
27 Standard LuaLaTeX-ja class]
28 \RequirePackage{luatexja}
30 \newif\if@landscape \@landscapefalse
31 \newcommand{\@ptsize}{}
36 \newif\if@mainmatter \@mainmattertrue
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}}
79 \renewcommand{\@ptsize}{0}
81 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
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@}%
93 \jobname\space:\space\number\year/\number\month/\number\day
94 (\number\hour:\number\minute)}
96 \DeclareOption{tombo}{%
97 \tombowtrue \tombowdatefalse
98 \setlength{\@tombowwidth}{.1\p@}%
100 \DeclareOption{mentuke}{%
101 \tombowtrue \tombowdatefalse
102 \setlength{\@tombowwidth}{\z@}%
104 \DeclareOption{tate}{%
105 \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
107 \DeclareOption{oneside}{\@twosidefalse}
108 \DeclareOption{twoside}{\@twosidetrue}
109 \DeclareOption{onecolumn}{\@twocolumnfalse}
110 \DeclareOption{twocolumn}{\@twocolumntrue}
111 \DeclareOption{titlepage}{\@titlepagetrue}
112 \DeclareOption{notitlepage}{\@titlepagefalse}
116 \DeclareOption{openright}{\@openrighttrue}
117 \DeclareOption{openany}{\@openrightfalse}
119 \DeclareOption{leqno}{\input{leqno.clo}}
120 \DeclareOption{fleqn}{\input{fleqn.clo}}
121 \DeclareOption{openbib}{%
123 \renewcommand\@openbib@code{%
124 \advance\leftmargin\bibindent
125 \itemindent -\bibindent
126 \listparindent \itemindent
129 \renewcommand\newblock{\par}}}
133 \DeclareOption{disablejfam}{%
134 \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
135 \DeclareOption{mathrmmc}{\@mathrmmctrue}
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,twoside,onecolumn,final,openright}
149 \ProcessOptions\relax
150 \input{ltjbk1\@ptsize.clo}
152 \setlength\columnsep{2\Cwd}
154 \setlength\columnsep{10\p@}
156 \setlength\columnseprule{0\p@}
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}
168 \setlength{\pagewidth}{\stockwidth}
169 \setlength{\pageheight}{\stockheight}
172 \ifdefined\pdfpagewidth
173 \setlength{\pdfpagewidth}{\paperwidth}
174 \setlength{\pdfpageheight}{\paperheight}
176 \setlength{\pagewidth}{\paperwidth}
177 \setlength{\pageheight}{\paperheight}
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}
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\ps@plain{\let\@mkboth\@gobbletwo
199 \let\ps@jpl@in\ps@plain
201 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
202 \let\@evenhead\@empty
203 \let\@evenfoot\@oddfoot}
204 \let\ps@jpl@in\ps@plain
205 \def\ps@headnombre{\let\@mkboth\@gobbletwo
206 \let\ps@jpl@in\ps@headnombre
207 \def\@evenhead{\thepage\hfil}%
208 \def\@oddhead{\hfil\thepage}%
209 \let\@oddfoot\@empty\let\@evenfoot\@empty}
210 \def\ps@footnombre{\let\@mkboth\@gobbletwo
211 \let\ps@jpl@in\ps@footnombre
212 \def\@evenfoot{\thepage\hfil}%
213 \def\@oddfoot{\hfil\thepage}%
214 \let\@oddhead\@empty\let\@evenhead\@empty}
216 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
217 \let\@oddfoot\@empty\let\@evenfoot\@empty
218 \def\@evenhead{\thepage\hfil\leftmark}%
219 \def\@oddhead{{\rightmark}\hfil\thepage}%
220 \let\@mkboth\markboth
221 \def\chaptermark##1{\markboth{%
222 \ifnum \c@secnumdepth >\m@ne
224 \@chapapp\thechapter\@chappos\hskip1\zw
228 \def\sectionmark##1{\markright{%
229 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
232 \else % if not twoside
233 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
235 \def\@oddhead{{\rightmark}\hfil\thepage}%
236 \let\@mkboth\markboth
237 \def\chaptermark##1{\markright{%
238 \ifnum \c@secnumdepth >\m@ne
240 \@chapapp\thechapter\@chappos\hskip1\zw
247 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
248 \def\@evenhead{\leftmark\hfil}% right page
249 \def\@evenfoot{\thepage\hfil}% right page
250 \def\@oddhead{\hfil\rightmark}% left page
251 \def\@oddfoot{\hfil\thepage}% left page
252 \let\@mkboth\markboth
253 \def\chaptermark##1{\markboth{%
254 \ifnum \c@secnumdepth >\m@ne
256 \@chapapp\thechapter\@chappos\hskip1\zw
260 \def\sectionmark##1{\markright{%
261 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
264 \else % if one column
265 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
266 \def\@oddhead{\hfil\rightmark}%
267 \def\@oddfoot{\hfil\thepage}%
268 \let\@mkboth\markboth
269 \def\chaptermark##1{\markright{%
270 \ifnum \c@secnumdepth >\m@ne
272 \@chapapp\thechapter\@chappos\hskip1\zw
278 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
279 \let\@oddfoot\@empty\let\@evenfoot\@empty
280 \def\@evenhead{\thepage\hfil\leftmark}%
281 \def\@oddhead{{\rightmark}\hfil\thepage}%
282 \let\@mkboth\@gobbletwo
283 \let\chaptermark\@gobble
284 \let\sectionmark\@gobble
287 \newenvironment{titlepage}
290 \if@twocolumn\@restonecoltrue\onecolumn
291 \else\@restonecolfalse\newpage\fi
292 \thispagestyle{empty}%
295 {\if@restonecol\twocolumn\else\newpage\fi
298 \newenvironment{titlepage}
302 \@restonecoltrue\onecolumn
304 \@restonecolfalse\newpage
306 \thispagestyle{empty}%
307 \setcounter{page}\@ne
309 {\if@restonecol\twocolumn \else \newpage \fi
311 \setcounter{page}\@ne
315 \def\p@thanks#1{\footnotemark
316 \protected@xdef\@thanks{\@thanks
317 \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
319 \newcommand{\maketitle}{\begin{titlepage}%
320 \let\footnotesize\small
321 \let\footnoterule\relax
326 {\LARGE \@title \par}%
330 \begin{tabular}[t]{c}%
334 {\large \@date \par}% % Set date in \large size.
338 \setcounter{footnote}{0}%
339 \global\let\thanks\relax
340 \global\let\maketitle\relax
341 \global\let\p@thanks\relax
342 \global\let\@thanks\@empty
343 \global\let\@author\@empty
344 \global\let\@date\@empty
345 \global\let\@title\@empty
346 \global\let\title\relax
347 \global\let\author\relax
348 \global\let\date\relax
349 \global\let\and\relax
352 \newcommand{\maketitle}{\par
354 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
355 \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
356 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
357 \long\def\@makefntext##1{\parindent 1em\noindent
358 \hb@xt@1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
360 \ifnum \col@number=\@ne \@maketitle
361 \else \twocolumn[\@maketitle]%
365 \global\@topnum\z@ % Prevents figures from going at top of page.
368 \thispagestyle{jpl@in}\@thanks
370 \setcounter{footnote}{0}%
371 \global\let\thanks\relax
372 \global\let\maketitle\relax
373 \global\let\@maketitle\relax
374 \global\let\p@thanks\relax
375 \global\let\@thanks\@empty
376 \global\let\@author\@empty
377 \global\let\@date\@empty
378 \global\let\@title\@empty
379 \global\let\title\relax
380 \global\let\author\relax
381 \global\let\date\relax
382 \global\let\and\relax
389 {\LARGE \@title \par}%
393 \begin{tabular}[t]{c}%
401 \newcommand*{\chaptermark}[1]{}
402 \setcounter{secnumdepth}{2}
405 \newcounter{section}[chapter]
406 \newcounter{subsection}[section]
407 \newcounter{subsubsection}[subsection]
408 \newcounter{paragraph}[subsubsection]
409 \newcounter{subparagraph}[paragraph]
410 \renewcommand{\thepart}{\@Roman\c@part}
411 \renewcommand{\thechapter}{\@arabic\c@chapter}
412 \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
413 \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
414 \renewcommand{\thesubsubsection}{%
415 \thesubsection.\@arabic\c@subsubsection}
416 \renewcommand{\theparagraph}{%
417 \thesubsubsection.\@arabic\c@paragraph}
418 \renewcommand{\thesubparagraph}{%
419 \theparagraph.\@arabic\c@subparagraph}
420 \newcommand{\@chapapp}{\prechaptername}
421 \newcommand{\@chappos}{\postchaptername}
422 \newcommand{\frontmatter}{%
423 \if@openright \cleardoublepage \else \clearpage \fi
424 \@mainmatterfalse\pagenumbering{roman}}
425 \newcommand{\mainmatter}{%
426 \if@openright \cleardoublepage \else \clearpage \fi
427 \@mainmattertrue\pagenumbering{arabic}}
428 \newcommand{\backmatter}{%
429 \if@openright \cleardoublepage \else \clearpage \fi
432 \if@openright \cleardoublepage \else \clearpage \fi
433 \thispagestyle{empty}%
434 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
436 \secdef\@part\@spart}
438 \ifnum \c@secnumdepth >-2\relax
439 \refstepcounter{part}%
440 \addcontentsline{toc}{part}{%
441 \prepartname\thepart\postpartname\hspace{1em}#1}%
443 \addcontentsline{toc}{part}{#1}%
447 \interlinepenalty\@M\normalfont
448 \ifnum \c@secnumdepth >-2\relax
449 \huge\bfseries\prepartname\thepart\postpartname
452 \Huge\bfseries#2\par}%
456 \interlinepenalty\@M\normalfont
457 \Huge\bfseries#1\par}%
459 \def\@endpart{\vfil\newpage
461 \if@openright %% added (2016/12/18)
462 \null\thispagestyle{empty}\newpage
463 \fi %% added (2016/12/18)
465 \if@tempswa\twocolumn\fi}
466 \newcommand{\chapter}{%
467 \if@openright\cleardoublepage\else\clearpage\fi
468 \thispagestyle{jpl@in}%
471 \secdef\@chapter\@schapter}
472 \def\@chapter[#1]#2{%
473 \ifnum \c@secnumdepth >\m@ne
475 \refstepcounter{chapter}%
476 \typeout{\@chapapp\space\thechapter\space\@chappos}%
477 \addcontentsline{toc}{chapter}%
478 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
479 \else\addcontentsline{toc}{chapter}{#1}\fi
481 \addcontentsline{toc}{chapter}{#1}%
484 \addtocontents{lof}{\protect\addvspace{10\p@}}%
485 \addtocontents{lot}{\protect\addvspace{10\p@}}%
486 \@makechapterhead{#2}\@afterheading}
487 \def\@makechapterhead#1{\hbox{}%
491 \normalfont\huge\bfseries
493 \ifnum \c@secnumdepth >\m@ne
494 \setlength\@tempdima{\linewidth}%
496 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
497 \addtolength\@tempdima{-\wd\z@}%
500 \vtop{\hsize\@tempdima#1}%
503 \fi}\nobreak\vskip3\Cvs}
505 \@makeschapterhead{#1}\@afterheading
507 \def\@makeschapterhead#1{\hbox{}%
511 \normalfont\huge\bfseries
513 \setlength\@tempdima{\linewidth}%
514 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
515 \newcommand{\section}{\@startsection{section}{1}{\z@}%
516 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
517 {.5\Cvs \@plus.3\Cvs}%
518 {\normalfont\Large\bfseries}}
519 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
520 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
521 {.5\Cvs \@plus.3\Cvs}%
522 {\normalfont\large\bfseries}}
523 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
524 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
525 {.5\Cvs \@plus.3\Cvs}%
526 {\normalfont\normalsize\bfseries}}
527 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
528 {3.25ex \@plus 1ex \@minus .2ex}%
530 {\normalfont\normalsize\bfseries}}
531 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
532 {3.25ex \@plus 1ex \@minus .2ex}%
534 {\normalfont\normalsize\bfseries}}
535 \newcommand{\appendix}{\par
536 \setcounter{chapter}{0}%
537 \setcounter{section}{0}%
538 \renewcommand{\@chapapp}{\appendixname}%
539 \renewcommand{\@chappos}\space%
540 \renewcommand{\thechapter}{\@Alph\c@chapter}}
542 \setlength\leftmargini {2em}
544 \setlength\leftmargini {2.5em}
546 \setlength\leftmarginii {2.2em}
547 \setlength\leftmarginiii {1.87em}
548 \setlength\leftmarginiv {1.7em}
550 \setlength\leftmarginv {.5em}
551 \setlength\leftmarginvi{.5em}
553 \setlength\leftmarginv {1em}
554 \setlength\leftmarginvi{1em}
556 \setlength \labelsep {.5em}
557 \setlength \labelwidth{\leftmargini}
558 \addtolength\labelwidth{-\labelsep}
559 \@beginparpenalty -\@lowpenalty
560 \@endparpenalty -\@lowpenalty
561 \@itempenalty -\@lowpenalty
562 \renewcommand{\theenumi}{\@arabic\c@enumi}
563 \renewcommand{\theenumii}{\@alph\c@enumii}
564 \renewcommand{\theenumiii}{\@roman\c@enumiii}
565 \renewcommand{\theenumiv}{\@Alph\c@enumiv}
566 \newcommand{\labelenumi}{\theenumi.}
567 \newcommand{\labelenumii}{(\theenumii)}
568 \newcommand{\labelenumiii}{\theenumiii.}
569 \newcommand{\labelenumiv}{\theenumiv.}
570 \renewcommand{\p@enumii}{\theenumi}
571 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
572 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
573 \renewenvironment{enumerate}
574 {\ifnum \@enumdepth >\thr@@\@toodeep\else
575 \advance\@enumdepth\@ne
576 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
577 \expandafter \list \csname label\@enumctr\endcsname{%
578 \ifnum\ltjgetparameter{direction}=3
579 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
581 \parskip\z@ \itemsep\z@ \parsep\z@
582 \labelwidth1\zw \labelsep.3\zw
583 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
584 \else\leftmargin\leftskip\fi
585 \advance\leftmargin 1\zw
587 \usecounter{\@enumctr}%
588 \def\makelabel##1{\hss\llap{##1}}}%
590 \newcommand{\labelitemi}{\textbullet}
591 \newcommand{\labelitemii}{%
592 \ifnum\ltjgetparameter{direction}=3
595 {\normalfont\bfseries\textendash}
598 \newcommand{\labelitemiii}{\textasteriskcentered}
599 \newcommand{\labelitemiv}{\textperiodcentered}
600 \renewenvironment{itemize}
601 {\ifnum \@itemdepth >\thr@@\@toodeep\else
602 \advance\@itemdepth\@ne
603 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
604 \expandafter \list \csname \@itemitem\endcsname{%
605 \ifnum\ltjgetparameter{direction}=3
606 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
608 \parskip\z@ \itemsep\z@ \parsep\z@
609 \labelwidth1\zw \labelsep.3\zw
610 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
611 \else\leftmargin\leftskip\fi
612 \advance\leftmargin 1\zw
614 \def\makelabel##1{\hss\llap{##1}}}%
616 \newenvironment{description}
617 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
618 \ifnum\ltjgetparameter{direction}=3
619 \leftmargin\leftskip \advance\leftmargin3\Cwd
620 \rightmargin\rightskip
621 \labelsep=1\zw \itemsep\z@
622 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
624 \let\makelabel\descriptionlabel}}{\endlist}
625 \newcommand{\descriptionlabel}[1]{%
626 \hspace\labelsep\normalfont\bfseries #1}
627 \newenvironment{verse}
629 \list{}{\itemsep\z@ \itemindent -1.5em%
630 \listparindent\itemindent
631 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
632 \item\relax}{\endlist}
633 \newenvironment{quotation}
634 {\list{}{\listparindent 1.5em%
635 \itemindent\listparindent
636 \rightmargin\leftmargin
637 \parsep\z@ \@plus\p@}%
638 \item\relax}{\endlist}
639 \newenvironment{quote}
640 {\list{}{\rightmargin\leftmargin}%
641 \item\relax}{\endlist}
642 \newcounter{figure}[chapter]
643 \renewcommand{\thefigure}{%
644 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
648 \def\fnum@figure{\figurename~\thefigure}
649 \newenvironment{figure}
652 \newenvironment{figure*}
655 \newcounter{table}[chapter]
656 \renewcommand{\thetable}{%
657 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
661 \def\fnum@table{\tablename~\thetable}
662 \newenvironment{table}
665 \newenvironment{table*}
668 \newlength\abovecaptionskip
669 \newlength\belowcaptionskip
670 \setlength\abovecaptionskip{10\p@}
671 \setlength\belowcaptionskip{0\p@}
672 \long\def\@makecaption#1#2{%
673 \vskip\abovecaptionskip
674 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
675 \else\sbox\@tempboxa{#1: #2}%
677 \ifdim \wd\@tempboxa >\hsize
678 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
679 \else #1: #2\relax\par\fi
681 \global \@minipagefalse
682 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
684 \vskip\belowcaptionskip}
685 \setlength\arraycolsep{5\p@}
686 \setlength\tabcolsep{6\p@}
687 \setlength\arrayrulewidth{.4\p@}
688 \setlength\doublerulesep{2\p@}
689 \setlength\tabbingsep{\labelsep}
690 \skip\@mpfootins = \skip\footins
691 \setlength\fboxsep{3\p@}
692 \setlength\fboxrule{.4\p@}
693 \@addtoreset{equation}{chapter}
694 \renewcommand{\theequation}{%
695 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
696 \if@compatibility\else
697 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
698 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
699 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
701 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
705 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
706 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
709 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
710 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
711 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
712 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
713 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
714 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
715 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
716 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
717 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
718 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
719 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
720 \setcounter{tocdepth}{2}
721 \newcommand{\@pnumwidth}{1.55em}
722 \newcommand{\@tocrmarg}{2.55em}
723 \newcommand{\@dotsep}{4.5}
724 \newdimen\toclineskip
725 \setlength\toclineskip{\z@}
727 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
728 \def\@dottedtocline#1#2#3#4#5{%
729 \ifnum #1>\c@tocdepth \else
730 \vskip\toclineskip \@plus.2\p@
731 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
732 \parindent #2\relax\@afterindenttrue
736 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
738 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
740 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
743 \def\addcontentsline#1#2#3{%
744 \protected@write\@auxout
745 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
746 \@temptokena{\thepage}}%
747 {\string\@writefile{#1}%
748 {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
750 \newcommand{\tableofcontents}{%
751 \if@twocolumn\@restonecoltrue\onecolumn
752 \else\@restonecolfalse\fi
753 \chapter*{\contentsname
754 \@mkboth{\contentsname}{\contentsname}%
756 \if@restonecol\twocolumn\fi
758 \newcommand*{\l@part}[2]{%
759 \ifnum \c@tocdepth >-2\relax
760 \addpenalty{-\@highpenalty}%
761 \addvspace{2.25em \@plus\p@}%
763 \parindent\z@\rightskip\@pnumwidth
764 \parfillskip-\@pnumwidth
765 {\leavevmode\large\bfseries
766 \setlength\@lnumwidth{4\zw}%
768 \hb@xt@\@pnumwidth{\hss#2}}\par
771 \everypar{\global\@nobreakfalse\everypar{}}%
774 \newcommand*{\l@chapter}[2]{%
775 \ifnum \c@tocdepth >\m@ne
776 \addpenalty{-\@highpenalty}%
777 \addvspace{1.0em \@plus\p@}%
779 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
781 \setlength\@lnumwidth{4\zw}%
782 \advance\leftskip\@lnumwidth \hskip-\leftskip
783 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
784 \penalty\@highpenalty
787 \newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
788 \newcommand*{\l@subsection} {\@dottedtocline{2}{3.8em}{3.2em}}
789 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
790 \newcommand*{\l@paragraph} {\@dottedtocline{4}{10em}{5em}}
791 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
792 \newcommand{\listoffigures}{%
793 \if@twocolumn\@restonecoltrue\onecolumn
794 \else\@restonecolfalse\fi
795 \chapter*{\listfigurename}%
796 \@mkboth{\listfigurename}{\listfigurename}%
798 \if@restonecol\twocolumn\fi
800 \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
801 \newcommand{\listoftables}{%
802 \if@twocolumn\@restonecoltrue\onecolumn
803 \else\@restonecolfalse\fi
804 \chapter*{\listtablename}%
805 \@mkboth{\listtablename}{\listtablename}%
807 \if@restonecol\twocolumn\fi
809 \let\l@table\l@figure
811 \setlength\bibindent{1.5em}
812 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
813 \newenvironment{thebibliography}[1]
814 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
815 \list{\@biblabel{\@arabic\c@enumiv}}%
816 {\settowidth\labelwidth{\@biblabel{#1}}%
817 \leftmargin\labelwidth
818 \advance\leftmargin\labelsep
822 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
825 \@clubpenalty\clubpenalty
829 {\@latex@warning{Empty `thebibliography' environment}}%
831 \let\@openbib@code\@empty
832 \newenvironment{theindex}
833 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
834 \twocolumn[\@makeschapterhead{\indexname}]%
835 \@mkboth{\indexname}{\indexname}%
836 \thispagestyle{jpl@in}\parindent\z@
837 \parskip\z@ \@plus .3\p@\relax
838 \columnseprule\z@ \columnsep 35\p@
840 {\if@restonecol\onecolumn\else\clearpage\fi}
841 \newcommand{\@idxitem}{\par\hangindent 40\p@}
842 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
843 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
844 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
845 \renewcommand{\footnoterule}{%
847 \hrule\@width.4\columnwidth
849 \@addtoreset{footnote}{chapter}
850 \newcommand\@makefntext[1]{\parindent 1em
851 \noindent\hb@xt@ 1.8em{\hss\@makefnmark}#1}
855 \newcount\heisei \heisei\year \advance\heisei-1988\relax
857 \ifnum\ltjgetparameter{direction}=3
863 平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
873 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
878 \newcommand{\prepartname}{第}
879 \newcommand{\postpartname}{部}
880 \newcommand{\prechaptername}{第}
881 \newcommand{\postchaptername}{章}
882 \newcommand{\contentsname}{目 次}
883 \newcommand{\listfigurename}{図 目 次}
884 \newcommand{\listtablename}{表 目 次}
885 \newcommand{\bibname}{関連図書}
886 \newcommand{\indexname}{索 引}
887 \newcommand{\figurename}{図}
888 \newcommand{\tablename}{表}
889 \newcommand{\appendixname}{付 録}
891 \pagenumbering{arabic}
906 %% End of file `ltjbook.cls'.