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/02/20 v1.7d-ltj-14
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:\space\number\year/\number\month/\number\day
95 (\number\hour:\number\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}
154 \setlength\columnsep{2\Cwd}
156 \setlength\columnsep{10\p@}
158 \setlength\columnseprule{0\p@}
160 \newlength{\stockwidth}
161 \newlength{\stockheight}
162 \setlength{\stockwidth}{\paperwidth}
163 \setlength{\stockheight}{\paperheight}
164 \advance \stockwidth 2in
165 \advance \stockheight 2in
166 \ifdefined\pdfpagewidth
167 \setlength{\pdfpagewidth}{\stockwidth}
168 \setlength{\pdfpageheight}{\stockheight}
170 \setlength{\pagewidth}{\stockwidth}
171 \setlength{\pageheight}{\stockheight}
174 \ifdefined\pdfpagewidth
175 \setlength{\pdfpagewidth}{\paperwidth}
176 \setlength{\pdfpageheight}{\paperheight}
178 \setlength{\pagewidth}{\paperwidth}
179 \setlength{\pageheight}{\paperheight}
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\pltx@cleartorightpage{\clearpage\if@twoside
201 \unless\ifodd\dimexpr\c@page+\ltjgetparameter{direction}\relax
202 \hbox{}\thispagestyle{empty}\newpage
203 \if@twocolumn\hbox{}\newpage\fi
205 \def\pltx@cleartoleftpage{\clearpage\if@twoside
206 \ifodd\dimexpr\c@page+\ltjgetparameter{direction}\relax
207 \hbox{}\thispagestyle{empty}\newpage
208 \if@twocolumn\hbox{}\newpage\fi
210 \def\pltx@cleartooddpage{\clearpage\if@twoside
212 \hbox{}\thispagestyle{empty}\newpage
213 \if@twocolumn\hbox{}\newpage\fi
215 \def\pltx@cleartoevenpage{\clearpage\if@twoside
217 \hbox{}\thispagestyle{empty}\newpage
218 \if@twocolumn\hbox{}\newpage\fi
221 \let\cleardoublepage\pltx@cleartoleftpage
223 \let\cleardoublepage\pltx@cleartorightpage
225 \def\ps@plain{\let\@mkboth\@gobbletwo
226 \let\ps@jpl@in\ps@plain
228 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
229 \let\@evenhead\@empty
230 \let\@evenfoot\@oddfoot}
231 \let\ps@jpl@in\ps@plain
232 \def\ps@headnombre{\let\@mkboth\@gobbletwo
233 \let\ps@jpl@in\ps@headnombre
234 \def\@evenhead{\thepage\hfil}%
235 \def\@oddhead{\hfil\thepage}%
236 \let\@oddfoot\@empty\let\@evenfoot\@empty}
237 \def\ps@footnombre{\let\@mkboth\@gobbletwo
238 \let\ps@jpl@in\ps@footnombre
239 \def\@evenfoot{\thepage\hfil}%
240 \def\@oddfoot{\hfil\thepage}%
241 \let\@oddhead\@empty\let\@evenhead\@empty}
243 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
244 \let\@oddfoot\@empty\let\@evenfoot\@empty
245 \def\@evenhead{\thepage\hfil\leftmark}%
246 \def\@oddhead{{\rightmark}\hfil\thepage}%
247 \let\@mkboth\markboth
248 \def\chaptermark##1{\markboth{%
249 \ifnum \c@secnumdepth >\m@ne
251 \@chapapp\thechapter\@chappos\hskip1\zw
255 \def\sectionmark##1{\markright{%
256 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
259 \else % if not twoside
260 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
262 \def\@oddhead{{\rightmark}\hfil\thepage}%
263 \let\@mkboth\markboth
264 \def\chaptermark##1{\markright{%
265 \ifnum \c@secnumdepth >\m@ne
267 \@chapapp\thechapter\@chappos\hskip1\zw
274 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
275 \def\@evenhead{\leftmark\hfil}% right page
276 \def\@evenfoot{\thepage\hfil}% right page
277 \def\@oddhead{\hfil\rightmark}% left page
278 \def\@oddfoot{\hfil\thepage}% left page
279 \let\@mkboth\markboth
280 \def\chaptermark##1{\markboth{%
281 \ifnum \c@secnumdepth >\m@ne
283 \@chapapp\thechapter\@chappos\hskip1\zw
287 \def\sectionmark##1{\markright{%
288 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
291 \else % if one column
292 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
293 \def\@oddhead{\hfil\rightmark}%
294 \def\@oddfoot{\hfil\thepage}%
295 \let\@mkboth\markboth
296 \def\chaptermark##1{\markright{%
297 \ifnum \c@secnumdepth >\m@ne
299 \@chapapp\thechapter\@chappos\hskip1\zw
305 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
306 \let\@oddfoot\@empty\let\@evenfoot\@empty
307 \def\@evenhead{\thepage\hfil\leftmark}%
308 \def\@oddhead{{\rightmark}\hfil\thepage}%
309 \let\@mkboth\@gobbletwo
310 \let\chaptermark\@gobble
311 \let\sectionmark\@gobble
314 \newenvironment{titlepage}
317 \if@twocolumn\@restonecoltrue\onecolumn
318 \else\@restonecolfalse\newpage\fi
319 \thispagestyle{empty}%
322 {\if@restonecol\twocolumn\else\newpage\fi
325 \newenvironment{titlepage}
327 \pltx@cleartooddpage %% 2017/02/15
329 \@restonecoltrue\onecolumn
331 \@restonecolfalse\newpage
333 \thispagestyle{empty}%
334 \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017/02/15
336 {\if@restonecol\twocolumn \else \newpage \fi
338 \setcounter{page}\@ne
342 \def\p@thanks#1{\footnotemark
343 \protected@xdef\@thanks{\@thanks
344 \protect{\noindent\hbox{\yoko$\m@th^\thefootnote$}#1\protect\par}}}
346 \newcommand{\maketitle}{\begin{titlepage}%
347 \let\footnotesize\small
348 \let\footnoterule\relax
353 {\LARGE \@title \par}%
357 \begin{tabular}[t]{c}%
361 {\large \@date \par}% % Set date in \large size.
365 \setcounter{footnote}{0}%
366 \global\let\thanks\relax
367 \global\let\maketitle\relax
368 \global\let\p@thanks\relax
369 \global\let\@thanks\@empty
370 \global\let\@author\@empty
371 \global\let\@date\@empty
372 \global\let\@title\@empty
373 \global\let\title\relax
374 \global\let\author\relax
375 \global\let\date\relax
376 \global\let\and\relax
379 \newcommand{\maketitle}{\par
381 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
382 \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
383 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
384 \long\def\@makefntext##1{\parindent 1em\noindent
385 \hb@xt@1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
387 \ifnum \col@number=\@ne \@maketitle
388 \else \twocolumn[\@maketitle]%
392 \global\@topnum\z@ % Prevents figures from going at top of page.
395 \thispagestyle{jpl@in}\@thanks
397 \setcounter{footnote}{0}%
398 \global\let\thanks\relax
399 \global\let\maketitle\relax
400 \global\let\@maketitle\relax
401 \global\let\p@thanks\relax
402 \global\let\@thanks\@empty
403 \global\let\@author\@empty
404 \global\let\@date\@empty
405 \global\let\@title\@empty
406 \global\let\title\relax
407 \global\let\author\relax
408 \global\let\date\relax
409 \global\let\and\relax
416 {\LARGE \@title \par}%
420 \begin{tabular}[t]{c}%
428 \newcommand*{\chaptermark}[1]{}
429 \setcounter{secnumdepth}{2}
432 \newcounter{section}[chapter]
433 \newcounter{subsection}[section]
434 \newcounter{subsubsection}[subsection]
435 \newcounter{paragraph}[subsubsection]
436 \newcounter{subparagraph}[paragraph]
437 \renewcommand{\thepart}{\@Roman\c@part}
438 \renewcommand{\thechapter}{\@arabic\c@chapter}
439 \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
440 \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
441 \renewcommand{\thesubsubsection}{%
442 \thesubsection.\@arabic\c@subsubsection}
443 \renewcommand{\theparagraph}{%
444 \thesubsubsection.\@arabic\c@paragraph}
445 \renewcommand{\thesubparagraph}{%
446 \theparagraph.\@arabic\c@subparagraph}
447 \newcommand{\@chapapp}{\prechaptername}
448 \newcommand{\@chappos}{\postchaptername}
449 \newcommand{\frontmatter}{%
450 \if@openleft \cleardoublepage \else
451 \if@openright \cleardoublepage \else \clearpage \fi \fi
452 \@mainmatterfalse\pagenumbering{roman}}
453 \newcommand{\mainmatter}{%
454 \if@openleft \cleardoublepage \else
455 \if@openright \cleardoublepage \else \clearpage \fi \fi
456 \@mainmattertrue\pagenumbering{arabic}}
457 \newcommand{\backmatter}{%
458 \if@openleft \cleardoublepage \else
459 \if@openright \cleardoublepage \else \clearpage \fi \fi
462 \if@openleft \cleardoublepage \else
463 \if@openright \cleardoublepage \else \clearpage \fi \fi
464 \thispagestyle{empty}%
465 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
467 \secdef\@part\@spart}
469 \ifnum \c@secnumdepth >-2\relax
470 \refstepcounter{part}%
471 \addcontentsline{toc}{part}{%
472 \prepartname\thepart\postpartname\hspace{1em}#1}%
474 \addcontentsline{toc}{part}{#1}%
478 \interlinepenalty\@M\normalfont
479 \ifnum \c@secnumdepth >-2\relax
480 \huge\bfseries\prepartname\thepart\postpartname
483 \Huge\bfseries#2\par}%
487 \interlinepenalty\@M\normalfont
488 \Huge\bfseries#1\par}%
490 \def\@endpart{\vfil\newpage
492 \if@openleft %% \if@openleft added (2017/02/15)
493 \null\thispagestyle{empty}\newpage
494 \else\if@openright %% \if@openright added (2016/12/18)
495 \null\thispagestyle{empty}\newpage
496 \fi\fi %% added (2016/12/18, 2017/02/15)
498 \if@tempswa\twocolumn\fi}
499 \newcommand{\chapter}{%
500 \if@openleft \cleardoublepage \else
501 \if@openright \cleardoublepage \else \clearpage \fi \fi
502 \thispagestyle{jpl@in}%
505 \secdef\@chapter\@schapter}
506 \def\@chapter[#1]#2{%
507 \ifnum \c@secnumdepth >\m@ne
509 \refstepcounter{chapter}%
510 \typeout{\@chapapp\space\thechapter\space\@chappos}%
511 \addcontentsline{toc}{chapter}%
512 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
513 \else\addcontentsline{toc}{chapter}{#1}\fi
515 \addcontentsline{toc}{chapter}{#1}%
518 \addtocontents{lof}{\protect\addvspace{10\p@}}%
519 \addtocontents{lot}{\protect\addvspace{10\p@}}%
520 \@makechapterhead{#2}\@afterheading}
521 \def\@makechapterhead#1{\hbox{}%
525 \normalfont\huge\bfseries
527 \ifnum \c@secnumdepth >\m@ne
528 \setlength\@tempdima{\linewidth}%
530 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
531 \addtolength\@tempdima{-\wd\z@}%
534 \vtop{\hsize\@tempdima#1}%
537 \fi}\nobreak\vskip3\Cvs}
539 \@makeschapterhead{#1}\@afterheading
541 \def\@makeschapterhead#1{\hbox{}%
545 \normalfont\huge\bfseries
547 \setlength\@tempdima{\linewidth}%
548 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
549 \newcommand{\section}{\@startsection{section}{1}{\z@}%
550 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
551 {.5\Cvs \@plus.3\Cvs}%
552 {\normalfont\Large\bfseries}}
553 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
554 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
555 {.5\Cvs \@plus.3\Cvs}%
556 {\normalfont\large\bfseries}}
557 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
558 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
559 {.5\Cvs \@plus.3\Cvs}%
560 {\normalfont\normalsize\bfseries}}
561 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
562 {3.25ex \@plus 1ex \@minus .2ex}%
564 {\normalfont\normalsize\bfseries}}
565 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
566 {3.25ex \@plus 1ex \@minus .2ex}%
568 {\normalfont\normalsize\bfseries}}
569 \newcommand{\appendix}{\par
570 \setcounter{chapter}{0}%
571 \setcounter{section}{0}%
572 \renewcommand{\@chapapp}{\appendixname}%
573 \renewcommand{\@chappos}\space%
574 \renewcommand{\thechapter}{\@Alph\c@chapter}}
576 \setlength\leftmargini {2em}
578 \setlength\leftmargini {2.5em}
580 \setlength\leftmarginii {2.2em}
581 \setlength\leftmarginiii {1.87em}
582 \setlength\leftmarginiv {1.7em}
584 \setlength\leftmarginv {.5em}
585 \setlength\leftmarginvi{.5em}
587 \setlength\leftmarginv {1em}
588 \setlength\leftmarginvi{1em}
590 \setlength \labelsep {.5em}
591 \setlength \labelwidth{\leftmargini}
592 \addtolength\labelwidth{-\labelsep}
593 \@beginparpenalty -\@lowpenalty
594 \@endparpenalty -\@lowpenalty
595 \@itempenalty -\@lowpenalty
596 \renewcommand{\theenumi}{\@arabic\c@enumi}
597 \renewcommand{\theenumii}{\@alph\c@enumii}
598 \renewcommand{\theenumiii}{\@roman\c@enumiii}
599 \renewcommand{\theenumiv}{\@Alph\c@enumiv}
600 \newcommand{\labelenumi}{\theenumi.}
601 \newcommand{\labelenumii}{(\theenumii)}
602 \newcommand{\labelenumiii}{\theenumiii.}
603 \newcommand{\labelenumiv}{\theenumiv.}
604 \renewcommand{\p@enumii}{\theenumi}
605 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
606 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
607 \renewenvironment{enumerate}
608 {\ifnum \@enumdepth >\thr@@\@toodeep\else
609 \advance\@enumdepth\@ne
610 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
611 \expandafter \list \csname label\@enumctr\endcsname{%
612 \ifnum\ltjgetparameter{direction}=3
613 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
615 \parskip\z@ \itemsep\z@ \parsep\z@
616 \labelwidth1\zw \labelsep.3\zw
617 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
618 \else\leftmargin\leftskip\fi
619 \advance\leftmargin 1\zw
621 \usecounter{\@enumctr}%
622 \def\makelabel##1{\hss\llap{##1}}}%
624 \newcommand{\labelitemi}{\textbullet}
625 \newcommand{\labelitemii}{%
626 \ifnum\ltjgetparameter{direction}=3
629 {\normalfont\bfseries\textendash}
632 \newcommand{\labelitemiii}{\textasteriskcentered}
633 \newcommand{\labelitemiv}{\textperiodcentered}
634 \renewenvironment{itemize}
635 {\ifnum \@itemdepth >\thr@@\@toodeep\else
636 \advance\@itemdepth\@ne
637 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
638 \expandafter \list \csname \@itemitem\endcsname{%
639 \ifnum\ltjgetparameter{direction}=3
640 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
642 \parskip\z@ \itemsep\z@ \parsep\z@
643 \labelwidth1\zw \labelsep.3\zw
644 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
645 \else\leftmargin\leftskip\fi
646 \advance\leftmargin 1\zw
648 \def\makelabel##1{\hss\llap{##1}}}%
650 \newenvironment{description}
651 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
652 \ifnum\ltjgetparameter{direction}=3
653 \leftmargin\leftskip \advance\leftmargin3\Cwd
654 \rightmargin\rightskip
655 \labelsep=1\zw \itemsep\z@
656 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
658 \let\makelabel\descriptionlabel}}{\endlist}
659 \newcommand{\descriptionlabel}[1]{%
660 \hspace\labelsep\normalfont\bfseries #1}
661 \newenvironment{verse}
663 \list{}{\itemsep\z@ \itemindent -1.5em%
664 \listparindent\itemindent
665 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
666 \item\relax}{\endlist}
667 \newenvironment{quotation}
668 {\list{}{\listparindent 1.5em%
669 \itemindent\listparindent
670 \rightmargin\leftmargin
671 \parsep\z@ \@plus\p@}%
672 \item\relax}{\endlist}
673 \newenvironment{quote}
674 {\list{}{\rightmargin\leftmargin}%
675 \item\relax}{\endlist}
676 \newcounter{figure}[chapter]
677 \renewcommand{\thefigure}{%
678 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
682 \def\fnum@figure{\figurename~\thefigure}
683 \newenvironment{figure}
686 \newenvironment{figure*}
689 \newcounter{table}[chapter]
690 \renewcommand{\thetable}{%
691 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
695 \def\fnum@table{\tablename~\thetable}
696 \newenvironment{table}
699 \newenvironment{table*}
702 \newlength\abovecaptionskip
703 \newlength\belowcaptionskip
704 \setlength\abovecaptionskip{10\p@}
705 \setlength\belowcaptionskip{0\p@}
706 \long\def\@makecaption#1#2{%
707 \vskip\abovecaptionskip
708 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
709 \else\sbox\@tempboxa{#1: #2}%
711 \ifdim \wd\@tempboxa >\hsize
712 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
713 \else #1: #2\relax\par\fi
715 \global \@minipagefalse
716 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
718 \vskip\belowcaptionskip}
719 \setlength\arraycolsep{5\p@}
720 \setlength\tabcolsep{6\p@}
721 \setlength\arrayrulewidth{.4\p@}
722 \setlength\doublerulesep{2\p@}
723 \setlength\tabbingsep{\labelsep}
724 \skip\@mpfootins = \skip\footins
725 \setlength\fboxsep{3\p@}
726 \setlength\fboxrule{.4\p@}
727 \@addtoreset{equation}{chapter}
728 \renewcommand{\theequation}{%
729 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
730 \if@compatibility\else
731 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
732 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
733 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
735 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
739 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
740 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
743 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
744 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
745 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
746 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
747 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
748 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
749 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
750 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
751 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
752 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
753 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
754 \setcounter{tocdepth}{2}
755 \newcommand{\@pnumwidth}{1.55em}
756 \newcommand{\@tocrmarg}{2.55em}
757 \newcommand{\@dotsep}{4.5}
758 \newdimen\toclineskip
759 \setlength\toclineskip{\z@}
761 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
762 \def\@dottedtocline#1#2#3#4#5{%
763 \ifnum #1>\c@tocdepth \else
764 \vskip\toclineskip \@plus.2\p@
765 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
766 \parindent #2\relax\@afterindenttrue
770 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
772 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
774 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
777 \def\addcontentsline#1#2#3{%
778 \protected@write\@auxout
779 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
780 \@temptokena{\thepage}}%
781 {\string\@writefile{#1}%
782 {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
784 \newcommand{\tableofcontents}{%
785 \if@twocolumn\@restonecoltrue\onecolumn
786 \else\@restonecolfalse\fi
787 \chapter*{\contentsname
788 \@mkboth{\contentsname}{\contentsname}%
790 \if@restonecol\twocolumn\fi
792 \newcommand*{\l@part}[2]{%
793 \ifnum \c@tocdepth >-2\relax
794 \addpenalty{-\@highpenalty}%
795 \addvspace{2.25em \@plus\p@}%
797 \parindent\z@\rightskip\@pnumwidth
798 \parfillskip-\@pnumwidth
799 {\leavevmode\large\bfseries
800 \setlength\@lnumwidth{4\zw}%
802 \hb@xt@\@pnumwidth{\hss#2}}\par
805 \everypar{\global\@nobreakfalse\everypar{}}%
808 \newcommand*{\l@chapter}[2]{%
809 \ifnum \c@tocdepth >\m@ne
810 \addpenalty{-\@highpenalty}%
811 \addvspace{1.0em \@plus\p@}%
813 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
815 \setlength\@lnumwidth{4\zw}%
816 \advance\leftskip\@lnumwidth \hskip-\leftskip
817 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
818 \penalty\@highpenalty
821 \newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
822 \newcommand*{\l@subsection} {\@dottedtocline{2}{3.8em}{3.2em}}
823 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
824 \newcommand*{\l@paragraph} {\@dottedtocline{4}{10em}{5em}}
825 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
826 \newcommand{\listoffigures}{%
827 \if@twocolumn\@restonecoltrue\onecolumn
828 \else\@restonecolfalse\fi
829 \chapter*{\listfigurename}%
830 \@mkboth{\listfigurename}{\listfigurename}%
832 \if@restonecol\twocolumn\fi
834 \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
835 \newcommand{\listoftables}{%
836 \if@twocolumn\@restonecoltrue\onecolumn
837 \else\@restonecolfalse\fi
838 \chapter*{\listtablename}%
839 \@mkboth{\listtablename}{\listtablename}%
841 \if@restonecol\twocolumn\fi
843 \let\l@table\l@figure
845 \setlength\bibindent{1.5em}
846 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
847 \newenvironment{thebibliography}[1]
848 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
849 \list{\@biblabel{\@arabic\c@enumiv}}%
850 {\settowidth\labelwidth{\@biblabel{#1}}%
851 \leftmargin\labelwidth
852 \advance\leftmargin\labelsep
856 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
859 \@clubpenalty\clubpenalty
863 {\@latex@warning{Empty `thebibliography' environment}}%
865 \let\@openbib@code\@empty
866 \newenvironment{theindex}
867 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
868 \twocolumn[\@makeschapterhead{\indexname}]%
869 \@mkboth{\indexname}{\indexname}%
870 \thispagestyle{jpl@in}\parindent\z@
871 \parskip\z@ \@plus .3\p@\relax
872 \columnseprule\z@ \columnsep 35\p@
874 {\if@restonecol\onecolumn\else\clearpage\fi}
875 \newcommand{\@idxitem}{\par\hangindent 40\p@}
876 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
877 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
878 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
879 \renewcommand{\footnoterule}{%
881 \hrule\@width.4\columnwidth
883 \@addtoreset{footnote}{chapter}
884 \newcommand\@makefntext[1]{\parindent 1em
885 \noindent\hb@xt@ 1.8em{\hss\@makefnmark}#1}
889 \newcount\heisei \heisei\year \advance\heisei-1988\relax
891 \ifnum\ltjgetparameter{direction}=3
897 平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
907 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
912 \newcommand{\prepartname}{第}
913 \newcommand{\postpartname}{部}
914 \newcommand{\prechaptername}{第}
915 \newcommand{\postchaptername}{章}
916 \newcommand{\contentsname}{目 次}
917 \newcommand{\listfigurename}{図 目 次}
918 \newcommand{\listtablename}{表 目 次}
919 \newcommand{\bibname}{関連図書}
920 \newcommand{\indexname}{索 引}
921 \newcommand{\figurename}{図}
922 \newcommand{\tablename}{表}
923 \newcommand{\appendixname}{付 録}
925 \pagenumbering{arabic}
927 \fnfixbottomtrue % 2017-02-19
928 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
940 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
941 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
944 %% End of file `ltjbook.cls'.