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 [2018/07/24 v1.8-ltj-15
27 Standard LuaLaTeX-ja class]
28 \RequirePackage{luatexja}
30 \newif\if@landscape \@landscapefalse
31 \newcommand{\@ptsize}{}
37 \newif\if@mainmatter \@mainmattertrue
38 \hour\time \divide\hour by 60\relax
39 \@tempcnta\hour \multiply\@tempcnta 60\relax
40 \minute\time \advance\minute-\@tempcnta
41 \newif\if@stysize \@stysizefalse
42 \newif\if@mathrmmc \@mathrmmcfalse
43 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
44 \setlength\paperheight {297mm}%
45 \setlength\paperwidth {210mm}}
46 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
47 \setlength\paperheight {210mm}
48 \setlength\paperwidth {148mm}}
49 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
50 \setlength\paperheight {364mm}
51 \setlength\paperwidth {257mm}}
52 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
53 \setlength\paperheight {257mm}
54 \setlength\paperwidth {182mm}}
55 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
56 \setlength\paperheight {297mm}%
57 \setlength\paperwidth {210mm}}
58 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
59 \setlength\paperheight {210mm}
60 \setlength\paperwidth {148mm}}
61 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
62 \setlength\paperheight {364mm}
63 \setlength\paperwidth {257mm}}
64 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
65 \setlength\paperheight {257mm}
66 \setlength\paperwidth {182mm}}
67 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
68 \setlength\paperheight {297mm}%
69 \setlength\paperwidth {210mm}}
70 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
71 \setlength\paperheight {210mm}
72 \setlength\paperwidth {148mm}}
73 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
74 \setlength\paperheight {364mm}
75 \setlength\paperwidth {257mm}}
76 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
77 \setlength\paperheight {257mm}
78 \setlength\paperwidth {182mm}}
80 \renewcommand{\@ptsize}{0}
82 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
84 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
85 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
86 \DeclareOption{landscape}{\@landscapetrue
87 \setlength\@tempdima{\paperheight}%
88 \setlength\paperheight{\paperwidth}%
89 \setlength\paperwidth{\@tempdima}}
90 \DeclareOption{tombow}{%
91 \tombowtrue \tombowdatetrue
92 \setlength{\@tombowwidth}{.1\p@}%
94 \jobname\space(\number\year-\two@digits\month-\two@digits\day
95 \space\two@digits\hour:\two@digits\minute)}%
97 \DeclareOption{tombo}{%
98 \tombowtrue \tombowdatefalse
99 \setlength{\@tombowwidth}{.1\p@}%
101 \DeclareOption{mentuke}{%
102 \tombowtrue \tombowdatefalse
103 \setlength{\@tombowwidth}{\z@}%
105 \DeclareOption{tate}{%
106 \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
108 \DeclareOption{oneside}{\@twosidefalse}
109 \DeclareOption{twoside}{\@twosidetrue}
110 \DeclareOption{onecolumn}{\@twocolumnfalse}
111 \DeclareOption{twocolumn}{\@twocolumntrue}
112 \DeclareOption{titlepage}{\@titlepagetrue}
113 \DeclareOption{notitlepage}{\@titlepagefalse}
117 \DeclareOption{openright}{\@openrighttrue\@openleftfalse}
118 \DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
119 \DeclareOption{openany}{\@openrightfalse\@openleftfalse}
121 \DeclareOption{leqno}{\input{leqno.clo}}
122 \DeclareOption{fleqn}{\input{fleqn.clo}}
123 \DeclareOption{openbib}{%
125 \renewcommand\@openbib@code{%
126 \advance\leftmargin\bibindent
127 \itemindent -\bibindent
128 \listparindent \itemindent
131 \renewcommand\newblock{\par}}}
135 \DeclareOption{disablejfam}{%
136 \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
137 \DeclareOption{mathrmmc}{\@mathrmmctrue}
139 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
140 \DeclareOption{final}{\setlength\overfullrule{0pt}}
141 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
142 function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
143 'ltj.jclasses_load_jfm', 1)}
144 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
145 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
146 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
147 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
148 \ltjglobalsetparameter{differentjfm=both}
149 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
150 \ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright}
151 \ProcessOptions\relax
152 \input{ltjbk1\@ptsize.clo}
153 \def\Cjascale{0.962216}
155 \setlength\columnsep{2\Cwd}
157 \setlength\columnsep{10\p@}
159 \setlength\columnseprule{0\p@}
161 \newlength{\stockwidth}
162 \newlength{\stockheight}
163 \setlength{\stockwidth}{\paperwidth}
164 \setlength{\stockheight}{\paperheight}
165 \advance \stockwidth 2in
166 \advance \stockheight 2in
167 \ifdefined\pdfpagewidth
168 \setlength{\pdfpagewidth}{\stockwidth}
169 \setlength{\pdfpageheight}{\stockheight}
171 \setlength{\pagewidth}{\stockwidth}
172 \setlength{\pageheight}{\stockheight}
175 \ifdefined\pdfpagewidth
176 \setlength{\pdfpagewidth}{\paperwidth}
177 \setlength{\pdfpageheight}{\paperheight}
179 \setlength{\pagewidth}{\paperwidth}
180 \setlength{\pageheight}{\paperheight}
183 \setlength\lineskip{1\p@}
184 \setlength\normallineskip{1\p@}
185 \renewcommand{\baselinestretch}{}
186 \setlength\parskip{0\p@ \@plus \p@}
187 \setlength\parindent{1\Cwd}
191 \setcounter{topnumber}{2}
192 \setcounter{bottomnumber}{1}
193 \setcounter{totalnumber}{3}
194 \setcounter{dbltopnumber}{2}
195 \renewcommand{\topfraction}{.7}
196 \renewcommand{\bottomfraction}{.3}
197 \renewcommand{\textfraction}{.2}
198 \renewcommand{\floatpagefraction}{.5}
199 \renewcommand{\dbltopfraction}{.7}
200 \renewcommand{\dblfloatpagefraction}{.5}
201 \def\pltx@cleartorightpage{\clearpage\if@twoside
202 \unless\ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
203 \hbox{}\thispagestyle{empty}\newpage
204 \if@twocolumn\hbox{}\newpage\fi
206 \def\pltx@cleartoleftpage{\clearpage\if@twoside
207 \ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
208 \hbox{}\thispagestyle{empty}\newpage
209 \if@twocolumn\hbox{}\newpage\fi
211 \def\pltx@cleartooddpage{\clearpage\if@twoside
213 \hbox{}\thispagestyle{empty}\newpage
214 \if@twocolumn\hbox{}\newpage\fi
216 \def\pltx@cleartoevenpage{\clearpage\if@twoside
218 \hbox{}\thispagestyle{empty}\newpage
219 \if@twocolumn\hbox{}\newpage\fi
222 \let\cleardoublepage\pltx@cleartoleftpage
224 \let\cleardoublepage\pltx@cleartorightpage
226 \def\ps@plain{\let\@mkboth\@gobbletwo
227 \let\ps@jpl@in\ps@plain
229 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
230 \let\@evenhead\@empty
231 \let\@evenfoot\@oddfoot}
232 \let\ps@jpl@in\ps@plain
233 \def\ps@headnombre{\let\@mkboth\@gobbletwo
234 \let\ps@jpl@in\ps@headnombre
235 \def\@evenhead{\thepage\hfil}%
236 \def\@oddhead{\hfil\thepage}%
237 \let\@oddfoot\@empty\let\@evenfoot\@empty}
238 \def\ps@footnombre{\let\@mkboth\@gobbletwo
239 \let\ps@jpl@in\ps@footnombre
240 \def\@evenfoot{\thepage\hfil}%
241 \def\@oddfoot{\hfil\thepage}%
242 \let\@oddhead\@empty\let\@evenhead\@empty}
244 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
245 \let\@oddfoot\@empty\let\@evenfoot\@empty
246 \def\@evenhead{\thepage\hfil\leftmark}%
247 \def\@oddhead{{\rightmark}\hfil\thepage}%
248 \let\@mkboth\markboth
249 \def\chaptermark##1{\markboth{%
250 \ifnum \c@secnumdepth >\m@ne
252 \@chapapp\thechapter\@chappos\hskip1\zw
256 \def\sectionmark##1{\markright{%
257 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
260 \else % if not twoside
261 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
263 \def\@oddhead{{\rightmark}\hfil\thepage}%
264 \let\@mkboth\markboth
265 \def\chaptermark##1{\markright{%
266 \ifnum \c@secnumdepth >\m@ne
268 \@chapapp\thechapter\@chappos\hskip1\zw
275 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
276 \def\@evenhead{\leftmark\hfil}% right page
277 \def\@evenfoot{\thepage\hfil}% right page
278 \def\@oddhead{\hfil\rightmark}% left page
279 \def\@oddfoot{\hfil\thepage}% left page
280 \let\@mkboth\markboth
281 \def\chaptermark##1{\markboth{%
282 \ifnum \c@secnumdepth >\m@ne
284 \@chapapp\thechapter\@chappos\hskip1\zw
288 \def\sectionmark##1{\markright{%
289 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
292 \else % if one column
293 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
294 \def\@oddhead{\hfil\rightmark}%
295 \def\@oddfoot{\hfil\thepage}%
296 \let\@mkboth\markboth
297 \def\chaptermark##1{\markright{%
298 \ifnum \c@secnumdepth >\m@ne
300 \@chapapp\thechapter\@chappos\hskip1\zw
306 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
307 \let\@oddfoot\@empty\let\@evenfoot\@empty
308 \def\@evenhead{\thepage\hfil\leftmark}%
309 \def\@oddhead{{\rightmark}\hfil\thepage}%
310 \let\@mkboth\@gobbletwo
311 \let\chaptermark\@gobble
312 \let\sectionmark\@gobble
315 \newenvironment{titlepage}
318 \if@twocolumn\@restonecoltrue\onecolumn
319 \else\@restonecolfalse\newpage\fi
320 \thispagestyle{empty}%
323 {\if@restonecol\twocolumn\else\newpage\fi
326 \newenvironment{titlepage}
328 \pltx@cleartooddpage %% 2017/02/15
330 \@restonecoltrue\onecolumn
332 \@restonecolfalse\newpage
334 \thispagestyle{empty}%
335 \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017/02/15
337 {\if@restonecol\twocolumn \else \newpage \fi
339 \setcounter{page}\@ne
343 \def\p@thanks#1{\footnotemark
344 \protected@xdef\@thanks{\@thanks
345 \protect{\noindent\hbox{\yoko$\m@th^\thefootnote$}#1\protect\par}}}
347 \newcommand{\maketitle}{\begin{titlepage}%
348 \let\footnotesize\small
349 \let\footnoterule\relax
354 {\LARGE \@title \par}%
358 \begin{tabular}[t]{c}%
362 {\large \@date \par}% % Set date in \large size.
366 \setcounter{footnote}{0}%
367 \global\let\thanks\relax
368 \global\let\maketitle\relax
369 \global\let\p@thanks\relax
370 \global\let\@thanks\@empty
371 \global\let\@author\@empty
372 \global\let\@date\@empty
373 \global\let\@title\@empty
374 \global\let\title\relax
375 \global\let\author\relax
376 \global\let\date\relax
377 \global\let\and\relax
380 \newcommand{\maketitle}{\par
382 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
383 \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
384 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
385 \long\def\@makefntext##1{\parindent 1em\noindent
386 \hb@xt@1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
388 \ifnum \col@number=\@ne \@maketitle
389 \else \twocolumn[\@maketitle]%
393 \global\@topnum\z@ % Prevents figures from going at top of page.
396 \thispagestyle{jpl@in}\@thanks
398 \setcounter{footnote}{0}%
399 \global\let\thanks\relax
400 \global\let\maketitle\relax
401 \global\let\@maketitle\relax
402 \global\let\p@thanks\relax
403 \global\let\@thanks\@empty
404 \global\let\@author\@empty
405 \global\let\@date\@empty
406 \global\let\@title\@empty
407 \global\let\title\relax
408 \global\let\author\relax
409 \global\let\date\relax
410 \global\let\and\relax
417 {\LARGE \@title \par}%
421 \begin{tabular}[t]{c}%
429 \newcommand*{\chaptermark}[1]{}
430 \setcounter{secnumdepth}{2}
433 \newcounter{section}[chapter]
434 \newcounter{subsection}[section]
435 \newcounter{subsubsection}[subsection]
436 \newcounter{paragraph}[subsubsection]
437 \newcounter{subparagraph}[paragraph]
438 \renewcommand{\thepart}{\@Roman\c@part}
439 \renewcommand{\thechapter}{\@arabic\c@chapter}
440 \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
441 \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
442 \renewcommand{\thesubsubsection}{%
443 \thesubsection.\@arabic\c@subsubsection}
444 \renewcommand{\theparagraph}{%
445 \thesubsubsection.\@arabic\c@paragraph}
446 \renewcommand{\thesubparagraph}{%
447 \theparagraph.\@arabic\c@subparagraph}
448 \newcommand{\@chapapp}{\prechaptername}
449 \newcommand{\@chappos}{\postchaptername}
450 \newcommand{\frontmatter}{%
452 \@mainmatterfalse\pagenumbering{roman}}
453 \newcommand{\mainmatter}{%
455 \@mainmattertrue\pagenumbering{arabic}}
456 \newcommand{\backmatter}{%
457 \if@openleft \cleardoublepage \else
458 \if@openright \cleardoublepage \else \clearpage \fi \fi
461 \if@openleft \cleardoublepage \else
462 \if@openright \cleardoublepage \else \clearpage \fi \fi
463 \thispagestyle{empty}%
464 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
466 \secdef\@part\@spart}
468 \ifnum \c@secnumdepth >-2\relax
469 \refstepcounter{part}%
470 \addcontentsline{toc}{part}{%
471 \prepartname\thepart\postpartname\hspace{1em}#1}%
473 \addcontentsline{toc}{part}{#1}%
477 \interlinepenalty\@M\normalfont
478 \ifnum \c@secnumdepth >-2\relax
479 \huge\bfseries\prepartname\thepart\postpartname
482 \Huge\bfseries#2\par}%
486 \interlinepenalty\@M\normalfont
487 \Huge\bfseries#1\par}%
489 \def\@endpart{\vfil\newpage
491 \if@openleft %% \if@openleft added (2017/02/15)
492 \null\thispagestyle{empty}\newpage
493 \else\if@openright %% \if@openright added (2016/12/18)
494 \null\thispagestyle{empty}\newpage
495 \fi\fi %% added (2016/12/18, 2017/02/15)
497 \if@tempswa\twocolumn\fi}
498 \newcommand{\chapter}{%
499 \if@openleft \cleardoublepage \else
500 \if@openright \cleardoublepage \else \clearpage \fi \fi
501 \thispagestyle{jpl@in}%
504 \secdef\@chapter\@schapter}
505 \def\@chapter[#1]#2{%
506 \ifnum \c@secnumdepth >\m@ne
508 \refstepcounter{chapter}%
509 \typeout{\@chapapp\space\thechapter\space\@chappos}%
510 \addcontentsline{toc}{chapter}%
511 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
512 \else\addcontentsline{toc}{chapter}{#1}\fi
514 \addcontentsline{toc}{chapter}{#1}%
517 \addtocontents{lof}{\protect\addvspace{10\p@}}%
518 \addtocontents{lot}{\protect\addvspace{10\p@}}%
519 \@makechapterhead{#2}\@afterheading}
520 \def\@makechapterhead#1{\hbox{}%
524 \normalfont\huge\bfseries
526 \ifnum \c@secnumdepth >\m@ne
527 \setlength\@tempdima{\linewidth}%
529 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
530 \addtolength\@tempdima{-\wd\z@}%
533 \vtop{\hsize\@tempdima#1}%
536 \fi}\nobreak\vskip3\Cvs}
538 \@makeschapterhead{#1}\@afterheading
540 \def\@makeschapterhead#1{\hbox{}%
544 \normalfont\huge\bfseries
546 \setlength\@tempdima{\linewidth}%
547 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
548 \newcommand{\section}{\@startsection{section}{1}{\z@}%
549 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
550 {.5\Cvs \@plus.3\Cvs}%
551 {\normalfont\Large\bfseries}}
552 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
553 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
554 {.5\Cvs \@plus.3\Cvs}%
555 {\normalfont\large\bfseries}}
556 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
557 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
558 {.5\Cvs \@plus.3\Cvs}%
559 {\normalfont\normalsize\bfseries}}
560 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
561 {3.25ex \@plus 1ex \@minus .2ex}%
563 {\normalfont\normalsize\bfseries}}
564 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
565 {3.25ex \@plus 1ex \@minus .2ex}%
567 {\normalfont\normalsize\bfseries}}
568 \newcommand{\appendix}{\par
569 \setcounter{chapter}{0}%
570 \setcounter{section}{0}%
571 \renewcommand{\@chapapp}{\appendixname}%
572 \renewcommand{\@chappos}\space%
573 \renewcommand{\thechapter}{\@Alph\c@chapter}}
575 \setlength\leftmargini {2em}
577 \setlength\leftmargini {2.5em}
579 \setlength\leftmarginii {2.2em}
580 \setlength\leftmarginiii {1.87em}
581 \setlength\leftmarginiv {1.7em}
583 \setlength\leftmarginv {.5em}
584 \setlength\leftmarginvi{.5em}
586 \setlength\leftmarginv {1em}
587 \setlength\leftmarginvi{1em}
589 \setlength \labelsep {.5em}
590 \setlength \labelwidth{\leftmargini}
591 \addtolength\labelwidth{-\labelsep}
592 \@beginparpenalty -\@lowpenalty
593 \@endparpenalty -\@lowpenalty
594 \@itempenalty -\@lowpenalty
595 \renewcommand{\theenumi}{\@arabic\c@enumi}
596 \renewcommand{\theenumii}{\@alph\c@enumii}
597 \renewcommand{\theenumiii}{\@roman\c@enumiii}
598 \renewcommand{\theenumiv}{\@Alph\c@enumiv}
599 \newcommand{\labelenumi}{\theenumi.}
600 \newcommand{\labelenumii}{(\theenumii)}
601 \newcommand{\labelenumiii}{\theenumiii.}
602 \newcommand{\labelenumiv}{\theenumiv.}
603 \renewcommand{\p@enumii}{\theenumi}
604 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
605 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
606 \renewenvironment{enumerate}
607 {\ifnum \@enumdepth >\thr@@\@toodeep\else
608 \advance\@enumdepth\@ne
609 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
610 \expandafter \list \csname label\@enumctr\endcsname{%
611 \ifnum\ltjgetparameter{direction}=3
612 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
614 \parskip\z@ \itemsep\z@ \parsep\z@
615 \labelwidth1\zw \labelsep.3\zw
616 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
617 \else\leftmargin\leftskip\fi
618 \advance\leftmargin 1\zw
620 \usecounter{\@enumctr}%
621 \def\makelabel##1{\hss\llap{##1}}}%
623 \newcommand{\labelitemi}{\textbullet}
624 \newcommand{\labelitemii}{%
625 \ifnum\ltjgetparameter{direction}=3
628 {\normalfont\bfseries\textendash}
631 \newcommand{\labelitemiii}{\textasteriskcentered}
632 \newcommand{\labelitemiv}{\textperiodcentered}
633 \renewenvironment{itemize}
634 {\ifnum \@itemdepth >\thr@@\@toodeep\else
635 \advance\@itemdepth\@ne
636 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
637 \expandafter \list \csname \@itemitem\endcsname{%
638 \ifnum\ltjgetparameter{direction}=3
639 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
641 \parskip\z@ \itemsep\z@ \parsep\z@
642 \labelwidth1\zw \labelsep.3\zw
643 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
644 \else\leftmargin\leftskip\fi
645 \advance\leftmargin 1\zw
647 \def\makelabel##1{\hss\llap{##1}}}%
649 \newenvironment{description}
650 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
651 \ifnum\ltjgetparameter{direction}=3
652 \leftmargin\leftskip \advance\leftmargin3\Cwd
653 \rightmargin\rightskip
654 \labelsep=1\zw \itemsep\z@
655 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
657 \let\makelabel\descriptionlabel}}{\endlist}
658 \newcommand{\descriptionlabel}[1]{%
659 \hspace\labelsep\normalfont\bfseries #1}
660 \newenvironment{verse}
662 \list{}{\itemsep\z@ \itemindent -1.5em%
663 \listparindent\itemindent
664 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
665 \item\relax}{\endlist}
666 \newenvironment{quotation}
667 {\list{}{\listparindent 1.5em%
668 \itemindent\listparindent
669 \rightmargin\leftmargin
670 \parsep\z@ \@plus\p@}%
671 \item\relax}{\endlist}
672 \newenvironment{quote}
673 {\list{}{\rightmargin\leftmargin}%
674 \item\relax}{\endlist}
675 \newcounter{figure}[chapter]
676 \renewcommand{\thefigure}{%
677 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
681 \def\fnum@figure{\figurename~\thefigure}
682 \newenvironment{figure}
685 \newenvironment{figure*}
688 \newcounter{table}[chapter]
689 \renewcommand{\thetable}{%
690 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
694 \def\fnum@table{\tablename~\thetable}
695 \newenvironment{table}
698 \newenvironment{table*}
701 \newlength\abovecaptionskip
702 \newlength\belowcaptionskip
703 \setlength\abovecaptionskip{10\p@}
704 \setlength\belowcaptionskip{0\p@}
705 \long\def\@makecaption#1#2{%
706 \vskip\abovecaptionskip
707 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
708 \else\sbox\@tempboxa{#1: #2}%
710 \ifdim \wd\@tempboxa >\hsize
711 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
712 \else #1: #2\relax\par\fi
714 \global \@minipagefalse
715 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
717 \vskip\belowcaptionskip}
718 \setlength\arraycolsep{5\p@}
719 \setlength\tabcolsep{6\p@}
720 \setlength\arrayrulewidth{.4\p@}
721 \setlength\doublerulesep{2\p@}
722 \setlength\tabbingsep{\labelsep}
723 \skip\@mpfootins = \skip\footins
724 \setlength\fboxsep{3\p@}
725 \setlength\fboxrule{.4\p@}
726 \@addtoreset{equation}{chapter}
727 \renewcommand{\theequation}{%
728 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
729 \if@compatibility\else
730 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
731 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
732 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
734 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
738 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
739 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
742 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
743 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
744 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
745 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
746 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
747 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
748 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
749 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
750 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
751 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
752 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
753 \setcounter{tocdepth}{2}
754 \newcommand{\@pnumwidth}{1.55em}
755 \newcommand{\@tocrmarg}{2.55em}
756 \newcommand{\@dotsep}{4.5}
757 \newdimen\toclineskip
758 \setlength\toclineskip{\z@}
760 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
761 \def\@dottedtocline#1#2#3#4#5{%
762 \ifnum #1>\c@tocdepth \else
763 \vskip\toclineskip \@plus.2\p@
764 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
765 \parindent #2\relax\@afterindenttrue
769 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
771 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
773 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
776 \def\addcontentsline#1#2#3{%
777 \protected@write\@auxout
778 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
779 \@temptokena{\thepage}}%
780 {\string\@writefile{#1}%
781 {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
783 \newcommand{\tableofcontents}{%
784 \if@twocolumn\@restonecoltrue\onecolumn
785 \else\@restonecolfalse\fi
786 \chapter*{\contentsname
787 \@mkboth{\contentsname}{\contentsname}%
789 \if@restonecol\twocolumn\fi
791 \newcommand*{\l@part}[2]{%
792 \ifnum \c@tocdepth >-2\relax
793 \addpenalty{-\@highpenalty}%
794 \addvspace{2.25em \@plus\p@}%
796 \parindent\z@\rightskip\@pnumwidth
797 \parfillskip-\@pnumwidth
798 {\leavevmode\large\bfseries
799 \setlength\@lnumwidth{4\zw}%
801 \hb@xt@\@pnumwidth{\hss#2}}\par
804 \everypar{\global\@nobreakfalse\everypar{}}%
807 \newcommand*{\l@chapter}[2]{%
808 \ifnum \c@tocdepth >\m@ne
809 \addpenalty{-\@highpenalty}%
810 \addvspace{1.0em \@plus\p@}%
812 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
814 \setlength\@lnumwidth{4\zw}%
815 \advance\leftskip\@lnumwidth \hskip-\leftskip
816 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
817 \penalty\@highpenalty
820 \newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
821 \newcommand*{\l@subsection} {\@dottedtocline{2}{3.8em}{3.2em}}
822 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
823 \newcommand*{\l@paragraph} {\@dottedtocline{4}{10em}{5em}}
824 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
825 \newcommand{\listoffigures}{%
826 \if@twocolumn\@restonecoltrue\onecolumn
827 \else\@restonecolfalse\fi
828 \chapter*{\listfigurename}%
829 \@mkboth{\listfigurename}{\listfigurename}%
831 \if@restonecol\twocolumn\fi
833 \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
834 \newcommand{\listoftables}{%
835 \if@twocolumn\@restonecoltrue\onecolumn
836 \else\@restonecolfalse\fi
837 \chapter*{\listtablename}%
838 \@mkboth{\listtablename}{\listtablename}%
840 \if@restonecol\twocolumn\fi
842 \let\l@table\l@figure
844 \setlength\bibindent{1.5em}
845 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
846 \newenvironment{thebibliography}[1]
847 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
848 \list{\@biblabel{\@arabic\c@enumiv}}%
849 {\settowidth\labelwidth{\@biblabel{#1}}%
850 \leftmargin\labelwidth
851 \advance\leftmargin\labelsep
855 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
858 \@clubpenalty\clubpenalty
862 {\@latex@warning{Empty `thebibliography' environment}}%
864 \let\@openbib@code\@empty
865 \newenvironment{theindex}
866 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
867 \twocolumn[\@makeschapterhead{\indexname}]%
868 \@mkboth{\indexname}{\indexname}%
869 \thispagestyle{jpl@in}\parindent\z@
870 \parskip\z@ \@plus .3\p@\relax
871 \columnseprule\z@ \columnsep 35\p@
873 {\if@restonecol\onecolumn\else\clearpage\fi}
874 \newcommand{\@idxitem}{\par\hangindent 40\p@}
875 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
876 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
877 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
878 \renewcommand{\footnoterule}{%
880 \hrule\@width.4\columnwidth
882 \@addtoreset{footnote}{chapter}
883 \newcommand\@makefntext[1]{\parindent 1em
884 \noindent\hb@xt@ 1.8em{\hss\@makefnmark}#1}
888 \newcount\heisei \heisei\year \advance\heisei-1988\relax
890 \ifnum\ltjgetparameter{direction}=3
896 平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
906 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
911 \newcommand{\prepartname}{第}
912 \newcommand{\postpartname}{部}
913 \newcommand{\prechaptername}{第}
914 \newcommand{\postchaptername}{章}
915 \newcommand{\contentsname}{目 次}
916 \newcommand{\listfigurename}{図 目 次}
917 \newcommand{\listtablename}{表 目 次}
918 \newcommand{\bibname}{関連図書}
919 \newcommand{\indexname}{索 引}
920 \newcommand{\figurename}{図}
921 \newcommand{\tablename}{表}
922 \newcommand{\appendixname}{付 録}
924 \pagenumbering{arabic}
926 \fnfixbottomtrue % 2017-02-19
927 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
939 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
940 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
943 %% End of file `ltjbook.cls'.