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/02/20 v1.7d-ltj-14
27 Standard LuaLaTeX-ja class]
28 \RequirePackage{luatexja}
30 \newif\if@landscape \@landscapefalse
31 \newcommand{\@ptsize}{}
37 \newif\if@mainmatter \@mainmattertrue
38 \hour\time \divide\hour by 60\relax
39 \@tempcnta\hour \multiply\@tempcnta 60\relax
40 \minute\time \advance\minute-\@tempcnta
41 \newif\if@stysize \@stysizefalse
42 \newif\if@mathrmmc \@mathrmmcfalse
43 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
44 \setlength\paperheight {297mm}%
45 \setlength\paperwidth {210mm}}
46 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
47 \setlength\paperheight {210mm}
48 \setlength\paperwidth {148mm}}
49 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
50 \setlength\paperheight {364mm}
51 \setlength\paperwidth {257mm}}
52 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
53 \setlength\paperheight {257mm}
54 \setlength\paperwidth {182mm}}
55 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
56 \setlength\paperheight {297mm}%
57 \setlength\paperwidth {210mm}}
58 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
59 \setlength\paperheight {210mm}
60 \setlength\paperwidth {148mm}}
61 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
62 \setlength\paperheight {364mm}
63 \setlength\paperwidth {257mm}}
64 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
65 \setlength\paperheight {257mm}
66 \setlength\paperwidth {182mm}}
67 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
68 \setlength\paperheight {297mm}%
69 \setlength\paperwidth {210mm}}
70 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
71 \setlength\paperheight {210mm}
72 \setlength\paperwidth {148mm}}
73 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
74 \setlength\paperheight {364mm}
75 \setlength\paperwidth {257mm}}
76 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
77 \setlength\paperheight {257mm}
78 \setlength\paperwidth {182mm}}
80 \renewcommand{\@ptsize}{0}
82 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
84 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
85 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
86 \DeclareOption{landscape}{\@landscapetrue
87 \setlength\@tempdima{\paperheight}%
88 \setlength\paperheight{\paperwidth}%
89 \setlength\paperwidth{\@tempdima}}
90 \DeclareOption{tombow}{%
91 \tombowtrue \tombowdatetrue
92 \setlength{\@tombowwidth}{.1\p@}%
94 \jobname\space:\space\number\year/\number\month/\number\day
95 (\number\hour:\number\minute)}
97 \DeclareOption{tombo}{%
98 \tombowtrue \tombowdatefalse
99 \setlength{\@tombowwidth}{.1\p@}%
101 \DeclareOption{mentuke}{%
102 \tombowtrue \tombowdatefalse
103 \setlength{\@tombowwidth}{\z@}%
105 \DeclareOption{tate}{%
106 \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
108 \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\dimexpr\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\dimexpr\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}{%
465 \if@openleft \cleardoublepage \else
466 \if@openright \cleardoublepage \else \clearpage \fi \fi
467 \@mainmatterfalse\pagenumbering{roman}}
468 \newcommand{\mainmatter}{%
469 \if@openleft \cleardoublepage \else
470 \if@openright \cleardoublepage \else \clearpage \fi \fi
471 \@mainmattertrue\pagenumbering{arabic}}
472 \newcommand{\backmatter}{%
473 \if@openleft \cleardoublepage \else
474 \if@openright \cleardoublepage \else \clearpage \fi \fi
477 \if@openleft \cleardoublepage \else
478 \if@openright \cleardoublepage \else \clearpage \fi \fi
479 \thispagestyle{empty}%
480 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
482 \secdef\@part\@spart}
484 \ifnum \c@secnumdepth >-2\relax
485 \refstepcounter{part}%
486 \addcontentsline{toc}{part}{%
487 \prepartname\thepart\postpartname\hspace{1em}#1}%
489 \addcontentsline{toc}{part}{#1}%
493 \interlinepenalty\@M\normalfont
494 \ifnum \c@secnumdepth >-2\relax
495 \huge\bfseries\prepartname\thepart\postpartname
498 \Huge\bfseries#2\par}%
502 \interlinepenalty\@M\normalfont
503 \Huge\bfseries#1\par}%
505 \def\@endpart{\vfil\newpage
507 \if@openleft %% \if@openleft added (2017/02/15)
508 \null\thispagestyle{empty}\newpage
509 \else\if@openright %% \if@openright added (2016/12/18)
510 \null\thispagestyle{empty}\newpage
511 \fi\fi %% added (2016/12/18, 2017/02/15)
513 \if@tempswa\twocolumn\fi}
514 \newcommand{\chapter}{%
515 \if@openleft \cleardoublepage \else
516 \if@openright \cleardoublepage \else \clearpage \fi \fi
517 \thispagestyle{jpl@in}%
520 \secdef\@chapter\@schapter}
521 \def\@chapter[#1]#2{%
522 \ifnum \c@secnumdepth >\m@ne
524 \refstepcounter{chapter}%
525 \typeout{\@chapapp\space\thechapter\space\@chappos}%
526 \addcontentsline{toc}{chapter}%
527 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
528 \else\addcontentsline{toc}{chapter}{#1}\fi
530 \addcontentsline{toc}{chapter}{#1}%
533 \addtocontents{lof}{\protect\addvspace{10\p@}}%
534 \addtocontents{lot}{\protect\addvspace{10\p@}}%
535 \@makechapterhead{#2}\@afterheading}
536 \def\@makechapterhead#1{\hbox{}%
540 \normalfont\huge\bfseries
542 \ifnum \c@secnumdepth >\m@ne
543 \setlength\@tempdima{\linewidth}%
545 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
546 \addtolength\@tempdima{-\wd\z@}%
549 \vtop{\hsize\@tempdima#1}%
552 \fi}\nobreak\vskip3\Cvs}
554 \@makeschapterhead{#1}\@afterheading
556 \def\@makeschapterhead#1{\hbox{}%
560 \normalfont\huge\bfseries
562 \setlength\@tempdima{\linewidth}%
563 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
564 \newcommand{\section}{\@startsection{section}{1}{\z@}%
565 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
566 {.5\Cvs \@plus.3\Cvs}%
567 {\normalfont\Large\bfseries}}
568 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
569 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
570 {.5\Cvs \@plus.3\Cvs}%
571 {\normalfont\large\bfseries}}
572 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
573 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
574 {.5\Cvs \@plus.3\Cvs}%
575 {\normalfont\normalsize\bfseries}}
576 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
577 {3.25ex \@plus 1ex \@minus .2ex}%
579 {\normalfont\normalsize\bfseries}}
580 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
581 {3.25ex \@plus 1ex \@minus .2ex}%
583 {\normalfont\normalsize\bfseries}}
584 \newcommand{\appendix}{\par
585 \setcounter{chapter}{0}%
586 \setcounter{section}{0}%
587 \renewcommand{\@chapapp}{\appendixname}%
588 \renewcommand{\@chappos}\space%
589 \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
591 \setlength\leftmargini {2em}
593 \setlength\leftmargini {2.5em}
595 \setlength\leftmarginii {2.2em}
596 \setlength\leftmarginiii {1.87em}
597 \setlength\leftmarginiv {1.7em}
599 \setlength\leftmarginv {.5em}
600 \setlength\leftmarginvi{.5em}
602 \setlength\leftmarginv {1em}
603 \setlength\leftmarginvi{1em}
605 \setlength \labelsep {.5em}
606 \setlength \labelwidth{\leftmargini}
607 \addtolength\labelwidth{-\labelsep}
608 \@beginparpenalty -\@lowpenalty
609 \@endparpenalty -\@lowpenalty
610 \@itempenalty -\@lowpenalty
611 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
612 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
613 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
614 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
615 \newcommand{\labelenumi}{\theenumi}
616 \newcommand{\labelenumii}{\theenumii}
617 \newcommand{\labelenumiii}{\theenumiii}
618 \newcommand{\labelenumiv}{\theenumiv}
619 \renewcommand{\p@enumii}{\theenumi}
620 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
621 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
622 \renewenvironment{enumerate}
623 {\ifnum \@enumdepth >\thr@@\@toodeep\else
624 \advance\@enumdepth\@ne
625 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
626 \expandafter \list \csname label\@enumctr\endcsname{%
627 \ifnum\ltjgetparameter{direction}=3
628 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
630 \parskip\z@ \itemsep\z@ \parsep\z@
631 \labelwidth1\zw \labelsep.3\zw
632 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
633 \else\leftmargin\leftskip\fi
634 \advance\leftmargin 1\zw
636 \usecounter{\@enumctr}%
637 \def\makelabel##1{\hss\llap{##1}}}%
639 \newcommand{\labelitemi}{\textbullet}
640 \newcommand{\labelitemii}{%
641 \ifnum\ltjgetparameter{direction}=3
644 {\normalfont\bfseries\textendash}
647 \newcommand{\labelitemiii}{\textasteriskcentered}
648 \newcommand{\labelitemiv}{\textperiodcentered}
649 \renewenvironment{itemize}
650 {\ifnum \@itemdepth >\thr@@\@toodeep\else
651 \advance\@itemdepth\@ne
652 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
653 \expandafter \list \csname \@itemitem\endcsname{%
654 \ifnum\ltjgetparameter{direction}=3
655 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
657 \parskip\z@ \itemsep\z@ \parsep\z@
658 \labelwidth1\zw \labelsep.3\zw
659 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
660 \else\leftmargin\leftskip\fi
661 \advance\leftmargin 1\zw
663 \def\makelabel##1{\hss\llap{##1}}}%
665 \newenvironment{description}
666 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
667 \ifnum\ltjgetparameter{direction}=3
668 \leftmargin\leftskip \advance\leftmargin3\Cwd
669 \rightmargin\rightskip
670 \labelsep=1\zw \itemsep\z@
671 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
673 \let\makelabel\descriptionlabel}}{\endlist}
674 \newcommand{\descriptionlabel}[1]{%
675 \hspace\labelsep\normalfont\bfseries #1}
676 \newenvironment{verse}
678 \list{}{\itemsep\z@ \itemindent -1.5em%
679 \listparindent\itemindent
680 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
681 \item\relax}{\endlist}
682 \newenvironment{quotation}
683 {\list{}{\listparindent 1.5em%
684 \itemindent\listparindent
685 \rightmargin\leftmargin
686 \parsep\z@ \@plus\p@}%
687 \item\relax}{\endlist}
688 \newenvironment{quote}
689 {\list{}{\rightmargin\leftmargin}%
690 \item\relax}{\endlist}
691 \newcounter{figure}[chapter]
692 \renewcommand{\thefigure}{%
693 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
697 \def\fnum@figure{\figurename\thefigure}
698 \newenvironment{figure}
701 \newenvironment{figure*}
704 \newcounter{table}[chapter]
705 \renewcommand{\thetable}{%
706 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
710 \def\fnum@table{\tablename\thetable}
711 \newenvironment{table}
714 \newenvironment{table*}
717 \newlength\abovecaptionskip
718 \newlength\belowcaptionskip
719 \setlength\abovecaptionskip{10\p@}
720 \setlength\belowcaptionskip{0\p@}
721 \long\def\@makecaption#1#2{%
722 \vskip\abovecaptionskip
723 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
724 \else\sbox\@tempboxa{#1: #2}%
726 \ifdim \wd\@tempboxa >\hsize
727 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
728 \else #1: #2\relax\par\fi
730 \global \@minipagefalse
731 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
733 \vskip\belowcaptionskip}
734 \setlength\arraycolsep{5\p@}
735 \setlength\tabcolsep{6\p@}
736 \setlength\arrayrulewidth{.4\p@}
737 \setlength\doublerulesep{2\p@}
738 \setlength\tabbingsep{\labelsep}
739 \skip\@mpfootins = \skip\footins
740 \setlength\fboxsep{3\p@}
741 \setlength\fboxrule{.4\p@}
742 \@addtoreset{equation}{chapter}
743 \renewcommand{\theequation}{%
744 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
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}
758 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
759 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
760 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
761 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
762 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
763 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
764 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
765 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
766 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
767 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
768 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
769 \setcounter{tocdepth}{2}
770 \newcommand{\@pnumwidth}{1.55em}
771 \newcommand{\@tocrmarg}{2.55em}
772 \newcommand{\@dotsep}{4.5}
773 \newdimen\toclineskip
774 \setlength\toclineskip{2\p@}
776 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
777 \def\@dottedtocline#1#2#3#4#5{%
778 \ifnum #1>\c@tocdepth \else
779 \vskip\toclineskip \@plus.2\p@
780 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
781 \parindent #2\relax\@afterindenttrue
785 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
787 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
789 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
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}}}%
799 \newcommand{\tableofcontents}{%
800 \if@twocolumn\@restonecoltrue\onecolumn
801 \else\@restonecolfalse\fi
802 \chapter*{\contentsname
803 \@mkboth{\contentsname}{\contentsname}%
805 \if@restonecol\twocolumn\fi
807 \newcommand*{\l@part}[2]{%
808 \ifnum \c@tocdepth >-2\relax
809 \addpenalty{-\@highpenalty}%
810 \addvspace{2.25em \@plus\p@}%
812 \parindent\z@\rightskip\@pnumwidth
813 \parfillskip-\@pnumwidth
814 {\leavevmode\large\bfseries
815 \setlength\@lnumwidth{4\zw}%
817 \hb@xt@\@pnumwidth{\hss#2}}\par
820 \everypar{\global\@nobreakfalse\everypar{}}%
823 \newcommand*{\l@chapter}[2]{%
824 \ifnum \c@tocdepth >\m@ne
825 \addpenalty{-\@highpenalty}%
826 \addvspace{1.0em \@plus\p@}%
828 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
830 \setlength\@lnumwidth{4\zw}%
831 \advance\leftskip\@lnumwidth \hskip-\leftskip
832 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
833 \penalty\@highpenalty
836 \newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
837 \newcommand*{\l@subsection} {\@dottedtocline{2}{2\zw}{6\zw}}
838 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
839 \newcommand*{\l@paragraph} {\@dottedtocline{4}{4\zw}{9\zw}}
840 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
841 \newcommand{\listoffigures}{%
842 \if@twocolumn\@restonecoltrue\onecolumn
843 \else\@restonecolfalse\fi
844 \chapter*{\listfigurename}%
845 \@mkboth{\listfigurename}{\listfigurename}%
847 \if@restonecol\twocolumn\fi
849 \newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
850 \newcommand{\listoftables}{%
851 \if@twocolumn\@restonecoltrue\onecolumn
852 \else\@restonecolfalse\fi
853 \chapter*{\listtablename}%
854 \@mkboth{\listtablename}{\listtablename}%
856 \if@restonecol\twocolumn\fi
858 \let\l@table\l@figure
860 \setlength\bibindent{1.5em}
861 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
862 \newenvironment{thebibliography}[1]
863 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
864 \list{\@biblabel{\@arabic\c@enumiv}}%
865 {\settowidth\labelwidth{\@biblabel{#1}}%
866 \leftmargin\labelwidth
867 \advance\leftmargin\labelsep
871 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
874 \@clubpenalty\clubpenalty
878 {\@latex@warning{Empty `thebibliography' environment}}%
880 \let\@openbib@code\@empty
881 \newenvironment{theindex}
882 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
883 \twocolumn[\@makeschapterhead{\indexname}]%
884 \@mkboth{\indexname}{\indexname}%
885 \thispagestyle{jpl@in}\parindent\z@
886 \parskip\z@ \@plus .3\p@\relax
887 \columnseprule\z@ \columnsep 35\p@
889 {\if@restonecol\onecolumn\else\clearpage\fi}
890 \newcommand{\@idxitem}{\par\hangindent 40\p@}
891 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
892 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
893 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
894 \renewcommand{\footnoterule}{%
896 \hrule\@width.4\columnwidth
898 \@addtoreset{footnote}{chapter}
899 \newcommand\@makefntext[1]{\parindent 1\zw
900 \noindent\hb@xt@ 2\zw{\hss\@makefnmark}#1}
904 \newcount\heisei \heisei\year \advance\heisei-1988\relax
906 \ifnum\ltjgetparameter{direction}=3
912 平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
922 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
927 \newcommand{\prepartname}{第}
928 \newcommand{\postpartname}{部}
929 \newcommand{\prechaptername}{第}
930 \newcommand{\postchaptername}{章}
931 \newcommand{\contentsname}{目 次}
932 \newcommand{\listfigurename}{図 目 次}
933 \newcommand{\listtablename}{表 目 次}
934 \newcommand{\bibname}{関連図書}
935 \newcommand{\indexname}{索 引}
936 \newcommand{\figurename}{図}
937 \newcommand{\tablename}{表}
938 \newcommand{\appendixname}{付 録}
940 \pagenumbering{arabic}
942 \fnfixbottomtrue % 2017-02-19
943 \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 `ltjtbook.cls'.