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 [2017/08/28 v1.7e-ltj-15
27 Standard LuaLaTeX-ja class]
28 \RequirePackage{luatexja}
30 \newif\if@landscape \@landscapefalse
31 \newcommand{\@ptsize}{}
37 \newif\if@mainmatter \@mainmattertrue
38 \hour\time \divide\hour by 60\relax
39 \@tempcnta\hour \multiply\@tempcnta 60\relax
40 \minute\time \advance\minute-\@tempcnta
41 \newif\if@stysize \@stysizefalse
42 \newif\if@mathrmmc \@mathrmmcfalse
43 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
44 \setlength\paperheight {297mm}%
45 \setlength\paperwidth {210mm}}
46 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
47 \setlength\paperheight {210mm}
48 \setlength\paperwidth {148mm}}
49 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
50 \setlength\paperheight {364mm}
51 \setlength\paperwidth {257mm}}
52 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
53 \setlength\paperheight {257mm}
54 \setlength\paperwidth {182mm}}
55 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
56 \setlength\paperheight {297mm}%
57 \setlength\paperwidth {210mm}}
58 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
59 \setlength\paperheight {210mm}
60 \setlength\paperwidth {148mm}}
61 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
62 \setlength\paperheight {364mm}
63 \setlength\paperwidth {257mm}}
64 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
65 \setlength\paperheight {257mm}
66 \setlength\paperwidth {182mm}}
67 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
68 \setlength\paperheight {297mm}%
69 \setlength\paperwidth {210mm}}
70 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
71 \setlength\paperheight {210mm}
72 \setlength\paperwidth {148mm}}
73 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
74 \setlength\paperheight {364mm}
75 \setlength\paperwidth {257mm}}
76 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
77 \setlength\paperheight {257mm}
78 \setlength\paperwidth {182mm}}
80 \renewcommand{\@ptsize}{0}
82 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
84 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
85 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
86 \DeclareOption{landscape}{\@landscapetrue
87 \setlength\@tempdima{\paperheight}%
88 \setlength\paperheight{\paperwidth}%
89 \setlength\paperwidth{\@tempdima}}
90 \DeclareOption{tombow}{%
91 \tombowtrue \tombowdatetrue
92 \setlength{\@tombowwidth}{.1\p@}%
94 \jobname\space(\number\year-\two@digits\month-\two@digits\day
95 \space\two@digits\hour:\two@digits\minute)}%
97 \DeclareOption{tombo}{%
98 \tombowtrue \tombowdatefalse
99 \setlength{\@tombowwidth}{.1\p@}%
101 \DeclareOption{mentuke}{%
102 \tombowtrue \tombowdatefalse
103 \setlength{\@tombowwidth}{\z@}%
105 \DeclareOption{tate}{%
106 \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
108 \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{disablejfam}{%
147 \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
148 \DeclareOption{mathrmmc}{\@mathrmmctrue}
150 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
151 \DeclareOption{final}{\setlength\overfullrule{0pt}}
152 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
153 function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
154 'ltj.jclasses_load_jfm', 1)}
155 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
156 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
157 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
158 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
159 \ltjglobalsetparameter{differentjfm=both}
160 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
161 \ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright,tate}
162 \ProcessOptions\relax
163 \input{ltjtbk1\@ptsize.clo}
164 \RequirePackage{lltjext}
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}{\textbullet}
638 \newcommand{\labelitemii}{%
639 \ifnum\ltjgetparameter{direction}=3
642 {\normalfont\bfseries\textendash}
645 \newcommand{\labelitemiii}{\textasteriskcentered}
646 \newcommand{\labelitemiv}{\textperiodcentered}
647 \renewenvironment{itemize}
648 {\ifnum \@itemdepth >\thr@@\@toodeep\else
649 \advance\@itemdepth\@ne
650 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
651 \expandafter \list \csname \@itemitem\endcsname{%
652 \ifnum\ltjgetparameter{direction}=3
653 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
655 \parskip\z@ \itemsep\z@ \parsep\z@
656 \labelwidth1\zw \labelsep.3\zw
657 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
658 \else\leftmargin\leftskip\fi
659 \advance\leftmargin 1\zw
661 \def\makelabel##1{\hss\llap{##1}}}%
663 \newenvironment{description}
664 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
665 \ifnum\ltjgetparameter{direction}=3
666 \leftmargin\leftskip \advance\leftmargin3\Cwd
667 \rightmargin\rightskip
668 \labelsep=1\zw \itemsep\z@
669 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
671 \let\makelabel\descriptionlabel}}{\endlist}
672 \newcommand{\descriptionlabel}[1]{%
673 \hspace\labelsep\normalfont\bfseries #1}
674 \newenvironment{verse}
676 \list{}{\itemsep\z@ \itemindent -1.5em%
677 \listparindent\itemindent
678 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
679 \item\relax}{\endlist}
680 \newenvironment{quotation}
681 {\list{}{\listparindent 1.5em%
682 \itemindent\listparindent
683 \rightmargin\leftmargin
684 \parsep\z@ \@plus\p@}%
685 \item\relax}{\endlist}
686 \newenvironment{quote}
687 {\list{}{\rightmargin\leftmargin}%
688 \item\relax}{\endlist}
689 \newcounter{figure}[chapter]
690 \renewcommand{\thefigure}{%
691 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
695 \def\fnum@figure{\figurename\thefigure}
696 \newenvironment{figure}
699 \newenvironment{figure*}
702 \newcounter{table}[chapter]
703 \renewcommand{\thetable}{%
704 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
708 \def\fnum@table{\tablename\thetable}
709 \newenvironment{table}
712 \newenvironment{table*}
715 \newlength\abovecaptionskip
716 \newlength\belowcaptionskip
717 \setlength\abovecaptionskip{10\p@}
718 \setlength\belowcaptionskip{0\p@}
719 \long\def\@makecaption#1#2{%
720 \vskip\abovecaptionskip
721 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
722 \else\sbox\@tempboxa{#1: #2}%
724 \ifdim \wd\@tempboxa >\hsize
725 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
726 \else #1: #2\relax\par\fi
728 \global \@minipagefalse
729 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
731 \vskip\belowcaptionskip}
732 \setlength\arraycolsep{5\p@}
733 \setlength\tabcolsep{6\p@}
734 \setlength\arrayrulewidth{.4\p@}
735 \setlength\doublerulesep{2\p@}
736 \setlength\tabbingsep{\labelsep}
737 \skip\@mpfootins = \skip\footins
738 \setlength\fboxsep{3\p@}
739 \setlength\fboxrule{.4\p@}
740 \@addtoreset{equation}{chapter}
741 \renewcommand{\theequation}{%
742 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
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}
756 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
757 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
758 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
759 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
760 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
761 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
762 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
763 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
764 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
765 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
766 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
767 \setcounter{tocdepth}{2}
768 \newcommand{\@pnumwidth}{1.55em}
769 \newcommand{\@tocrmarg}{2.55em}
770 \newcommand{\@dotsep}{4.5}
771 \newdimen\toclineskip
772 \setlength\toclineskip{2\p@}
774 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
775 \def\@dottedtocline#1#2#3#4#5{%
776 \ifnum #1>\c@tocdepth \else
777 \vskip\toclineskip \@plus.2\p@
778 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
779 \parindent #2\relax\@afterindenttrue
783 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
785 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
787 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
790 \def\addcontentsline#1#2#3{%
791 \protected@write\@auxout
792 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
793 \@temptokena{\rensuji{\thepage}}}%
794 {\string\@writefile{#1}%
795 {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
797 \newcommand{\tableofcontents}{%
798 \if@twocolumn\@restonecoltrue\onecolumn
799 \else\@restonecolfalse\fi
800 \chapter*{\contentsname
801 \@mkboth{\contentsname}{\contentsname}%
803 \if@restonecol\twocolumn\fi
805 \newcommand*{\l@part}[2]{%
806 \ifnum \c@tocdepth >-2\relax
807 \addpenalty{-\@highpenalty}%
808 \addvspace{2.25em \@plus\p@}%
810 \parindent\z@\rightskip\@pnumwidth
811 \parfillskip-\@pnumwidth
812 {\leavevmode\large\bfseries
813 \setlength\@lnumwidth{4\zw}%
815 \hb@xt@\@pnumwidth{\hss#2}}\par
818 \everypar{\global\@nobreakfalse\everypar{}}%
821 \newcommand*{\l@chapter}[2]{%
822 \ifnum \c@tocdepth >\m@ne
823 \addpenalty{-\@highpenalty}%
824 \addvspace{1.0em \@plus\p@}%
826 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
828 \setlength\@lnumwidth{4\zw}%
829 \advance\leftskip\@lnumwidth \hskip-\leftskip
830 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
831 \penalty\@highpenalty
834 \newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
835 \newcommand*{\l@subsection} {\@dottedtocline{2}{2\zw}{6\zw}}
836 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
837 \newcommand*{\l@paragraph} {\@dottedtocline{4}{4\zw}{9\zw}}
838 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
839 \newcommand{\listoffigures}{%
840 \if@twocolumn\@restonecoltrue\onecolumn
841 \else\@restonecolfalse\fi
842 \chapter*{\listfigurename}%
843 \@mkboth{\listfigurename}{\listfigurename}%
845 \if@restonecol\twocolumn\fi
847 \newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
848 \newcommand{\listoftables}{%
849 \if@twocolumn\@restonecoltrue\onecolumn
850 \else\@restonecolfalse\fi
851 \chapter*{\listtablename}%
852 \@mkboth{\listtablename}{\listtablename}%
854 \if@restonecol\twocolumn\fi
856 \let\l@table\l@figure
858 \setlength\bibindent{1.5em}
859 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
860 \newenvironment{thebibliography}[1]
861 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
862 \list{\@biblabel{\@arabic\c@enumiv}}%
863 {\settowidth\labelwidth{\@biblabel{#1}}%
864 \leftmargin\labelwidth
865 \advance\leftmargin\labelsep
869 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
872 \@clubpenalty\clubpenalty
876 {\@latex@warning{Empty `thebibliography' environment}}%
878 \let\@openbib@code\@empty
879 \newenvironment{theindex}
880 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
881 \twocolumn[\@makeschapterhead{\indexname}]%
882 \@mkboth{\indexname}{\indexname}%
883 \thispagestyle{jpl@in}\parindent\z@
884 \parskip\z@ \@plus .3\p@\relax
885 \columnseprule\z@ \columnsep 35\p@
887 {\if@restonecol\onecolumn\else\clearpage\fi}
888 \newcommand{\@idxitem}{\par\hangindent 40\p@}
889 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
890 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
891 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
892 \renewcommand{\footnoterule}{%
894 \hrule\@width.4\columnwidth
896 \@addtoreset{footnote}{chapter}
897 \newcommand\@makefntext[1]{\parindent 1\zw
898 \noindent\hb@xt@ 2\zw{\hss\@makefnmark}#1}
902 \newcount\heisei \heisei\year \advance\heisei-1988\relax
904 \ifnum\ltjgetparameter{direction}=3
910 平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
920 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
925 \newcommand{\prepartname}{第}
926 \newcommand{\postpartname}{部}
927 \newcommand{\prechaptername}{第}
928 \newcommand{\postchaptername}{章}
929 \newcommand{\contentsname}{目 次}
930 \newcommand{\listfigurename}{図 目 次}
931 \newcommand{\listtablename}{表 目 次}
932 \newcommand{\bibname}{関連図書}
933 \newcommand{\indexname}{索 引}
934 \newcommand{\figurename}{図}
935 \newcommand{\tablename}{表}
936 \newcommand{\appendixname}{付 録}
938 \pagenumbering{arabic}
940 \fnfixbottomtrue % 2017-02-19
941 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
950 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
951 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
954 %% End of file `ltjtbook.cls'.