2 %% This is file `ltjtbook.cls',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% ltjclasses.dtx (with options: `book,tate')
11 %% For the copyright see the source file.
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from ltjtbook.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{ltjtbook}
26 [2020/01/13 v1.8e-ltj-17
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 \AtEndOfPackageFile{everyshi}{%
109 \def\@EveryShipout@Output{%
113 \@EveryShipout@AtNextHook
114 \global\setbox\luatexoutputbox=\box\luatexoutputbox
116 \gdef\@EveryShipout@AtNextHook{}%
117 \@EveryShipout@Org@Shipout\box\luatexoutputbox
119 \DeclareOption{oneside}{\@twosidefalse}
120 \DeclareOption{twoside}{\@twosidetrue}
121 \DeclareOption{onecolumn}{\@twocolumnfalse}
122 \DeclareOption{twocolumn}{\@twocolumntrue}
123 \DeclareOption{titlepage}{\@titlepagetrue}
124 \DeclareOption{notitlepage}{\@titlepagefalse}
128 \DeclareOption{openright}{\@openrighttrue\@openleftfalse}
129 \DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
130 \DeclareOption{openany}{\@openrightfalse\@openleftfalse}
132 \DeclareOption{leqno}{\input{leqno.clo}}
133 \DeclareOption{fleqn}{\input{fleqn.clo}}
134 \DeclareOption{openbib}{%
136 \renewcommand\@openbib@code{%
137 \advance\leftmargin\bibindent
138 \itemindent -\bibindent
139 \listparindent \itemindent
142 \renewcommand\newblock{\par}}}
146 \DeclareOption{mathrmmc}{\@mathrmmctrue}
148 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
149 \DeclareOption{final}{\setlength\overfullrule{0pt}}
150 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
151 function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
152 'ltj.jclasses_load_jfm', 1)}
153 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
154 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
155 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
156 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
157 \ltjglobalsetparameter{differentjfm=both}
158 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
159 \DeclareOption{disablejfam}{}
160 \ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright,tate}
161 \ProcessOptions\relax
162 \input{ltjtbk1\@ptsize.clo}
163 \RequirePackage{lltjext}
164 \def\Cjascale{0.962216}
166 \setlength\columnsep{3\Cwd}
168 \setlength\columnsep{10\p@}
170 \setlength\columnseprule{0\p@}
172 \newlength{\stockwidth}
173 \newlength{\stockheight}
174 \setlength{\stockwidth}{\paperwidth}
175 \setlength{\stockheight}{\paperheight}
176 \advance \stockwidth 2in
177 \advance \stockheight 2in
178 \ifdefined\pdfpagewidth
179 \setlength{\pdfpagewidth}{\stockwidth}
180 \setlength{\pdfpageheight}{\stockheight}
182 \setlength{\pagewidth}{\stockwidth}
183 \setlength{\pageheight}{\stockheight}
186 \ifdefined\pdfpagewidth
187 \setlength{\pdfpagewidth}{\paperwidth}
188 \setlength{\pdfpageheight}{\paperheight}
190 \setlength{\pagewidth}{\paperwidth}
191 \setlength{\pageheight}{\paperheight}
194 \setlength\lineskip{1\p@}
195 \setlength\normallineskip{1\p@}
196 \renewcommand{\baselinestretch}{}
197 \setlength\parskip{0\p@ \@plus \p@}
198 \setlength\parindent{1\Cwd}
202 \setcounter{topnumber}{2}
203 \setcounter{bottomnumber}{1}
204 \setcounter{totalnumber}{3}
205 \setcounter{dbltopnumber}{2}
206 \renewcommand{\topfraction}{.7}
207 \renewcommand{\bottomfraction}{.3}
208 \renewcommand{\textfraction}{.2}
209 \renewcommand{\floatpagefraction}{.5}
210 \renewcommand{\dbltopfraction}{.7}
211 \renewcommand{\dblfloatpagefraction}{.5}
212 \def\pltx@cleartorightpage{\clearpage\if@twoside
213 \unless\ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
214 \hbox{}\thispagestyle{empty}\newpage
215 \if@twocolumn\hbox{}\newpage\fi
217 \def\pltx@cleartoleftpage{\clearpage\if@twoside
218 \ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
219 \hbox{}\thispagestyle{empty}\newpage
220 \if@twocolumn\hbox{}\newpage\fi
222 \def\pltx@cleartooddpage{\clearpage\if@twoside
224 \hbox{}\thispagestyle{empty}\newpage
225 \if@twocolumn\hbox{}\newpage\fi
227 \def\pltx@cleartoevenpage{\clearpage\if@twoside
229 \hbox{}\thispagestyle{empty}\newpage
230 \if@twocolumn\hbox{}\newpage\fi
233 \let\cleardoublepage\pltx@cleartoleftpage
235 \let\cleardoublepage\pltx@cleartorightpage
237 \def\ps@plain{\let\@mkboth\@gobbletwo
238 \let\ps@jpl@in\ps@plain
240 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
241 \let\@evenhead\@empty
242 \let\@evenfoot\@oddfoot}
243 \let\ps@jpl@in\ps@plain
244 \def\ps@headnombre{\let\@mkboth\@gobbletwo
245 \let\ps@jpl@in\ps@headnombre
246 \def\@evenhead{\hfil\thepage}%
247 \def\@oddhead{\thepage\hfil}%
248 \let\@oddfoot\@empty\let\@evenfoot\@empty}
249 \def\ps@footnombre{\let\@mkboth\@gobbletwo
250 \let\ps@jpl@in\ps@footnombre
251 \def\@evenfoot{\hfil\thepage}%
252 \def\@oddfoot{\thepage\hfil}%
253 \let\@oddhead\@empty\let\@evenhead\@empty}
255 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
256 \let\@oddfoot\@empty\let\@evenfoot\@empty
257 \def\@evenhead{{\leftmark}\hfil\thepage}%
258 \def\@oddhead{\thepage\hfil\rightmark}%
259 \let\@mkboth\markboth
260 \def\chaptermark##1{\markboth{%
261 \ifnum \c@secnumdepth >\m@ne
263 \@chapapp\thechapter\@chappos\hskip1\zw
267 \def\sectionmark##1{\markright{%
268 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
271 \else % if not twoside
272 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
274 \def\@oddhead{\thepage\hfil\rightmark}%
275 \let\@mkboth\markboth
276 \def\chaptermark##1{\markright{%
277 \ifnum \c@secnumdepth >\m@ne
279 \@chapapp\thechapter\@chappos\hskip1\zw
286 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
287 \def\@evenhead{\hfil\leftmark}% right page
288 \def\@evenfoot{\hfil\thepage}% right page
289 \def\@oddhead{\rightmark\hfil}% left page
290 \def\@oddfoot{\thepage\hfil}% left page
291 \let\@mkboth\markboth
292 \def\chaptermark##1{\markboth{%
293 \ifnum \c@secnumdepth >\m@ne
295 \@chapapp\thechapter\@chappos\hskip1\zw
299 \def\sectionmark##1{\markright{%
300 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
303 \else % if one column
304 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
305 \def\@oddhead{\rightmark\hfil}%
306 \def\@oddfoot{\thepage\hfil}%
307 \let\@mkboth\markboth
308 \def\chaptermark##1{\markright{%
309 \ifnum \c@secnumdepth >\m@ne
311 \@chapapp\thechapter\@chappos\hskip1\zw
317 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
318 \let\@oddfoot\@empty\let\@evenfoot\@empty
319 \def\@evenhead{{\leftmark}\hfil\thepage}%
320 \def\@oddhead{\thepage\hfil\rightmark}%
321 \let\@mkboth\@gobbletwo
322 \let\chaptermark\@gobble
323 \let\sectionmark\@gobble
326 \newenvironment{titlepage}
329 \if@twocolumn\@restonecoltrue\onecolumn
330 \else\@restonecolfalse\newpage\fi
331 \thispagestyle{empty}%
334 {\if@restonecol\twocolumn\else\newpage\fi
337 \newenvironment{titlepage}
339 \pltx@cleartooddpage %% 2017/02/15
341 \@restonecoltrue\onecolumn
343 \@restonecolfalse\newpage
345 \thispagestyle{empty}%
346 \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017/02/15
348 {\if@restonecol\twocolumn \else \newpage \fi
350 \setcounter{page}\@ne
354 \def\p@thanks#1{\footnotemark
355 \protected@xdef\@thanks{\@thanks
356 \protect{\noindent\hbox{\yoko$\m@th^\thefootnote$}#1\protect\par}}}
358 \newcommand{\maketitle}{\begin{titlepage}%
359 \let\footnotesize\small
360 \let\footnoterule\relax
363 \vbox to\textheight\bgroup\tate\hsize\textwidth
367 {\LARGE \@title \par}%
371 \begin{tabular}[t]{c}%
375 {\large \@date \par}% % Set date in \large size.
377 \vfil{\centering\@thanks}\vfil\null
380 \setcounter{footnote}{0}%
381 \global\let\thanks\relax
382 \global\let\maketitle\relax
383 \global\let\p@thanks\relax
384 \global\let\@thanks\@empty
385 \global\let\@author\@empty
386 \global\let\@date\@empty
387 \global\let\@title\@empty
388 \global\let\title\relax
389 \global\let\author\relax
390 \global\let\date\relax
391 \global\let\and\relax
394 \newcommand{\maketitle}{\par
396 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
397 \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
398 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
399 \long\def\@makefntext##1{\parindent 1\zw\noindent
400 \hb@xt@ 2\zw{\hss\@makefnmark}##1}%
402 \ifnum \col@number=\@ne \@maketitle
403 \else \twocolumn[\@maketitle]%
407 \global\@topnum\z@ % Prevents figures from going at top of page.
410 \thispagestyle{jpl@in}\@thanks
412 \setcounter{footnote}{0}%
413 \global\let\thanks\relax
414 \global\let\maketitle\relax
415 \global\let\@maketitle\relax
416 \global\let\p@thanks\relax
417 \global\let\@thanks\@empty
418 \global\let\@author\@empty
419 \global\let\@date\@empty
420 \global\let\@title\@empty
421 \global\let\title\relax
422 \global\let\author\relax
423 \global\let\date\relax
424 \global\let\and\relax
430 \let\footnote\p@thanks
431 {\LARGE \@title \par}%
435 \begin{tabular}[t]{c}%
443 \newcommand*{\chaptermark}[1]{}
444 \setcounter{secnumdepth}{2}
447 \newcounter{section}[chapter]
448 \newcounter{subsection}[section]
449 \newcounter{subsubsection}[subsection]
450 \newcounter{paragraph}[subsubsection]
451 \newcounter{subparagraph}[paragraph]
452 \renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
453 \renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
454 \renewcommand{\thesection}{\thechapter・\rensuji{\@arabic\c@section}}
455 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
456 \renewcommand{\thesubsubsection}{%
457 \thesubsection・\rensuji{\@arabic\c@subsubsection}}
458 \renewcommand{\theparagraph}{%
459 \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
460 \renewcommand{\thesubparagraph}{%
461 \theparagraph・\rensuji{\@arabic\c@subparagraph}}
462 \newcommand{\@chapapp}{\prechaptername}
463 \newcommand{\@chappos}{\postchaptername}
464 \newcommand{\frontmatter}{%
466 \@mainmatterfalse\pagenumbering{roman}}
467 \newcommand{\mainmatter}{%
469 \@mainmattertrue\pagenumbering{arabic}}
470 \newcommand{\backmatter}{%
471 \if@openleft \cleardoublepage \else
472 \if@openright \cleardoublepage \else \clearpage \fi \fi
475 \if@openleft \cleardoublepage \else
476 \if@openright \cleardoublepage \else \clearpage \fi \fi
477 \thispagestyle{empty}%
478 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
480 \secdef\@part\@spart}
482 \ifnum \c@secnumdepth >-2\relax
483 \refstepcounter{part}%
484 \addcontentsline{toc}{part}{%
485 \prepartname\thepart\postpartname\hspace{1em}#1}%
487 \addcontentsline{toc}{part}{#1}%
491 \interlinepenalty\@M\normalfont
492 \ifnum \c@secnumdepth >-2\relax
493 \huge\bfseries\prepartname\thepart\postpartname
496 \Huge\bfseries#2\par}%
500 \interlinepenalty\@M\normalfont
501 \Huge\bfseries#1\par}%
503 \def\@endpart{\vfil\newpage
505 \if@openleft %% \if@openleft added (2017/02/15)
506 \null\thispagestyle{empty}\newpage
507 \else\if@openright %% \if@openright added (2016/12/18)
508 \null\thispagestyle{empty}\newpage
509 \fi\fi %% added (2016/12/18, 2017/02/15)
511 \if@tempswa\twocolumn\fi}
512 \newcommand{\chapter}{%
513 \if@openleft \cleardoublepage \else
514 \if@openright \cleardoublepage \else \clearpage \fi \fi
515 \thispagestyle{jpl@in}%
518 \secdef\@chapter\@schapter}
519 \def\@chapter[#1]#2{%
520 \ifnum \c@secnumdepth >\m@ne
522 \refstepcounter{chapter}%
523 \typeout{\@chapapp\space\thechapter\space\@chappos}%
524 \addcontentsline{toc}{chapter}%
525 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
526 \else\addcontentsline{toc}{chapter}{#1}\fi
528 \addcontentsline{toc}{chapter}{#1}%
531 \addtocontents{lof}{\protect\addvspace{10\p@}}%
532 \addtocontents{lot}{\protect\addvspace{10\p@}}%
533 \@makechapterhead{#2}\@afterheading}
534 \def\@makechapterhead#1{\hbox{}%
538 \normalfont\huge\bfseries
540 \ifnum \c@secnumdepth >\m@ne
541 \setlength\@tempdima{\linewidth}%
543 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
544 \addtolength\@tempdima{-\wd\z@}%
547 \vtop{\hsize\@tempdima#1}%
550 \fi}\nobreak\vskip3\Cvs}
552 \@makeschapterhead{#1}\@afterheading
554 \def\@makeschapterhead#1{\hbox{}%
558 \normalfont\huge\bfseries
560 \setlength\@tempdima{\linewidth}%
561 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
562 \newcommand{\section}{\@startsection{section}{1}{\z@}%
563 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
564 {.5\Cvs \@plus.3\Cvs}%
565 {\normalfont\Large\bfseries}}
566 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
567 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
568 {.5\Cvs \@plus.3\Cvs}%
569 {\normalfont\large\bfseries}}
570 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
571 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
572 {.5\Cvs \@plus.3\Cvs}%
573 {\normalfont\normalsize\bfseries}}
574 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
575 {3.25ex \@plus 1ex \@minus .2ex}%
577 {\normalfont\normalsize\bfseries}}
578 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
579 {3.25ex \@plus 1ex \@minus .2ex}%
581 {\normalfont\normalsize\bfseries}}
582 \newcommand{\appendix}{\par
583 \setcounter{chapter}{0}%
584 \setcounter{section}{0}%
585 \renewcommand{\@chapapp}{\appendixname}%
586 \renewcommand{\@chappos}\space%
587 \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
589 \setlength\leftmargini {2em}
591 \setlength\leftmargini {2.5em}
593 \setlength\leftmarginii {2.2em}
594 \setlength\leftmarginiii {1.87em}
595 \setlength\leftmarginiv {1.7em}
597 \setlength\leftmarginv {.5em}
598 \setlength\leftmarginvi{.5em}
600 \setlength\leftmarginv {1em}
601 \setlength\leftmarginvi{1em}
603 \setlength \labelsep {.5em}
604 \setlength \labelwidth{\leftmargini}
605 \addtolength\labelwidth{-\labelsep}
606 \@beginparpenalty -\@lowpenalty
607 \@endparpenalty -\@lowpenalty
608 \@itempenalty -\@lowpenalty
609 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
610 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
611 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
612 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
613 \newcommand{\labelenumi}{\theenumi}
614 \newcommand{\labelenumii}{\theenumii}
615 \newcommand{\labelenumiii}{\theenumiii}
616 \newcommand{\labelenumiv}{\theenumiv}
617 \renewcommand{\p@enumii}{\theenumi}
618 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
619 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
620 \renewenvironment{enumerate}
621 {\ifnum \@enumdepth >\thr@@\@toodeep\else
622 \advance\@enumdepth\@ne
623 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
624 \expandafter \list \csname label\@enumctr\endcsname{%
625 \ifnum\ltjgetparameter{direction}=3
626 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
628 \parskip\z@ \itemsep\z@ \parsep\z@
629 \labelwidth1\zw \labelsep.3\zw
630 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
631 \else\leftmargin\leftskip\fi
632 \advance\leftmargin 1\zw
634 \usecounter{\@enumctr}%
635 \def\makelabel##1{\hss\llap{##1}}}%
637 \newcommand{\labelitemi}{\labelitemfont \textbullet}
638 \newcommand{\labelitemii}{%
639 \ifnum\ltjgetparameter{direction}=3
640 {\labelitemfont \textcircled{~}}
642 {\labelitemfont \bfseries\textendash}
645 \newcommand{\labelitemiii}{\labelitemfont \textasteriskcentered}
646 \newcommand{\labelitemiv}{\labelitemfont \textperiodcentered}
647 \newcommand\labelitemfont{\normalfont}
648 \renewenvironment{itemize}
649 {\ifnum \@itemdepth >\thr@@\@toodeep\else
650 \advance\@itemdepth\@ne
651 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
652 \expandafter \list \csname \@itemitem\endcsname{%
653 \ifnum\ltjgetparameter{direction}=3
654 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
656 \parskip\z@ \itemsep\z@ \parsep\z@
657 \labelwidth1\zw \labelsep.3\zw
658 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
659 \else\leftmargin\leftskip\fi
660 \advance\leftmargin 1\zw
662 \def\makelabel##1{\hss\llap{##1}}}%
664 \newenvironment{description}
665 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
666 \ifnum\ltjgetparameter{direction}=3
667 \leftmargin\leftskip \advance\leftmargin3\Cwd
668 \rightmargin\rightskip
669 \labelsep=1\zw \itemsep\z@
670 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
672 \let\makelabel\descriptionlabel}}{\endlist}
673 \newcommand{\descriptionlabel}[1]{%
674 \hspace\labelsep\normalfont\bfseries #1}
675 \newenvironment{verse}
677 \list{}{\itemsep\z@ \itemindent -1.5em%
678 \listparindent\itemindent
679 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
680 \item\relax}{\endlist}
681 \newenvironment{quotation}
682 {\list{}{\listparindent 1.5em%
683 \itemindent\listparindent
684 \rightmargin\leftmargin
685 \parsep\z@ \@plus\p@}%
686 \item\relax}{\endlist}
687 \newenvironment{quote}
688 {\list{}{\rightmargin\leftmargin}%
689 \item\relax}{\endlist}
690 \newcounter{figure}[chapter]
691 \renewcommand{\thefigure}{%
692 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
696 \def\fnum@figure{\figurename\thefigure}
697 \newenvironment{figure}
700 \newenvironment{figure*}
703 \newcounter{table}[chapter]
704 \renewcommand{\thetable}{%
705 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
709 \def\fnum@table{\tablename\thetable}
710 \newenvironment{table}
713 \newenvironment{table*}
716 \newlength\abovecaptionskip
717 \newlength\belowcaptionskip
718 \setlength\abovecaptionskip{10\p@}
719 \setlength\belowcaptionskip{0\p@}
720 \long\def\@makecaption#1#2{%
721 \vskip\abovecaptionskip
722 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
723 \else\sbox\@tempboxa{#1: #2}%
725 \ifdim \wd\@tempboxa >\hsize
726 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
727 \else #1: #2\relax\par\fi
729 \global \@minipagefalse
730 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
732 \vskip\belowcaptionskip}
733 \setlength\arraycolsep{5\p@}
734 \setlength\tabcolsep{6\p@}
735 \setlength\arrayrulewidth{.4\p@}
736 \setlength\doublerulesep{2\p@}
737 \setlength\tabbingsep{\labelsep}
738 \skip\@mpfootins = \skip\footins
739 \setlength\fboxsep{3\p@}
740 \setlength\fboxrule{.4\p@}
741 \@addtoreset{equation}{chapter}
742 \renewcommand{\theequation}{%
743 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
744 \unless\ifltj@disablejfam
745 \if@compatibility\else
746 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
747 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
748 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
750 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
754 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
755 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
759 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
760 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
761 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
762 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
763 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
764 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
765 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
766 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
767 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
768 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
769 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
770 \setcounter{tocdepth}{2}
771 \newcommand{\@pnumwidth}{1.55em}
772 \newcommand{\@tocrmarg}{2.55em}
773 \newcommand{\@dotsep}{4.5}
774 \newdimen\toclineskip
775 \setlength\toclineskip{2\p@}
777 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
778 \def\@dottedtocline#1#2#3#4#5{%
779 \ifnum #1>\c@tocdepth \else
780 \vskip\toclineskip \@plus.2\p@
781 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
782 \parindent #2\relax\@afterindenttrue
786 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
788 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
790 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
793 \providecommand*\protected@file@percent{}
794 \def\addcontentsline#1#2#3{%
795 \protected@write\@auxout
796 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
797 \@temptokena{\rensuji{\thepage}}}%
798 {\string\@writefile{#1}%
799 {\protect\contentsline{#2}{#3}{\the\@temptokena}%
800 \protected@file@percent}}%
802 \newcommand{\tableofcontents}{%
803 \if@twocolumn\@restonecoltrue\onecolumn
804 \else\@restonecolfalse\fi
805 \chapter*{\contentsname
806 \@mkboth{\contentsname}{\contentsname}%
808 \if@restonecol\twocolumn\fi
810 \newcommand*{\l@part}[2]{%
811 \ifnum \c@tocdepth >-2\relax
812 \addpenalty{-\@highpenalty}%
813 \addvspace{2.25em \@plus\p@}%
815 \parindent\z@\rightskip\@pnumwidth
816 \parfillskip-\@pnumwidth
817 {\leavevmode\large\bfseries
818 \setlength\@lnumwidth{4\zw}%
820 \hb@xt@\@pnumwidth{\hss#2}}\par
823 \everypar{\global\@nobreakfalse\everypar{}}%
826 \newcommand*{\l@chapter}[2]{%
827 \ifnum \c@tocdepth >\m@ne
828 \addpenalty{-\@highpenalty}%
829 \addvspace{1.0em \@plus\p@}%
831 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
833 \setlength\@lnumwidth{4\zw}%
834 \advance\leftskip\@lnumwidth \hskip-\leftskip
835 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
836 \penalty\@highpenalty
839 \newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
840 \newcommand*{\l@subsection} {\@dottedtocline{2}{2\zw}{6\zw}}
841 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
842 \newcommand*{\l@paragraph} {\@dottedtocline{4}{4\zw}{9\zw}}
843 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
844 \newcommand{\listoffigures}{%
845 \if@twocolumn\@restonecoltrue\onecolumn
846 \else\@restonecolfalse\fi
847 \chapter*{\listfigurename}%
848 \@mkboth{\listfigurename}{\listfigurename}%
850 \if@restonecol\twocolumn\fi
852 \newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
853 \newcommand{\listoftables}{%
854 \if@twocolumn\@restonecoltrue\onecolumn
855 \else\@restonecolfalse\fi
856 \chapter*{\listtablename}%
857 \@mkboth{\listtablename}{\listtablename}%
859 \if@restonecol\twocolumn\fi
861 \let\l@table\l@figure
863 \setlength\bibindent{1.5em}
864 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
865 \newenvironment{thebibliography}[1]
866 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
867 \list{\@biblabel{\@arabic\c@enumiv}}%
868 {\settowidth\labelwidth{\@biblabel{#1}}%
869 \leftmargin\labelwidth
870 \advance\leftmargin\labelsep
874 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
877 \@clubpenalty\clubpenalty
881 {\@latex@warning{Empty `thebibliography' environment}}%
883 \let\@openbib@code\@empty
884 \newenvironment{theindex}
885 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
886 \twocolumn[\@makeschapterhead{\indexname}]%
887 \@mkboth{\indexname}{\indexname}%
888 \thispagestyle{jpl@in}\parindent\z@
889 \parskip\z@ \@plus .3\p@\relax
890 \columnseprule\z@ \columnsep 35\p@
892 {\if@restonecol\onecolumn\else\clearpage\fi}
893 \newcommand{\@idxitem}{\par\hangindent 40\p@}
894 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
895 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
896 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
897 \renewcommand{\footnoterule}{%
899 \hrule\@width.4\columnwidth
901 \@addtoreset{footnote}{chapter}
902 \newcommand\@makefntext[1]{\parindent 1\zw
903 \noindent\hb@xt@ 2\zw{\hss\@makefnmark}#1}
907 \newcount\heisei \heisei\year \advance\heisei-1988\relax
908 \def\pltx@today@year@#1{%
909 \ifnum\numexpr\year-#1=1 元\else
910 \ifnum\ltjgetparameter{direction}=3
911 \kansuji\numexpr\year-#1\relax
913 \number\numexpr\year-#1\relax\nobreak
917 \def\pltx@today@year{%
918 \ifnum\numexpr\year*10000+\month*100+\day<19890108
919 昭和\pltx@today@year@{1925}%
920 \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
921 平成\pltx@today@year@{1988}%
923 令和\pltx@today@year@{2018}%
927 \ifnum\ltjgetparameter{direction}=3 \kansuji\year
928 \else\number\year\nobreak\fi 年
932 \ifnum\ltjgetparameter{direction}=3
936 \number\month\nobreak 月
937 \number\day\nobreak 日
939 \newcommand{\prepartname}{第}
940 \newcommand{\postpartname}{部}
941 \newcommand{\prechaptername}{第}
942 \newcommand{\postchaptername}{章}
943 \newcommand{\contentsname}{目 次}
944 \newcommand{\listfigurename}{図 目 次}
945 \newcommand{\listtablename}{表 目 次}
946 \newcommand{\bibname}{関連図書}
947 \newcommand{\indexname}{索 引}
948 \newcommand{\figurename}{図}
949 \newcommand{\tablename}{表}
950 \newcommand{\appendixname}{付 録}
952 \pagenumbering{arabic}
954 \fnfixbottomtrue % 2017-02-19
955 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
964 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
965 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
968 %% End of file `ltjtbook.cls'.