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 [2018/10/08 v1.8-ltj-16
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 \ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright,tate}
160 \ProcessOptions\relax
161 \input{ltjtbk1\@ptsize.clo}
162 \RequirePackage{lltjext}
163 \def\Cjascale{0.962216}
165 \setlength\columnsep{3\Cwd}
167 \setlength\columnsep{10\p@}
169 \setlength\columnseprule{0\p@}
171 \newlength{\stockwidth}
172 \newlength{\stockheight}
173 \setlength{\stockwidth}{\paperwidth}
174 \setlength{\stockheight}{\paperheight}
175 \advance \stockwidth 2in
176 \advance \stockheight 2in
177 \ifdefined\pdfpagewidth
178 \setlength{\pdfpagewidth}{\stockwidth}
179 \setlength{\pdfpageheight}{\stockheight}
181 \setlength{\pagewidth}{\stockwidth}
182 \setlength{\pageheight}{\stockheight}
185 \ifdefined\pdfpagewidth
186 \setlength{\pdfpagewidth}{\paperwidth}
187 \setlength{\pdfpageheight}{\paperheight}
189 \setlength{\pagewidth}{\paperwidth}
190 \setlength{\pageheight}{\paperheight}
193 \setlength\lineskip{1\p@}
194 \setlength\normallineskip{1\p@}
195 \renewcommand{\baselinestretch}{}
196 \setlength\parskip{0\p@ \@plus \p@}
197 \setlength\parindent{1\Cwd}
201 \setcounter{topnumber}{2}
202 \setcounter{bottomnumber}{1}
203 \setcounter{totalnumber}{3}
204 \setcounter{dbltopnumber}{2}
205 \renewcommand{\topfraction}{.7}
206 \renewcommand{\bottomfraction}{.3}
207 \renewcommand{\textfraction}{.2}
208 \renewcommand{\floatpagefraction}{.5}
209 \renewcommand{\dbltopfraction}{.7}
210 \renewcommand{\dblfloatpagefraction}{.5}
211 \def\pltx@cleartorightpage{\clearpage\if@twoside
212 \unless\ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
213 \hbox{}\thispagestyle{empty}\newpage
214 \if@twocolumn\hbox{}\newpage\fi
216 \def\pltx@cleartoleftpage{\clearpage\if@twoside
217 \ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
218 \hbox{}\thispagestyle{empty}\newpage
219 \if@twocolumn\hbox{}\newpage\fi
221 \def\pltx@cleartooddpage{\clearpage\if@twoside
223 \hbox{}\thispagestyle{empty}\newpage
224 \if@twocolumn\hbox{}\newpage\fi
226 \def\pltx@cleartoevenpage{\clearpage\if@twoside
228 \hbox{}\thispagestyle{empty}\newpage
229 \if@twocolumn\hbox{}\newpage\fi
232 \let\cleardoublepage\pltx@cleartoleftpage
234 \let\cleardoublepage\pltx@cleartorightpage
236 \def\ps@plain{\let\@mkboth\@gobbletwo
237 \let\ps@jpl@in\ps@plain
239 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
240 \let\@evenhead\@empty
241 \let\@evenfoot\@oddfoot}
242 \let\ps@jpl@in\ps@plain
243 \def\ps@headnombre{\let\@mkboth\@gobbletwo
244 \let\ps@jpl@in\ps@headnombre
245 \def\@evenhead{\hfil\thepage}%
246 \def\@oddhead{\thepage\hfil}%
247 \let\@oddfoot\@empty\let\@evenfoot\@empty}
248 \def\ps@footnombre{\let\@mkboth\@gobbletwo
249 \let\ps@jpl@in\ps@footnombre
250 \def\@evenfoot{\hfil\thepage}%
251 \def\@oddfoot{\thepage\hfil}%
252 \let\@oddhead\@empty\let\@evenhead\@empty}
254 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
255 \let\@oddfoot\@empty\let\@evenfoot\@empty
256 \def\@evenhead{{\leftmark}\hfil\thepage}%
257 \def\@oddhead{\thepage\hfil\rightmark}%
258 \let\@mkboth\markboth
259 \def\chaptermark##1{\markboth{%
260 \ifnum \c@secnumdepth >\m@ne
262 \@chapapp\thechapter\@chappos\hskip1\zw
266 \def\sectionmark##1{\markright{%
267 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
270 \else % if not twoside
271 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
273 \def\@oddhead{\thepage\hfil\rightmark}%
274 \let\@mkboth\markboth
275 \def\chaptermark##1{\markright{%
276 \ifnum \c@secnumdepth >\m@ne
278 \@chapapp\thechapter\@chappos\hskip1\zw
285 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
286 \def\@evenhead{\hfil\leftmark}% right page
287 \def\@evenfoot{\hfil\thepage}% right page
288 \def\@oddhead{\rightmark\hfil}% left page
289 \def\@oddfoot{\thepage\hfil}% left page
290 \let\@mkboth\markboth
291 \def\chaptermark##1{\markboth{%
292 \ifnum \c@secnumdepth >\m@ne
294 \@chapapp\thechapter\@chappos\hskip1\zw
298 \def\sectionmark##1{\markright{%
299 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
302 \else % if one column
303 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
304 \def\@oddhead{\rightmark\hfil}%
305 \def\@oddfoot{\thepage\hfil}%
306 \let\@mkboth\markboth
307 \def\chaptermark##1{\markright{%
308 \ifnum \c@secnumdepth >\m@ne
310 \@chapapp\thechapter\@chappos\hskip1\zw
316 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
317 \let\@oddfoot\@empty\let\@evenfoot\@empty
318 \def\@evenhead{{\leftmark}\hfil\thepage}%
319 \def\@oddhead{\thepage\hfil\rightmark}%
320 \let\@mkboth\@gobbletwo
321 \let\chaptermark\@gobble
322 \let\sectionmark\@gobble
325 \newenvironment{titlepage}
328 \if@twocolumn\@restonecoltrue\onecolumn
329 \else\@restonecolfalse\newpage\fi
330 \thispagestyle{empty}%
333 {\if@restonecol\twocolumn\else\newpage\fi
336 \newenvironment{titlepage}
338 \pltx@cleartooddpage %% 2017/02/15
340 \@restonecoltrue\onecolumn
342 \@restonecolfalse\newpage
344 \thispagestyle{empty}%
345 \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017/02/15
347 {\if@restonecol\twocolumn \else \newpage \fi
349 \setcounter{page}\@ne
353 \def\p@thanks#1{\footnotemark
354 \protected@xdef\@thanks{\@thanks
355 \protect{\noindent\hbox{\yoko$\m@th^\thefootnote$}#1\protect\par}}}
357 \newcommand{\maketitle}{\begin{titlepage}%
358 \let\footnotesize\small
359 \let\footnoterule\relax
362 \vbox to\textheight\bgroup\tate\hsize\textwidth
366 {\LARGE \@title \par}%
370 \begin{tabular}[t]{c}%
374 {\large \@date \par}% % Set date in \large size.
376 \vfil{\centering\@thanks}\vfil\null
379 \setcounter{footnote}{0}%
380 \global\let\thanks\relax
381 \global\let\maketitle\relax
382 \global\let\p@thanks\relax
383 \global\let\@thanks\@empty
384 \global\let\@author\@empty
385 \global\let\@date\@empty
386 \global\let\@title\@empty
387 \global\let\title\relax
388 \global\let\author\relax
389 \global\let\date\relax
390 \global\let\and\relax
393 \newcommand{\maketitle}{\par
395 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
396 \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
397 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
398 \long\def\@makefntext##1{\parindent 1\zw\noindent
399 \hb@xt@ 2\zw{\hss\@makefnmark}##1}%
401 \ifnum \col@number=\@ne \@maketitle
402 \else \twocolumn[\@maketitle]%
406 \global\@topnum\z@ % Prevents figures from going at top of page.
409 \thispagestyle{jpl@in}\@thanks
411 \setcounter{footnote}{0}%
412 \global\let\thanks\relax
413 \global\let\maketitle\relax
414 \global\let\@maketitle\relax
415 \global\let\p@thanks\relax
416 \global\let\@thanks\@empty
417 \global\let\@author\@empty
418 \global\let\@date\@empty
419 \global\let\@title\@empty
420 \global\let\title\relax
421 \global\let\author\relax
422 \global\let\date\relax
423 \global\let\and\relax
429 \let\footnote\p@thanks
430 {\LARGE \@title \par}%
434 \begin{tabular}[t]{c}%
442 \newcommand*{\chaptermark}[1]{}
443 \setcounter{secnumdepth}{2}
446 \newcounter{section}[chapter]
447 \newcounter{subsection}[section]
448 \newcounter{subsubsection}[subsection]
449 \newcounter{paragraph}[subsubsection]
450 \newcounter{subparagraph}[paragraph]
451 \renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
452 \renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
453 \renewcommand{\thesection}{\thechapter・\rensuji{\@arabic\c@section}}
454 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
455 \renewcommand{\thesubsubsection}{%
456 \thesubsection・\rensuji{\@arabic\c@subsubsection}}
457 \renewcommand{\theparagraph}{%
458 \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
459 \renewcommand{\thesubparagraph}{%
460 \theparagraph・\rensuji{\@arabic\c@subparagraph}}
461 \newcommand{\@chapapp}{\prechaptername}
462 \newcommand{\@chappos}{\postchaptername}
463 \newcommand{\frontmatter}{%
465 \@mainmatterfalse\pagenumbering{roman}}
466 \newcommand{\mainmatter}{%
468 \@mainmattertrue\pagenumbering{arabic}}
469 \newcommand{\backmatter}{%
470 \if@openleft \cleardoublepage \else
471 \if@openright \cleardoublepage \else \clearpage \fi \fi
474 \if@openleft \cleardoublepage \else
475 \if@openright \cleardoublepage \else \clearpage \fi \fi
476 \thispagestyle{empty}%
477 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
479 \secdef\@part\@spart}
481 \ifnum \c@secnumdepth >-2\relax
482 \refstepcounter{part}%
483 \addcontentsline{toc}{part}{%
484 \prepartname\thepart\postpartname\hspace{1em}#1}%
486 \addcontentsline{toc}{part}{#1}%
490 \interlinepenalty\@M\normalfont
491 \ifnum \c@secnumdepth >-2\relax
492 \huge\bfseries\prepartname\thepart\postpartname
495 \Huge\bfseries#2\par}%
499 \interlinepenalty\@M\normalfont
500 \Huge\bfseries#1\par}%
502 \def\@endpart{\vfil\newpage
504 \if@openleft %% \if@openleft added (2017/02/15)
505 \null\thispagestyle{empty}\newpage
506 \else\if@openright %% \if@openright added (2016/12/18)
507 \null\thispagestyle{empty}\newpage
508 \fi\fi %% added (2016/12/18, 2017/02/15)
510 \if@tempswa\twocolumn\fi}
511 \newcommand{\chapter}{%
512 \if@openleft \cleardoublepage \else
513 \if@openright \cleardoublepage \else \clearpage \fi \fi
514 \thispagestyle{jpl@in}%
517 \secdef\@chapter\@schapter}
518 \def\@chapter[#1]#2{%
519 \ifnum \c@secnumdepth >\m@ne
521 \refstepcounter{chapter}%
522 \typeout{\@chapapp\space\thechapter\space\@chappos}%
523 \addcontentsline{toc}{chapter}%
524 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
525 \else\addcontentsline{toc}{chapter}{#1}\fi
527 \addcontentsline{toc}{chapter}{#1}%
530 \addtocontents{lof}{\protect\addvspace{10\p@}}%
531 \addtocontents{lot}{\protect\addvspace{10\p@}}%
532 \@makechapterhead{#2}\@afterheading}
533 \def\@makechapterhead#1{\hbox{}%
537 \normalfont\huge\bfseries
539 \ifnum \c@secnumdepth >\m@ne
540 \setlength\@tempdima{\linewidth}%
542 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
543 \addtolength\@tempdima{-\wd\z@}%
546 \vtop{\hsize\@tempdima#1}%
549 \fi}\nobreak\vskip3\Cvs}
551 \@makeschapterhead{#1}\@afterheading
553 \def\@makeschapterhead#1{\hbox{}%
557 \normalfont\huge\bfseries
559 \setlength\@tempdima{\linewidth}%
560 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
561 \newcommand{\section}{\@startsection{section}{1}{\z@}%
562 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
563 {.5\Cvs \@plus.3\Cvs}%
564 {\normalfont\Large\bfseries}}
565 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
566 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
567 {.5\Cvs \@plus.3\Cvs}%
568 {\normalfont\large\bfseries}}
569 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
570 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
571 {.5\Cvs \@plus.3\Cvs}%
572 {\normalfont\normalsize\bfseries}}
573 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
574 {3.25ex \@plus 1ex \@minus .2ex}%
576 {\normalfont\normalsize\bfseries}}
577 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
578 {3.25ex \@plus 1ex \@minus .2ex}%
580 {\normalfont\normalsize\bfseries}}
581 \newcommand{\appendix}{\par
582 \setcounter{chapter}{0}%
583 \setcounter{section}{0}%
584 \renewcommand{\@chapapp}{\appendixname}%
585 \renewcommand{\@chappos}\space%
586 \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
588 \setlength\leftmargini {2em}
590 \setlength\leftmargini {2.5em}
592 \setlength\leftmarginii {2.2em}
593 \setlength\leftmarginiii {1.87em}
594 \setlength\leftmarginiv {1.7em}
596 \setlength\leftmarginv {.5em}
597 \setlength\leftmarginvi{.5em}
599 \setlength\leftmarginv {1em}
600 \setlength\leftmarginvi{1em}
602 \setlength \labelsep {.5em}
603 \setlength \labelwidth{\leftmargini}
604 \addtolength\labelwidth{-\labelsep}
605 \@beginparpenalty -\@lowpenalty
606 \@endparpenalty -\@lowpenalty
607 \@itempenalty -\@lowpenalty
608 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
609 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
610 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
611 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
612 \newcommand{\labelenumi}{\theenumi}
613 \newcommand{\labelenumii}{\theenumii}
614 \newcommand{\labelenumiii}{\theenumiii}
615 \newcommand{\labelenumiv}{\theenumiv}
616 \renewcommand{\p@enumii}{\theenumi}
617 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
618 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
619 \renewenvironment{enumerate}
620 {\ifnum \@enumdepth >\thr@@\@toodeep\else
621 \advance\@enumdepth\@ne
622 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
623 \expandafter \list \csname label\@enumctr\endcsname{%
624 \ifnum\ltjgetparameter{direction}=3
625 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
627 \parskip\z@ \itemsep\z@ \parsep\z@
628 \labelwidth1\zw \labelsep.3\zw
629 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
630 \else\leftmargin\leftskip\fi
631 \advance\leftmargin 1\zw
633 \usecounter{\@enumctr}%
634 \def\makelabel##1{\hss\llap{##1}}}%
636 \newcommand{\labelitemi}{\textbullet}
637 \newcommand{\labelitemii}{%
638 \ifnum\ltjgetparameter{direction}=3
641 {\normalfont\bfseries\textendash}
644 \newcommand{\labelitemiii}{\textasteriskcentered}
645 \newcommand{\labelitemiv}{\textperiodcentered}
646 \renewenvironment{itemize}
647 {\ifnum \@itemdepth >\thr@@\@toodeep\else
648 \advance\@itemdepth\@ne
649 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
650 \expandafter \list \csname \@itemitem\endcsname{%
651 \ifnum\ltjgetparameter{direction}=3
652 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
654 \parskip\z@ \itemsep\z@ \parsep\z@
655 \labelwidth1\zw \labelsep.3\zw
656 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
657 \else\leftmargin\leftskip\fi
658 \advance\leftmargin 1\zw
660 \def\makelabel##1{\hss\llap{##1}}}%
662 \newenvironment{description}
663 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
664 \ifnum\ltjgetparameter{direction}=3
665 \leftmargin\leftskip \advance\leftmargin3\Cwd
666 \rightmargin\rightskip
667 \labelsep=1\zw \itemsep\z@
668 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
670 \let\makelabel\descriptionlabel}}{\endlist}
671 \newcommand{\descriptionlabel}[1]{%
672 \hspace\labelsep\normalfont\bfseries #1}
673 \newenvironment{verse}
675 \list{}{\itemsep\z@ \itemindent -1.5em%
676 \listparindent\itemindent
677 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
678 \item\relax}{\endlist}
679 \newenvironment{quotation}
680 {\list{}{\listparindent 1.5em%
681 \itemindent\listparindent
682 \rightmargin\leftmargin
683 \parsep\z@ \@plus\p@}%
684 \item\relax}{\endlist}
685 \newenvironment{quote}
686 {\list{}{\rightmargin\leftmargin}%
687 \item\relax}{\endlist}
688 \newcounter{figure}[chapter]
689 \renewcommand{\thefigure}{%
690 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
694 \def\fnum@figure{\figurename\thefigure}
695 \newenvironment{figure}
698 \newenvironment{figure*}
701 \newcounter{table}[chapter]
702 \renewcommand{\thetable}{%
703 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
707 \def\fnum@table{\tablename\thetable}
708 \newenvironment{table}
711 \newenvironment{table*}
714 \newlength\abovecaptionskip
715 \newlength\belowcaptionskip
716 \setlength\abovecaptionskip{10\p@}
717 \setlength\belowcaptionskip{0\p@}
718 \long\def\@makecaption#1#2{%
719 \vskip\abovecaptionskip
720 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
721 \else\sbox\@tempboxa{#1: #2}%
723 \ifdim \wd\@tempboxa >\hsize
724 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
725 \else #1: #2\relax\par\fi
727 \global \@minipagefalse
728 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
730 \vskip\belowcaptionskip}
731 \setlength\arraycolsep{5\p@}
732 \setlength\tabcolsep{6\p@}
733 \setlength\arrayrulewidth{.4\p@}
734 \setlength\doublerulesep{2\p@}
735 \setlength\tabbingsep{\labelsep}
736 \skip\@mpfootins = \skip\footins
737 \setlength\fboxsep{3\p@}
738 \setlength\fboxrule{.4\p@}
739 \@addtoreset{equation}{chapter}
740 \renewcommand{\theequation}{%
741 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
742 \unless\ifltj@disablejfam
743 \if@compatibility\else
744 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
745 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
746 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
748 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
752 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
753 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
757 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
758 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
759 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
760 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
761 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
762 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
763 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
764 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
765 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
766 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
767 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
768 \setcounter{tocdepth}{2}
769 \newcommand{\@pnumwidth}{1.55em}
770 \newcommand{\@tocrmarg}{2.55em}
771 \newcommand{\@dotsep}{4.5}
772 \newdimen\toclineskip
773 \setlength\toclineskip{2\p@}
775 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
776 \def\@dottedtocline#1#2#3#4#5{%
777 \ifnum #1>\c@tocdepth \else
778 \vskip\toclineskip \@plus.2\p@
779 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
780 \parindent #2\relax\@afterindenttrue
784 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
786 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
788 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
791 \providecommand*\protected@file@percent{}
792 \def\addcontentsline#1#2#3{%
793 \protected@write\@auxout
794 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
795 \@temptokena{\rensuji{\thepage}}}%
796 {\string\@writefile{#1}%
797 {\protect\contentsline{#2}{#3}{\the\@temptokena}%
798 \protected@file@percent}}%
800 \newcommand{\tableofcontents}{%
801 \if@twocolumn\@restonecoltrue\onecolumn
802 \else\@restonecolfalse\fi
803 \chapter*{\contentsname
804 \@mkboth{\contentsname}{\contentsname}%
806 \if@restonecol\twocolumn\fi
808 \newcommand*{\l@part}[2]{%
809 \ifnum \c@tocdepth >-2\relax
810 \addpenalty{-\@highpenalty}%
811 \addvspace{2.25em \@plus\p@}%
813 \parindent\z@\rightskip\@pnumwidth
814 \parfillskip-\@pnumwidth
815 {\leavevmode\large\bfseries
816 \setlength\@lnumwidth{4\zw}%
818 \hb@xt@\@pnumwidth{\hss#2}}\par
821 \everypar{\global\@nobreakfalse\everypar{}}%
824 \newcommand*{\l@chapter}[2]{%
825 \ifnum \c@tocdepth >\m@ne
826 \addpenalty{-\@highpenalty}%
827 \addvspace{1.0em \@plus\p@}%
829 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
831 \setlength\@lnumwidth{4\zw}%
832 \advance\leftskip\@lnumwidth \hskip-\leftskip
833 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
834 \penalty\@highpenalty
837 \newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
838 \newcommand*{\l@subsection} {\@dottedtocline{2}{2\zw}{6\zw}}
839 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
840 \newcommand*{\l@paragraph} {\@dottedtocline{4}{4\zw}{9\zw}}
841 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
842 \newcommand{\listoffigures}{%
843 \if@twocolumn\@restonecoltrue\onecolumn
844 \else\@restonecolfalse\fi
845 \chapter*{\listfigurename}%
846 \@mkboth{\listfigurename}{\listfigurename}%
848 \if@restonecol\twocolumn\fi
850 \newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
851 \newcommand{\listoftables}{%
852 \if@twocolumn\@restonecoltrue\onecolumn
853 \else\@restonecolfalse\fi
854 \chapter*{\listtablename}%
855 \@mkboth{\listtablename}{\listtablename}%
857 \if@restonecol\twocolumn\fi
859 \let\l@table\l@figure
861 \setlength\bibindent{1.5em}
862 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
863 \newenvironment{thebibliography}[1]
864 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
865 \list{\@biblabel{\@arabic\c@enumiv}}%
866 {\settowidth\labelwidth{\@biblabel{#1}}%
867 \leftmargin\labelwidth
868 \advance\leftmargin\labelsep
872 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
875 \@clubpenalty\clubpenalty
879 {\@latex@warning{Empty `thebibliography' environment}}%
881 \let\@openbib@code\@empty
882 \newenvironment{theindex}
883 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
884 \twocolumn[\@makeschapterhead{\indexname}]%
885 \@mkboth{\indexname}{\indexname}%
886 \thispagestyle{jpl@in}\parindent\z@
887 \parskip\z@ \@plus .3\p@\relax
888 \columnseprule\z@ \columnsep 35\p@
890 {\if@restonecol\onecolumn\else\clearpage\fi}
891 \newcommand{\@idxitem}{\par\hangindent 40\p@}
892 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
893 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
894 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
895 \renewcommand{\footnoterule}{%
897 \hrule\@width.4\columnwidth
899 \@addtoreset{footnote}{chapter}
900 \newcommand\@makefntext[1]{\parindent 1\zw
901 \noindent\hb@xt@ 2\zw{\hss\@makefnmark}#1}
905 \def\pltx@today@year@#1{%
906 \ifnum\numexpr\year-#1=1 元\else
907 \ifnum\ltjgetparameter{direction}=3 \kansuji\numexpr\year-#1\relax
908 \else \number\numexpr\year-#1\relax\nobreak\fi
911 \def\pltx@today@year{%
912 \ifnum\numexpr\year*10000+\month*100+\day<19890108
913 昭和\pltx@today@year@{1925}%
914 \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
915 平成\pltx@today@year@{1988}%
917 〓〓\pltx@today@year@{2018}%
921 \ifnum\ltjgetparameter{direction}=3 \kansuji\year
922 \else\number\year\nobreak\fi 年
926 \ifnum\ltjgetparameter{direction}=3
930 \number\month\nobreak 月
931 \number\day\nobreak 日
933 \newcommand{\prepartname}{第}
934 \newcommand{\postpartname}{部}
935 \newcommand{\prechaptername}{第}
936 \newcommand{\postchaptername}{章}
937 \newcommand{\contentsname}{目 次}
938 \newcommand{\listfigurename}{図 目 次}
939 \newcommand{\listtablename}{表 目 次}
940 \newcommand{\bibname}{関連図書}
941 \newcommand{\indexname}{索 引}
942 \newcommand{\figurename}{図}
943 \newcommand{\tablename}{表}
944 \newcommand{\appendixname}{付 録}
946 \pagenumbering{arabic}
948 \fnfixbottomtrue % 2017-02-19
949 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
958 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
959 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
962 %% End of file `ltjtbook.cls'.