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/01/17 v1.7c-ltj-12
27 Standard LuaLaTeX-ja class]
28 \RequirePackage{luatexja}
30 \newif\if@landscape \@landscapefalse
31 \newcommand{\@ptsize}{}
36 \newif\if@mainmatter \@mainmattertrue
37 \hour\time \divide\hour by 60\relax
38 \@tempcnta\hour \multiply\@tempcnta 60\relax
39 \minute\time \advance\minute-\@tempcnta
40 \newif\if@stysize \@stysizefalse
41 \newif\if@mathrmmc \@mathrmmcfalse
42 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
43 \setlength\paperheight {297mm}%
44 \setlength\paperwidth {210mm}}
45 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
46 \setlength\paperheight {210mm}
47 \setlength\paperwidth {148mm}}
48 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
49 \setlength\paperheight {364mm}
50 \setlength\paperwidth {257mm}}
51 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
52 \setlength\paperheight {257mm}
53 \setlength\paperwidth {182mm}}
54 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
55 \setlength\paperheight {297mm}%
56 \setlength\paperwidth {210mm}}
57 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
58 \setlength\paperheight {210mm}
59 \setlength\paperwidth {148mm}}
60 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
61 \setlength\paperheight {364mm}
62 \setlength\paperwidth {257mm}}
63 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
64 \setlength\paperheight {257mm}
65 \setlength\paperwidth {182mm}}
66 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
67 \setlength\paperheight {297mm}%
68 \setlength\paperwidth {210mm}}
69 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
70 \setlength\paperheight {210mm}
71 \setlength\paperwidth {148mm}}
72 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
73 \setlength\paperheight {364mm}
74 \setlength\paperwidth {257mm}}
75 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
76 \setlength\paperheight {257mm}
77 \setlength\paperwidth {182mm}}
79 \renewcommand{\@ptsize}{0}
81 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
83 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
84 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
85 \DeclareOption{landscape}{\@landscapetrue
86 \setlength\@tempdima{\paperheight}%
87 \setlength\paperheight{\paperwidth}%
88 \setlength\paperwidth{\@tempdima}}
89 \DeclareOption{tombow}{%
90 \tombowtrue \tombowdatetrue
91 \setlength{\@tombowwidth}{.1\p@}%
93 \jobname\space:\space\number\year/\number\month/\number\day
94 (\number\hour:\number\minute)}
96 \DeclareOption{tombo}{%
97 \tombowtrue \tombowdatefalse
98 \setlength{\@tombowwidth}{.1\p@}%
100 \DeclareOption{mentuke}{%
101 \tombowtrue \tombowdatefalse
102 \setlength{\@tombowwidth}{\z@}%
104 \DeclareOption{tate}{%
105 \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
107 \AtEndOfPackageFile{everyshi}{%
108 \def\@EveryShipout@Output{%
112 \@EveryShipout@AtNextHook
113 \global\setbox\luatexoutputbox=\box\luatexoutputbox
115 \gdef\@EveryShipout@AtNextHook{}%
116 \@EveryShipout@Org@Shipout\box\luatexoutputbox
118 \DeclareOption{oneside}{\@twosidefalse}
119 \DeclareOption{twoside}{\@twosidetrue}
120 \DeclareOption{onecolumn}{\@twocolumnfalse}
121 \DeclareOption{twocolumn}{\@twocolumntrue}
122 \DeclareOption{titlepage}{\@titlepagetrue}
123 \DeclareOption{notitlepage}{\@titlepagefalse}
127 \DeclareOption{openright}{\@openrighttrue}
128 \DeclareOption{openany}{\@openrightfalse}
130 \DeclareOption{leqno}{\input{leqno.clo}}
131 \DeclareOption{fleqn}{\input{fleqn.clo}}
132 \DeclareOption{openbib}{%
134 \renewcommand\@openbib@code{%
135 \advance\leftmargin\bibindent
136 \itemindent -\bibindent
137 \listparindent \itemindent
140 \renewcommand\newblock{\par}}}
144 \DeclareOption{disablejfam}{%
145 \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
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}
164 \setlength\columnsep{3\Cwd}
166 \setlength\columnsep{10\p@}
168 \setlength\columnseprule{0\p@}
170 \newlength{\stockwidth}
171 \newlength{\stockheight}
172 \setlength{\stockwidth}{\paperwidth}
173 \setlength{\stockheight}{\paperheight}
174 \advance \stockwidth 2in
175 \advance \stockheight 2in
176 \ifdefined\pdfpagewidth
177 \setlength{\pdfpagewidth}{\stockwidth}
178 \setlength{\pdfpageheight}{\stockheight}
180 \setlength{\pagewidth}{\stockwidth}
181 \setlength{\pageheight}{\stockheight}
184 \ifdefined\pdfpagewidth
185 \setlength{\pdfpagewidth}{\paperwidth}
186 \setlength{\pdfpageheight}{\paperheight}
188 \setlength{\pagewidth}{\paperwidth}
189 \setlength{\pageheight}{\paperheight}
192 \setlength\lineskip{1\p@}
193 \setlength\normallineskip{1\p@}
194 \renewcommand{\baselinestretch}{}
195 \setlength\parskip{0\p@ \@plus \p@}
196 \setlength\parindent{1\Cwd}
200 \setcounter{topnumber}{2}
201 \setcounter{bottomnumber}{1}
202 \setcounter{totalnumber}{3}
203 \setcounter{dbltopnumber}{2}
204 \renewcommand{\topfraction}{.7}
205 \renewcommand{\bottomfraction}{.3}
206 \renewcommand{\textfraction}{.2}
207 \renewcommand{\floatpagefraction}{.5}
208 \renewcommand{\dbltopfraction}{.7}
209 \renewcommand{\dblfloatpagefraction}{.5}
210 \def\ps@plain{\let\@mkboth\@gobbletwo
211 \let\ps@jpl@in\ps@plain
213 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
214 \let\@evenhead\@empty
215 \let\@evenfoot\@oddfoot}
216 \let\ps@jpl@in\ps@plain
217 \def\ps@headnombre{\let\@mkboth\@gobbletwo
218 \let\ps@jpl@in\ps@headnombre
219 \def\@evenhead{\hfil\thepage}%
220 \def\@oddhead{\thepage\hfil}%
221 \let\@oddfoot\@empty\let\@evenfoot\@empty}
222 \def\ps@footnombre{\let\@mkboth\@gobbletwo
223 \let\ps@jpl@in\ps@footnombre
224 \def\@evenfoot{\hfil\thepage}%
225 \def\@oddfoot{\thepage\hfil}%
226 \let\@oddhead\@empty\let\@evenhead\@empty}
228 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
229 \let\@oddfoot\@empty\let\@evenfoot\@empty
230 \def\@evenhead{{\leftmark}\hfil\thepage}%
231 \def\@oddhead{\thepage\hfil\rightmark}%
232 \let\@mkboth\markboth
233 \def\chaptermark##1{\markboth{%
234 \ifnum \c@secnumdepth >\m@ne
236 \@chapapp\thechapter\@chappos\hskip1\zw
240 \def\sectionmark##1{\markright{%
241 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
244 \else % if not twoside
245 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
247 \def\@oddhead{\thepage\hfil\rightmark}%
248 \let\@mkboth\markboth
249 \def\chaptermark##1{\markright{%
250 \ifnum \c@secnumdepth >\m@ne
252 \@chapapp\thechapter\@chappos\hskip1\zw
259 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
260 \def\@evenhead{\hfil\leftmark}% right page
261 \def\@evenfoot{\hfil\thepage}% right page
262 \def\@oddhead{\rightmark\hfil}% left page
263 \def\@oddfoot{\thepage\hfil}% left page
264 \let\@mkboth\markboth
265 \def\chaptermark##1{\markboth{%
266 \ifnum \c@secnumdepth >\m@ne
268 \@chapapp\thechapter\@chappos\hskip1\zw
272 \def\sectionmark##1{\markright{%
273 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
276 \else % if one column
277 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
278 \def\@oddhead{\rightmark\hfil}%
279 \def\@oddfoot{\thepage\hfil}%
280 \let\@mkboth\markboth
281 \def\chaptermark##1{\markright{%
282 \ifnum \c@secnumdepth >\m@ne
284 \@chapapp\thechapter\@chappos\hskip1\zw
290 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
291 \let\@oddfoot\@empty\let\@evenfoot\@empty
292 \def\@evenhead{{\leftmark}\hfil\thepage}%
293 \def\@oddhead{\thepage\hfil\rightmark}%
294 \let\@mkboth\@gobbletwo
295 \let\chaptermark\@gobble
296 \let\sectionmark\@gobble
299 \newenvironment{titlepage}
302 \if@twocolumn\@restonecoltrue\onecolumn
303 \else\@restonecolfalse\newpage\fi
304 \thispagestyle{empty}%
307 {\if@restonecol\twocolumn\else\newpage\fi
310 \newenvironment{titlepage}
314 \@restonecoltrue\onecolumn
316 \@restonecolfalse\newpage
318 \thispagestyle{empty}%
319 \setcounter{page}\@ne
321 {\if@restonecol\twocolumn \else \newpage \fi
323 \setcounter{page}\@ne
327 \def\p@thanks#1{\footnotemark
328 \protected@xdef\@thanks{\@thanks
329 \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
331 \newcommand{\maketitle}{\begin{titlepage}%
332 \let\footnotesize\small
333 \let\footnoterule\relax
336 \vbox to\textheight\bgroup\tate\hsize\textwidth
340 {\LARGE \@title \par}%
344 \begin{tabular}[t]{c}%
348 {\large \@date \par}% % Set date in \large size.
350 \vfil{\centering\@thanks}\vfil\null
353 \setcounter{footnote}{0}%
354 \global\let\thanks\relax
355 \global\let\maketitle\relax
356 \global\let\p@thanks\relax
357 \global\let\@thanks\@empty
358 \global\let\@author\@empty
359 \global\let\@date\@empty
360 \global\let\@title\@empty
361 \global\let\title\relax
362 \global\let\author\relax
363 \global\let\date\relax
364 \global\let\and\relax
367 \newcommand{\maketitle}{\par
369 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
370 \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
371 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
372 \long\def\@makefntext##1{\parindent 1\zw\noindent
373 \hb@xt@ 2\zw{\hss\@makefnmark}##1}%
375 \ifnum \col@number=\@ne \@maketitle
376 \else \twocolumn[\@maketitle]%
380 \global\@topnum\z@ % Prevents figures from going at top of page.
383 \thispagestyle{jpl@in}\@thanks
385 \setcounter{footnote}{0}%
386 \global\let\thanks\relax
387 \global\let\maketitle\relax
388 \global\let\@maketitle\relax
389 \global\let\p@thanks\relax
390 \global\let\@thanks\@empty
391 \global\let\@author\@empty
392 \global\let\@date\@empty
393 \global\let\@title\@empty
394 \global\let\title\relax
395 \global\let\author\relax
396 \global\let\date\relax
397 \global\let\and\relax
403 \let\footnote\p@thanks
404 {\LARGE \@title \par}%
408 \begin{tabular}[t]{c}%
416 \newcommand*{\chaptermark}[1]{}
417 \setcounter{secnumdepth}{2}
420 \newcounter{section}[chapter]
421 \newcounter{subsection}[section]
422 \newcounter{subsubsection}[subsection]
423 \newcounter{paragraph}[subsubsection]
424 \newcounter{subparagraph}[paragraph]
425 \renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
426 \renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
427 \renewcommand{\thesection}{\thechapter・\rensuji{\@arabic\c@section}}
428 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
429 \renewcommand{\thesubsubsection}{%
430 \thesubsection・\rensuji{\@arabic\c@subsubsection}}
431 \renewcommand{\theparagraph}{%
432 \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
433 \renewcommand{\thesubparagraph}{%
434 \theparagraph・\rensuji{\@arabic\c@subparagraph}}
435 \newcommand{\@chapapp}{\prechaptername}
436 \newcommand{\@chappos}{\postchaptername}
437 \newcommand{\frontmatter}{%
438 \if@openright \cleardoublepage \else \clearpage \fi
439 \@mainmatterfalse\pagenumbering{roman}}
440 \newcommand{\mainmatter}{%
441 \if@openright \cleardoublepage \else \clearpage \fi
442 \@mainmattertrue\pagenumbering{arabic}}
443 \newcommand{\backmatter}{%
444 \if@openright \cleardoublepage \else \clearpage \fi
447 \if@openright \cleardoublepage \else \clearpage \fi
448 \thispagestyle{empty}%
449 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
451 \secdef\@part\@spart}
453 \ifnum \c@secnumdepth >-2\relax
454 \refstepcounter{part}%
455 \addcontentsline{toc}{part}{%
456 \prepartname\thepart\postpartname\hspace{1em}#1}%
458 \addcontentsline{toc}{part}{#1}%
462 \interlinepenalty\@M\normalfont
463 \ifnum \c@secnumdepth >-2\relax
464 \huge\bfseries\prepartname\thepart\postpartname
467 \Huge\bfseries#2\par}%
471 \interlinepenalty\@M\normalfont
472 \Huge\bfseries#1\par}%
474 \def\@endpart{\vfil\newpage
476 \if@openright %% added (2016/12/18)
477 \null\thispagestyle{empty}\newpage
478 \fi %% added (2016/12/18)
480 \if@tempswa\twocolumn\fi}
481 \newcommand{\chapter}{%
482 \if@openright\cleardoublepage\else\clearpage\fi
483 \thispagestyle{jpl@in}%
486 \secdef\@chapter\@schapter}
487 \def\@chapter[#1]#2{%
488 \ifnum \c@secnumdepth >\m@ne
490 \refstepcounter{chapter}%
491 \typeout{\@chapapp\space\thechapter\space\@chappos}%
492 \addcontentsline{toc}{chapter}%
493 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
494 \else\addcontentsline{toc}{chapter}{#1}\fi
496 \addcontentsline{toc}{chapter}{#1}%
499 \addtocontents{lof}{\protect\addvspace{10\p@}}%
500 \addtocontents{lot}{\protect\addvspace{10\p@}}%
501 \@makechapterhead{#2}\@afterheading}
502 \def\@makechapterhead#1{\hbox{}%
506 \normalfont\huge\bfseries
508 \ifnum \c@secnumdepth >\m@ne
509 \setlength\@tempdima{\linewidth}%
511 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
512 \addtolength\@tempdima{-\wd\z@}%
515 \vtop{\hsize\@tempdima#1}%
518 \fi}\nobreak\vskip3\Cvs}
520 \@makeschapterhead{#1}\@afterheading
522 \def\@makeschapterhead#1{\hbox{}%
526 \normalfont\huge\bfseries
528 \setlength\@tempdima{\linewidth}%
529 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
530 \newcommand{\section}{\@startsection{section}{1}{\z@}%
531 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
532 {.5\Cvs \@plus.3\Cvs}%
533 {\normalfont\Large\bfseries}}
534 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
535 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
536 {.5\Cvs \@plus.3\Cvs}%
537 {\normalfont\large\bfseries}}
538 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
539 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
540 {.5\Cvs \@plus.3\Cvs}%
541 {\normalfont\normalsize\bfseries}}
542 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
543 {3.25ex \@plus 1ex \@minus .2ex}%
545 {\normalfont\normalsize\bfseries}}
546 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
547 {3.25ex \@plus 1ex \@minus .2ex}%
549 {\normalfont\normalsize\bfseries}}
550 \newcommand{\appendix}{\par
551 \setcounter{chapter}{0}%
552 \setcounter{section}{0}%
553 \renewcommand{\@chapapp}{\appendixname}%
554 \renewcommand{\@chappos}\space%
555 \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
557 \setlength\leftmargini {2em}
559 \setlength\leftmargini {2.5em}
561 \setlength\leftmarginii {2.2em}
562 \setlength\leftmarginiii {1.87em}
563 \setlength\leftmarginiv {1.7em}
565 \setlength\leftmarginv {.5em}
566 \setlength\leftmarginvi{.5em}
568 \setlength\leftmarginv {1em}
569 \setlength\leftmarginvi{1em}
571 \setlength \labelsep {.5em}
572 \setlength \labelwidth{\leftmargini}
573 \addtolength\labelwidth{-\labelsep}
574 \@beginparpenalty -\@lowpenalty
575 \@endparpenalty -\@lowpenalty
576 \@itempenalty -\@lowpenalty
577 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
578 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
579 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
580 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
581 \newcommand{\labelenumi}{\theenumi}
582 \newcommand{\labelenumii}{\theenumii}
583 \newcommand{\labelenumiii}{\theenumiii}
584 \newcommand{\labelenumiv}{\theenumiv}
585 \renewcommand{\p@enumii}{\theenumi}
586 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
587 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
588 \renewenvironment{enumerate}
589 {\ifnum \@enumdepth >\thr@@\@toodeep\else
590 \advance\@enumdepth\@ne
591 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
592 \expandafter \list \csname label\@enumctr\endcsname{%
593 \ifnum\ltjgetparameter{direction}=3
594 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
596 \parskip\z@ \itemsep\z@ \parsep\z@
597 \labelwidth1\zw \labelsep.3\zw
598 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
599 \else\leftmargin\leftskip\fi
600 \advance\leftmargin 1\zw
602 \usecounter{\@enumctr}%
603 \def\makelabel##1{\hss\llap{##1}}}%
605 \newcommand{\labelitemi}{\textbullet}
606 \newcommand{\labelitemii}{%
607 \ifnum\ltjgetparameter{direction}=3
610 {\normalfont\bfseries\textendash}
613 \newcommand{\labelitemiii}{\textasteriskcentered}
614 \newcommand{\labelitemiv}{\textperiodcentered}
615 \renewenvironment{itemize}
616 {\ifnum \@itemdepth >\thr@@\@toodeep\else
617 \advance\@itemdepth\@ne
618 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
619 \expandafter \list \csname \@itemitem\endcsname{%
620 \ifnum\ltjgetparameter{direction}=3
621 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
623 \parskip\z@ \itemsep\z@ \parsep\z@
624 \labelwidth1\zw \labelsep.3\zw
625 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
626 \else\leftmargin\leftskip\fi
627 \advance\leftmargin 1\zw
629 \def\makelabel##1{\hss\llap{##1}}}%
631 \newenvironment{description}
632 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
633 \ifnum\ltjgetparameter{direction}=3
634 \leftmargin\leftskip \advance\leftmargin3\Cwd
635 \rightmargin\rightskip
636 \labelsep=1\zw \itemsep\z@
637 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
639 \let\makelabel\descriptionlabel}}{\endlist}
640 \newcommand{\descriptionlabel}[1]{%
641 \hspace\labelsep\normalfont\bfseries #1}
642 \newenvironment{verse}
644 \list{}{\itemsep\z@ \itemindent -1.5em%
645 \listparindent\itemindent
646 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
647 \item\relax}{\endlist}
648 \newenvironment{quotation}
649 {\list{}{\listparindent 1.5em%
650 \itemindent\listparindent
651 \rightmargin\leftmargin
652 \parsep\z@ \@plus\p@}%
653 \item\relax}{\endlist}
654 \newenvironment{quote}
655 {\list{}{\rightmargin\leftmargin}%
656 \item\relax}{\endlist}
657 \newcounter{figure}[chapter]
658 \renewcommand{\thefigure}{%
659 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
663 \def\fnum@figure{\figurename\thefigure}
664 \newenvironment{figure}
667 \newenvironment{figure*}
670 \newcounter{table}[chapter]
671 \renewcommand{\thetable}{%
672 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
676 \def\fnum@table{\tablename\thetable}
677 \newenvironment{table}
680 \newenvironment{table*}
683 \newlength\abovecaptionskip
684 \newlength\belowcaptionskip
685 \setlength\abovecaptionskip{10\p@}
686 \setlength\belowcaptionskip{0\p@}
687 \long\def\@makecaption#1#2{%
688 \vskip\abovecaptionskip
689 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
690 \else\sbox\@tempboxa{#1: #2}%
692 \ifdim \wd\@tempboxa >\hsize
693 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
694 \else #1: #2\relax\par\fi
696 \global \@minipagefalse
697 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
699 \vskip\belowcaptionskip}
700 \setlength\arraycolsep{5\p@}
701 \setlength\tabcolsep{6\p@}
702 \setlength\arrayrulewidth{.4\p@}
703 \setlength\doublerulesep{2\p@}
704 \setlength\tabbingsep{\labelsep}
705 \skip\@mpfootins = \skip\footins
706 \setlength\fboxsep{3\p@}
707 \setlength\fboxrule{.4\p@}
708 \@addtoreset{equation}{chapter}
709 \renewcommand{\theequation}{%
710 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
711 \if@compatibility\else
712 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
713 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
714 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
716 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
720 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
721 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
724 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
725 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
726 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
727 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
728 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
729 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
730 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
731 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
732 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
733 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
734 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
735 \setcounter{tocdepth}{2}
736 \newcommand{\@pnumwidth}{1.55em}
737 \newcommand{\@tocrmarg}{2.55em}
738 \newcommand{\@dotsep}{4.5}
739 \newdimen\toclineskip
740 \setlength\toclineskip{2\p@}
742 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
743 \def\@dottedtocline#1#2#3#4#5{%
744 \ifnum #1>\c@tocdepth \else
745 \vskip\toclineskip \@plus.2\p@
746 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
747 \parindent #2\relax\@afterindenttrue
751 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
753 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
755 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
758 \def\addcontentsline#1#2#3{%
759 \protected@write\@auxout
760 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
761 \@temptokena{\rensuji{\thepage}}}%
762 {\string\@writefile{#1}%
763 {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
765 \newcommand{\tableofcontents}{%
766 \if@twocolumn\@restonecoltrue\onecolumn
767 \else\@restonecolfalse\fi
768 \chapter*{\contentsname
769 \@mkboth{\contentsname}{\contentsname}%
771 \if@restonecol\twocolumn\fi
773 \newcommand*{\l@part}[2]{%
774 \ifnum \c@tocdepth >-2\relax
775 \addpenalty{-\@highpenalty}%
776 \addvspace{2.25em \@plus\p@}%
778 \parindent\z@\rightskip\@pnumwidth
779 \parfillskip-\@pnumwidth
780 {\leavevmode\large\bfseries
781 \setlength\@lnumwidth{4\zw}%
783 \hb@xt@\@pnumwidth{\hss#2}}\par
786 \everypar{\global\@nobreakfalse\everypar{}}%
789 \newcommand*{\l@chapter}[2]{%
790 \ifnum \c@tocdepth >\m@ne
791 \addpenalty{-\@highpenalty}%
792 \addvspace{1.0em \@plus\p@}%
794 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
796 \setlength\@lnumwidth{4\zw}%
797 \advance\leftskip\@lnumwidth \hskip-\leftskip
798 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
799 \penalty\@highpenalty
802 \newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
803 \newcommand*{\l@subsection} {\@dottedtocline{2}{2\zw}{6\zw}}
804 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
805 \newcommand*{\l@paragraph} {\@dottedtocline{4}{4\zw}{9\zw}}
806 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
807 \newcommand{\listoffigures}{%
808 \if@twocolumn\@restonecoltrue\onecolumn
809 \else\@restonecolfalse\fi
810 \chapter*{\listfigurename}%
811 \@mkboth{\listfigurename}{\listfigurename}%
813 \if@restonecol\twocolumn\fi
815 \newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
816 \newcommand{\listoftables}{%
817 \if@twocolumn\@restonecoltrue\onecolumn
818 \else\@restonecolfalse\fi
819 \chapter*{\listtablename}%
820 \@mkboth{\listtablename}{\listtablename}%
822 \if@restonecol\twocolumn\fi
824 \let\l@table\l@figure
826 \setlength\bibindent{1.5em}
827 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
828 \newenvironment{thebibliography}[1]
829 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
830 \list{\@biblabel{\@arabic\c@enumiv}}%
831 {\settowidth\labelwidth{\@biblabel{#1}}%
832 \leftmargin\labelwidth
833 \advance\leftmargin\labelsep
837 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
840 \@clubpenalty\clubpenalty
844 {\@latex@warning{Empty `thebibliography' environment}}%
846 \let\@openbib@code\@empty
847 \newenvironment{theindex}
848 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
849 \twocolumn[\@makeschapterhead{\indexname}]%
850 \@mkboth{\indexname}{\indexname}%
851 \thispagestyle{jpl@in}\parindent\z@
852 \parskip\z@ \@plus .3\p@\relax
853 \columnseprule\z@ \columnsep 35\p@
855 {\if@restonecol\onecolumn\else\clearpage\fi}
856 \newcommand{\@idxitem}{\par\hangindent 40\p@}
857 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
858 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
859 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
860 \renewcommand{\footnoterule}{%
862 \hrule\@width.4\columnwidth
864 \@addtoreset{footnote}{chapter}
865 \newcommand\@makefntext[1]{\parindent 1\zw
866 \noindent\hb@xt@ 2\zw{\hss\@makefnmark}#1}
870 \newcount\heisei \heisei\year \advance\heisei-1988\relax
872 \ifnum\ltjgetparameter{direction}=3
878 平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
888 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
893 \newcommand{\prepartname}{第}
894 \newcommand{\postpartname}{部}
895 \newcommand{\prechaptername}{第}
896 \newcommand{\postchaptername}{章}
897 \newcommand{\contentsname}{目 次}
898 \newcommand{\listfigurename}{図 目 次}
899 \newcommand{\listtablename}{表 目 次}
900 \newcommand{\bibname}{関連図書}
901 \newcommand{\indexname}{索 引}
902 \newcommand{\figurename}{図}
903 \newcommand{\tablename}{表}
904 \newcommand{\appendixname}{付 録}
906 \pagenumbering{arabic}
918 %% End of file `ltjtbook.cls'.