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 \NeedsTeXFormat{LaTeX2e}
26 \ProvidesClass{ltjbook}
27 [2019/04/06 v1.8b-ltj-16
28 Standard LuaLaTeX-ja class]
29 \RequirePackage{luatexja}
31 \newif\if@landscape \@landscapefalse
32 \newcommand{\@ptsize}{}
38 \newif\if@mainmatter \@mainmattertrue
39 \hour\time \divide\hour by 60\relax
40 \@tempcnta\hour \multiply\@tempcnta 60\relax
41 \minute\time \advance\minute-\@tempcnta
42 \newif\if@stysize \@stysizefalse
43 \newif\if@mathrmmc \@mathrmmcfalse
44 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
45 \setlength\paperheight {297mm}%
46 \setlength\paperwidth {210mm}}
47 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
48 \setlength\paperheight {210mm}
49 \setlength\paperwidth {148mm}}
50 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
51 \setlength\paperheight {364mm}
52 \setlength\paperwidth {257mm}}
53 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
54 \setlength\paperheight {257mm}
55 \setlength\paperwidth {182mm}}
56 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
57 \setlength\paperheight {297mm}%
58 \setlength\paperwidth {210mm}}
59 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
60 \setlength\paperheight {210mm}
61 \setlength\paperwidth {148mm}}
62 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
63 \setlength\paperheight {364mm}
64 \setlength\paperwidth {257mm}}
65 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
66 \setlength\paperheight {257mm}
67 \setlength\paperwidth {182mm}}
68 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
69 \setlength\paperheight {297mm}%
70 \setlength\paperwidth {210mm}}
71 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
72 \setlength\paperheight {210mm}
73 \setlength\paperwidth {148mm}}
74 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
75 \setlength\paperheight {364mm}
76 \setlength\paperwidth {257mm}}
77 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
78 \setlength\paperheight {257mm}
79 \setlength\paperwidth {182mm}}
81 \renewcommand{\@ptsize}{0}
83 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
85 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
86 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
87 \DeclareOption{landscape}{\@landscapetrue
88 \setlength\@tempdima{\paperheight}%
89 \setlength\paperheight{\paperwidth}%
90 \setlength\paperwidth{\@tempdima}}
91 \DeclareOption{tombow}{%
92 \tombowtrue \tombowdatetrue
93 \setlength{\@tombowwidth}{.1\p@}%
95 \jobname\space(\number\year-\two@digits\month-\two@digits\day
96 \space\two@digits\hour:\two@digits\minute)}%
98 \DeclareOption{tombo}{%
99 \tombowtrue \tombowdatefalse
100 \setlength{\@tombowwidth}{.1\p@}%
102 \DeclareOption{mentuke}{%
103 \tombowtrue \tombowdatefalse
104 \setlength{\@tombowwidth}{\z@}%
106 \DeclareOption{tate}{%
107 \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
109 \DeclareOption{oneside}{\@twosidefalse}
110 \DeclareOption{twoside}{\@twosidetrue}
111 \DeclareOption{onecolumn}{\@twocolumnfalse}
112 \DeclareOption{twocolumn}{\@twocolumntrue}
113 \DeclareOption{titlepage}{\@titlepagetrue}
114 \DeclareOption{notitlepage}{\@titlepagefalse}
118 \DeclareOption{openright}{\@openrighttrue\@openleftfalse}
119 \DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
120 \DeclareOption{openany}{\@openrightfalse\@openleftfalse}
122 \DeclareOption{leqno}{\input{leqno.clo}}
123 \DeclareOption{fleqn}{\input{fleqn.clo}}
124 \DeclareOption{openbib}{%
126 \renewcommand\@openbib@code{%
127 \advance\leftmargin\bibindent
128 \itemindent -\bibindent
129 \listparindent \itemindent
132 \renewcommand\newblock{\par}}}
136 \DeclareOption{mathrmmc}{\@mathrmmctrue}
138 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
139 \DeclareOption{final}{\setlength\overfullrule{0pt}}
140 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
141 function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
142 'ltj.jclasses_load_jfm', 1)}
143 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
144 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
145 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
146 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
147 \ltjglobalsetparameter{differentjfm=both}
148 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
149 \DeclareOption{disablejfam}{}
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 \unless\ifltj@disablejfam
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}
744 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
745 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
746 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
747 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
748 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
749 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
750 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
751 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
752 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
753 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
754 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
755 \setcounter{tocdepth}{2}
756 \newcommand{\@pnumwidth}{1.55em}
757 \newcommand{\@tocrmarg}{2.55em}
758 \newcommand{\@dotsep}{4.5}
759 \newdimen\toclineskip
760 \setlength\toclineskip{\z@}
762 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
763 \def\@dottedtocline#1#2#3#4#5{%
764 \ifnum #1>\c@tocdepth \else
765 \vskip\toclineskip \@plus.2\p@
766 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
767 \parindent #2\relax\@afterindenttrue
771 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
773 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
775 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
778 \providecommand*\protected@file@percent{}
779 \def\addcontentsline#1#2#3{%
780 \protected@write\@auxout
781 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
782 \@temptokena{\thepage}}%
783 {\string\@writefile{#1}%
784 {\protect\contentsline{#2}{#3}{\the\@temptokena}%
785 \protected@file@percent}}%
787 \newcommand{\tableofcontents}{%
788 \if@twocolumn\@restonecoltrue\onecolumn
789 \else\@restonecolfalse\fi
790 \chapter*{\contentsname
791 \@mkboth{\contentsname}{\contentsname}%
793 \if@restonecol\twocolumn\fi
795 \newcommand*{\l@part}[2]{%
796 \ifnum \c@tocdepth >-2\relax
797 \addpenalty{-\@highpenalty}%
798 \addvspace{2.25em \@plus\p@}%
800 \parindent\z@\rightskip\@pnumwidth
801 \parfillskip-\@pnumwidth
802 {\leavevmode\large\bfseries
803 \setlength\@lnumwidth{4\zw}%
805 \hb@xt@\@pnumwidth{\hss#2}}\par
808 \everypar{\global\@nobreakfalse\everypar{}}%
811 \newcommand*{\l@chapter}[2]{%
812 \ifnum \c@tocdepth >\m@ne
813 \addpenalty{-\@highpenalty}%
814 \addvspace{1.0em \@plus\p@}%
816 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
818 \setlength\@lnumwidth{4\zw}%
819 \advance\leftskip\@lnumwidth \hskip-\leftskip
820 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
821 \penalty\@highpenalty
824 \newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
825 \newcommand*{\l@subsection} {\@dottedtocline{2}{3.8em}{3.2em}}
826 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
827 \newcommand*{\l@paragraph} {\@dottedtocline{4}{10em}{5em}}
828 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
829 \newcommand{\listoffigures}{%
830 \if@twocolumn\@restonecoltrue\onecolumn
831 \else\@restonecolfalse\fi
832 \chapter*{\listfigurename}%
833 \@mkboth{\listfigurename}{\listfigurename}%
835 \if@restonecol\twocolumn\fi
837 \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
838 \newcommand{\listoftables}{%
839 \if@twocolumn\@restonecoltrue\onecolumn
840 \else\@restonecolfalse\fi
841 \chapter*{\listtablename}%
842 \@mkboth{\listtablename}{\listtablename}%
844 \if@restonecol\twocolumn\fi
846 \let\l@table\l@figure
848 \setlength\bibindent{1.5em}
849 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
850 \newenvironment{thebibliography}[1]
851 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
852 \list{\@biblabel{\@arabic\c@enumiv}}%
853 {\settowidth\labelwidth{\@biblabel{#1}}%
854 \leftmargin\labelwidth
855 \advance\leftmargin\labelsep
859 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
862 \@clubpenalty\clubpenalty
866 {\@latex@warning{Empty `thebibliography' environment}}%
868 \let\@openbib@code\@empty
869 \newenvironment{theindex}
870 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
871 \twocolumn[\@makeschapterhead{\indexname}]%
872 \@mkboth{\indexname}{\indexname}%
873 \thispagestyle{jpl@in}\parindent\z@
874 \parskip\z@ \@plus .3\p@\relax
875 \columnseprule\z@ \columnsep 35\p@
877 {\if@restonecol\onecolumn\else\clearpage\fi}
878 \newcommand{\@idxitem}{\par\hangindent 40\p@}
879 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
880 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
881 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
882 \renewcommand{\footnoterule}{%
884 \hrule\@width.4\columnwidth
886 \@addtoreset{footnote}{chapter}
887 \newcommand\@makefntext[1]{\parindent 1em
888 \noindent\hb@xt@ 1.8em{\hss\@makefnmark}#1}
892 \newcount\heisei \heisei\year \advance\heisei-1988\relax
893 \def\pltx@today@year@#1{%
894 \ifnum\numexpr\year-#1=1 元\else
895 \ifnum\ltjgetparameter{direction}=3
896 \kansuji\numexpr\year-#1\relax
898 \number\numexpr\year-#1\relax\nobreak
902 \def\pltx@today@year{%
903 \ifnum\numexpr\year*10000+\month*100+\day<19890108
904 昭和\pltx@today@year@{1925}%
905 \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
906 平成\pltx@today@year@{1988}%
908 令和\pltx@today@year@{2018}%
912 \ifnum\ltjgetparameter{direction}=3 \kansuji\year
913 \else\number\year\nobreak\fi 年
917 \ifnum\ltjgetparameter{direction}=3
921 \number\month\nobreak 月
922 \number\day\nobreak 日
924 \newcommand{\prepartname}{第}
925 \newcommand{\postpartname}{部}
926 \newcommand{\prechaptername}{第}
927 \newcommand{\postchaptername}{章}
928 \newcommand{\contentsname}{目 次}
929 \newcommand{\listfigurename}{図 目 次}
930 \newcommand{\listtablename}{表 目 次}
931 \newcommand{\bibname}{関連図書}
932 \newcommand{\indexname}{索 引}
933 \newcommand{\figurename}{図}
934 \newcommand{\tablename}{表}
935 \newcommand{\appendixname}{付 録}
937 \pagenumbering{arabic}
939 \fnfixbottomtrue % 2017-02-19
940 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
952 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
953 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
956 %% End of file `ltjbook.cls'.