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
25 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
26 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
27 %% Digits \0\1\2\3\4\5\6\7\8\9
28 %% Exclamation \! Double quote \" Hash (number) \#
29 %% Dollar \$ Percent \% Ampersand \&
30 %% Acute accent \' Left paren \( Right paren \)
31 %% Asterisk \* Plus \+ Comma \,
32 %% Minus \- Point \. Solidus \/
33 %% Colon \: Semicolon \; Less than \<
34 %% Equals \= Greater than \> Question mark \?
35 %% Commercial at \@ Left bracket \[ Backslash \\
36 %% Right bracket \] Circumflex \^ Underscore \_
37 %% Grave accent \` Left brace \{ Vertical bar \|
38 %% Right brace \} Tilde \~}
40 \NeedsTeXFormat{LaTeX2e}
41 \ProvidesClass{ltjtbook}
42 [2015/01/01 v1.6-ltj-9
43 Standard LuaLaTeX-ja class]
44 \RequirePackage{luatexja}
46 \newif\if@landscape \@landscapefalse
47 \newcommand{\@ptsize}{}
52 \newif\if@mainmatter \@mainmattertrue
53 \hour\time \divide\hour by 60\relax
54 \@tempcnta\hour \multiply\@tempcnta 60\relax
55 \minute\time \advance\minute-\@tempcnta
56 \newif\if@stysize \@stysizefalse
57 \newif\if@mathrmmc \@mathrmmcfalse
58 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
59 \setlength\paperheight {297mm}%
60 \setlength\paperwidth {210mm}}
61 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
62 \setlength\paperheight {210mm}
63 \setlength\paperwidth {148mm}}
64 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
65 \setlength\paperheight {364mm}
66 \setlength\paperwidth {257mm}}
67 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
68 \setlength\paperheight {257mm}
69 \setlength\paperwidth {182mm}}
70 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
71 \setlength\paperheight {297mm}%
72 \setlength\paperwidth {210mm}}
73 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
74 \setlength\paperheight {210mm}
75 \setlength\paperwidth {148mm}}
76 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
77 \setlength\paperheight {364mm}
78 \setlength\paperwidth {257mm}}
79 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
80 \setlength\paperheight {257mm}
81 \setlength\paperwidth {182mm}}
82 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
83 \setlength\paperheight {297mm}%
84 \setlength\paperwidth {210mm}}
85 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
86 \setlength\paperheight {210mm}
87 \setlength\paperwidth {148mm}}
88 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
89 \setlength\paperheight {364mm}
90 \setlength\paperwidth {257mm}}
91 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
92 \setlength\paperheight {257mm}
93 \setlength\paperwidth {182mm}}
95 \renewcommand{\@ptsize}{0}
97 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
99 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
100 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
101 \DeclareOption{landscape}{\@landscapetrue
102 \setlength\@tempdima{\paperheight}%
103 \setlength\paperheight{\paperwidth}%
104 \setlength\paperwidth{\@tempdima}}
105 \DeclareOption{tombow}{%
106 \tombowtrue \tombowdatetrue
107 \setlength{\@tombowwidth}{.1\p@}%
109 \jobname\space:\space\number\year/\number\month/\number\day
110 (\number\hour:\number\minute)}
112 \DeclareOption{tombo}{%
113 \tombowtrue \tombowdatefalse
114 \setlength{\@tombowwidth}{.1\p@}%
116 \DeclareOption{mentuke}{%
117 \tombowtrue \tombowdatefalse
118 \setlength{\@tombowwidth}{\z@}%
120 \DeclareOption{tate}{%
121 \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
123 \AtEndOfPackageFile{everyshi}{%
124 \def\@EveryShipout@Output{%
128 \@EveryShipout@AtNextHook
129 \global\setbox\luatexoutputbox=\box\luatexoutputbox
131 \gdef\@EveryShipout@AtNextHook{}%
132 \@EveryShipout@Org@Shipout\box\luatexoutputbox
134 \DeclareOption{oneside}{\@twosidefalse}
135 \DeclareOption{twoside}{\@twosidetrue}
136 \DeclareOption{onecolumn}{\@twocolumnfalse}
137 \DeclareOption{twocolumn}{\@twocolumntrue}
138 \DeclareOption{titlepage}{\@titlepagetrue}
139 \DeclareOption{notitlepage}{\@titlepagefalse}
143 \DeclareOption{openright}{\@openrighttrue}
144 \DeclareOption{openany}{\@openrightfalse}
146 \DeclareOption{leqno}{\input{leqno.clo}}
147 \DeclareOption{fleqn}{\input{fleqn.clo}}
148 \DeclareOption{openbib}{%
150 \renewcommand\@openbib@code{%
151 \advance\leftmargin\bibindent
152 \itemindent -\bibindent
153 \listparindent \itemindent
156 \renewcommand\newblock{\par}}}
160 \DeclareOption{disablejfam}{%
161 \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
162 \DeclareOption{mathrmmc}{\@mathrmmctrue}
164 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
165 \DeclareOption{final}{\setlength\overfullrule{0pt}}
166 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
167 function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
168 'ltj.jclasses_load_jfm', 1)}
169 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
170 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
171 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
172 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
173 \ltjglobalsetparameter{differentjfm=both}
174 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
175 \ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright,tate}
176 \ProcessOptions\relax
177 \input{ltjtbk1\@ptsize.clo}
178 \RequirePackage{lltjext}
180 \setlength\columnsep{3\Cwd}
182 \setlength\columnsep{10\p@}
184 \setlength\columnseprule{0\p@}
185 \setlength{\@tempdima}{\paperwidth}
186 \setlength{\@tempdimb}{\paperheight}
188 \advance \@tempdima 2in
189 \advance \@tempdimb 2in
191 \setlength{\pdfpagewidth}{\@tempdima}
192 \setlength{\pdfpageheight}{\@tempdimb}
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\ps@plain{\let\@mkboth\@gobbletwo
212 \let\ps@jpl@in\ps@plain
214 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
215 \let\@evenhead\@empty
216 \let\@evenfoot\@oddfoot}
217 \let\ps@jpl@in\ps@plain
218 \def\ps@headnombre{\let\@mkboth\@gobbletwo
219 \let\ps@jpl@in\ps@headnombre
220 \def\@evenhead{\hfil\thepage}%
221 \def\@oddhead{\thepage\hfil}%
222 \let\@oddfoot\@empty\let\@evenfoot\@empty}
223 \def\ps@footnombre{\let\@mkboth\@gobbletwo
224 \let\ps@jpl@in\ps@footnombre
225 \def\@evenfoot{\hfil\thepage}%
226 \def\@oddfoot{\thepage\hfil}%
227 \let\@oddhead\@empty\let\@evenhead\@empty}
229 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
230 \let\@oddfoot\@empty\let\@evenfoot\@empty
231 \def\@evenhead{{\leftmark}\hfil\thepage}%
232 \def\@oddhead{\thepage\hfil\rightmark}%
233 \let\@mkboth\markboth
234 \def\chaptermark##1{\markboth{%
235 \ifnum \c@secnumdepth >\m@ne
237 \@chapapp\thechapter\@chappos\hskip1\zw
241 \def\sectionmark##1{\markright{%
242 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
245 \else % if not twoside
246 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
248 \def\@oddhead{\thepage\hfil\rightmark}%
249 \let\@mkboth\markboth
250 \def\chaptermark##1{\markright{%
251 \ifnum \c@secnumdepth >\m@ne
253 \@chapapp\thechapter\@chappos\hskip1\zw
260 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
261 \def\@evenhead{\hfil\leftmark}% right page
262 \def\@evenfoot{\hfil\thepage}% right page
263 \def\@oddhead{\rightmark\hfil}% left page
264 \def\@oddfoot{\thepage\hfil}% left page
265 \let\@mkboth\markboth
266 \def\chaptermark##1{\markboth{%
267 \ifnum \c@secnumdepth >\m@ne
269 \@chapapp\thechapter\@chappos\hskip1\zw
273 \def\sectionmark##1{\markright{%
274 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
277 \else % if one column
278 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
279 \def\@oddhead{\rightmark\hfil}%
280 \def\@oddfoot{\thepage\hfil}%
281 \let\@mkboth\markboth
282 \def\chaptermark##1{\markright{%
283 \ifnum \c@secnumdepth >\m@ne
285 \@chapapp\thechapter\@chappos\hskip1\zw
291 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
292 \let\@oddfoot\@empty\let\@evenfoot\@empty
293 \def\@evenhead{{\leftmark}\hfil\thepage}%
294 \def\@oddhead{\thepage\hfil\rightmark}%
295 \let\@mkboth\@gobbletwo
296 \let\chaptermark\@gobble
297 \let\sectionmark\@gobble
300 \newenvironment{titlepage}
303 \if@twocolumn\@restonecoltrue\onecolumn
304 \else\@restonecolfalse\newpage\fi
305 \thispagestyle{empty}%
308 {\if@restonecol\twocolumn\else\newpage\fi
311 \newenvironment{titlepage}
315 \@restonecoltrue\onecolumn
317 \@restonecolfalse\newpage
319 \thispagestyle{empty}%
320 \setcounter{page}\@ne
322 {\if@restonecol\twocolumn \else \newpage \fi
324 \setcounter{page}\@ne
328 \def\p@thanks#1{\footnotemark
329 \protected@xdef\@thanks{\@thanks
330 \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
332 \newcommand{\maketitle}{\begin{titlepage}%
333 \let\footnotesize\small
334 \let\footnoterule\relax
337 \vbox to\textheight\bgroup\tate\hsize\textwidth
341 {\LARGE \@title \par}%
345 \begin{tabular}[t]{c}%
349 {\large \@date \par}% % Set date in \large size.
351 \vfil{\centering\@thanks}\vfil\null
354 \setcounter{footnote}{0}%
355 \global\let\thanks\relax
356 \global\let\maketitle\relax
357 \global\let\p@thanks\relax
358 \global\let\@thanks\@empty
359 \global\let\@author\@empty
360 \global\let\@date\@empty
361 \global\let\@title\@empty
362 \global\let\title\relax
363 \global\let\author\relax
364 \global\let\date\relax
365 \global\let\and\relax
368 \newcommand{\maketitle}{\par
370 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
371 \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
372 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
373 \long\def\@makefntext##1{\parindent 1\zw\noindent
374 \hbox to 2\zw{\hss\@makefnmark}##1}%
376 \ifnum \col@number=\@ne \@maketitle
377 \else \twocolumn[\@maketitle]%
381 \global\@topnum\z@ % Prevents figures from going at top of page.
384 \thispagestyle{jpl@in}\@thanks
386 \setcounter{footnote}{0}%
387 \global\let\thanks\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\reset@font
463 \ifnum \c@secnumdepth >-2\relax
464 \huge\bfseries\prepartname\thepart\postpartname
467 \Huge\bfseries#2\par}%
471 \interlinepenalty\@M\reset@font
472 \Huge\bfseries#1\par}%
474 \def\@endpart{\vfil\newpage
475 \if@twoside\null\thispagestyle{empty}\newpage\fi
476 \if@tempswa\twocolumn\fi}
477 \newcommand{\chapter}{%
478 \if@openright\cleardoublepage\else\clearpage\fi
479 \thispagestyle{jpl@in}%
482 \secdef\@chapter\@schapter}
483 \def\@chapter[#1]#2{%
484 \ifnum \c@secnumdepth >\m@ne
486 \refstepcounter{chapter}%
487 \typeout{\@chapapp\space\thechapter\space\@chappos}%
488 \addcontentsline{toc}{chapter}%
489 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
490 \else\addcontentsline{toc}{chapter}{#1}\fi
492 \addcontentsline{toc}{chapter}{#1}%
495 \addtocontents{lof}{\protect\addvspace{10\p@}}%
496 \addtocontents{lot}{\protect\addvspace{10\p@}}%
497 \@makechapterhead{#2}\@afterheading}
498 \def\@makechapterhead#1{\hbox{}%
502 \reset@font\huge\bfseries
504 \ifnum \c@secnumdepth >\m@ne
505 \setlength\@tempdima{\linewidth}%
507 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
508 \addtolength\@tempdima{-\wd\z@}%
511 \vtop{\hsize\@tempdima#1}%
514 \fi}\nobreak\vskip3\Cvs}
516 \@makeschapterhead{#1}\@afterheading
518 \def\@makeschapterhead#1{\hbox{}%
522 \reset@font\huge\bfseries
524 \setlength\@tempdima{\linewidth}%
525 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
526 \newcommand{\section}{\@startsection{section}{1}{\z@}%
527 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
528 {.5\Cvs \@plus.3\Cvs}%
529 {\reset@font\Large\bfseries}}
530 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
531 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
532 {.5\Cvs \@plus.3\Cvs}%
533 {\reset@font\large\bfseries}}
534 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
535 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
536 {.5\Cvs \@plus.3\Cvs}%
537 {\reset@font\normalsize\bfseries}}
538 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
539 {3.25ex \@plus 1ex \@minus .2ex}%
541 {\reset@font\normalsize\bfseries}}
542 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
543 {3.25ex \@plus 1ex \@minus .2ex}%
545 {\reset@font\normalsize\bfseries}}
546 \newcommand{\appendix}{\par
547 \setcounter{chapter}{0}%
548 \setcounter{section}{0}%
549 \renewcommand{\@chapapp}{\appendixname}%
550 \renewcommand{\@chappos}\space%
551 \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
553 \setlength\leftmargini {2em}
555 \setlength\leftmargini {2.5em}
557 \setlength\leftmarginii {2.2em}
558 \setlength\leftmarginiii {1.87em}
559 \setlength\leftmarginiv {1.7em}
561 \setlength\leftmarginv {.5em}
562 \setlength\leftmarginvi{.5em}
564 \setlength\leftmarginv {1em}
565 \setlength\leftmarginvi{1em}
567 \setlength \labelsep {.5em}
568 \setlength \labelwidth{\leftmargini}
569 \addtolength\labelwidth{-\labelsep}
570 \@beginparpenalty -\@lowpenalty
571 \@endparpenalty -\@lowpenalty
572 \@itempenalty -\@lowpenalty
573 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
574 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
575 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
576 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
577 \newcommand{\labelenumi}{\theenumi}
578 \newcommand{\labelenumii}{\theenumii}
579 \newcommand{\labelenumiii}{\theenumiii}
580 \newcommand{\labelenumiv}{\theenumiv}
581 \renewcommand{\p@enumii}{\theenumi}
582 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
583 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
584 \renewenvironment{enumerate}
585 {\ifnum \@enumdepth >\thr@@\@toodeep\else
586 \advance\@enumdepth\@ne
587 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
588 \list{\csname label\@enumctr\endcsname}{%
589 \ifnum\ltjgetparameter{direction}=3
590 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
592 \parskip\z@ \itemsep\z@ \parsep\z@
593 \labelwidth1\zw \labelsep.3\zw
594 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
595 \else\leftmargin\leftskip\fi
596 \advance\leftmargin 1\zw
598 \usecounter{\@enumctr}%
599 \def\makelabel##1{\hss\llap{##1}}}%
601 \newcommand{\labelitemi}{\textbullet}
602 \newcommand{\labelitemii}{%
603 \ifnum\ltjgetparameter{direction}=3
606 {\normalfont\bfseries\textendash}
609 \newcommand{\labelitemiii}{\textasteriskcentered}
610 \newcommand{\labelitemiv}{\textperiodcentered}
611 \renewenvironment{itemize}
612 {\ifnum \@itemdepth >\thr@@\@toodeep\else
613 \advance\@itemdepth\@ne
614 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
616 \list{\csname \@itemitem\endcsname}{%
617 \ifnum\ltjgetparameter{direction}=3
618 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
620 \parskip\z@ \itemsep\z@ \parsep\z@
621 \labelwidth1\zw \labelsep.3\zw
622 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
623 \else\leftmargin\leftskip\fi
624 \advance\leftmargin 1\zw
626 \def\makelabel##1{\hss\llap{##1}}}%
628 \newenvironment{description}
629 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
630 \ifnum\ltjgetparameter{direction}=3
631 \leftmargin\leftskip \advance\leftmargin3\Cwd
632 \rightmargin\rightskip
633 \labelsep=1\zw \itemsep\z@
634 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
636 \let\makelabel\descriptionlabel}}{\endlist}
637 \newcommand{\descriptionlabel}[1]{%
638 \hspace\labelsep\normalfont\bfseries #1}
639 \newenvironment{verse}
641 \list{}{\itemsep\z@ \itemindent -1.5em%
642 \listparindent\itemindent
643 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
644 \item\relax}{\endlist}
645 \newenvironment{quotation}
646 {\list{}{\listparindent 1.5em%
647 \itemindent\listparindent
648 \rightmargin\leftmargin
649 \parsep\z@ \@plus\p@}%
650 \item\relax}{\endlist}
651 \newenvironment{quote}
652 {\list{}{\rightmargin\leftmargin}%
653 \item\relax}{\endlist}
654 \newcounter{figure}[chapter]
655 \renewcommand{\thefigure}{%
656 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
660 \def\fnum@figure{\figurename\thefigure}
661 \newenvironment{figure}
664 \newenvironment{figure*}
667 \newcounter{table}[chapter]
668 \renewcommand{\thetable}{%
669 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
673 \def\fnum@table{\tablename\thetable}
674 \newenvironment{table}
677 \newenvironment{table*}
680 \newlength\abovecaptionskip
681 \newlength\belowcaptionskip
682 \setlength\abovecaptionskip{10\p@}
683 \setlength\belowcaptionskip{0\p@}
684 \long\def\@makecaption#1#2{%
685 \vskip\abovecaptionskip
686 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
687 \else\sbox\@tempboxa{#1: #2}%
689 \ifdim \wd\@tempboxa >\hsize
690 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
691 \else #1: #2\relax\par\fi
693 \global \@minipagefalse
694 \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
696 \vskip\belowcaptionskip}
697 \setlength\arraycolsep{5\p@}
698 \setlength\tabcolsep{6\p@}
699 \setlength\arrayrulewidth{.4\p@}
700 \setlength\doublerulesep{2\p@}
701 \setlength\tabbingsep{\labelsep}
702 \skip\@mpfootins = \skip\footins
703 \setlength\fboxsep{3\p@}
704 \setlength\fboxrule{.4\p@}
705 \@addtoreset{equation}{chapter}
706 \renewcommand{\theequation}{%
707 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
708 \if@compatibility\else
709 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
710 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
711 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
713 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
717 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
718 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
721 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
722 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
723 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
724 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
725 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
726 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
727 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
728 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
729 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
730 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
731 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
732 \setcounter{tocdepth}{2}
733 \newcommand{\@pnumwidth}{1.55em}
734 \newcommand{\@tocrmarg}{2.55em}
735 \newcommand{\@dotsep}{4.5}
736 \newdimen\toclineskip
737 \setlength\toclineskip{2\p@}
739 \def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
740 \def\@dottedtocline#1#2#3#4#5{%
741 \ifnum #1>\c@tocdepth \else
742 \vskip\toclineskip \@plus.2\p@
743 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
744 \parindent #2\relax\@afterindenttrue
748 \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
750 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
752 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
755 \def\addcontentsline#1#2#3{%
756 \protected@write\@auxout
757 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
758 \@temptokena{\rensuji{\thepage}}}%
759 {\string\@writefile{#1}%
760 {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
762 \newcommand{\tableofcontents}{%
763 \if@twocolumn\@restonecoltrue\onecolumn
764 \else\@restonecolfalse\fi
765 \chapter*{\contentsname
766 \@mkboth{\contentsname}{\contentsname}%
768 \if@restonecol\twocolumn\fi
770 \newcommand*{\l@part}[2]{%
771 \ifnum \c@tocdepth >-2\relax
772 \addpenalty{-\@highpenalty}%
773 \addvspace{2.25em \@plus\p@}%
775 \parindent\z@\rightskip\@pnumwidth
776 \parfillskip-\@pnumwidth
777 {\leavevmode\large\bfseries
778 \setlength\@lnumwidth{4\zw}%
780 \hbox to\@pnumwidth{\hss#2}}\par
783 \everypar{\global\@nobreakfalse\everypar{}}%
786 \newcommand*{\l@chapter}[2]{%
787 \ifnum \c@tocdepth >\m@ne
788 \addpenalty{-\@highpenalty}%
789 \addvspace{1.0em \@plus\p@}%
791 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
793 \setlength\@lnumwidth{4\zw}%
794 \advance\leftskip\@lnumwidth \hskip-\leftskip
795 #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
796 \penalty\@highpenalty
799 \newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
800 \newcommand*{\l@subsection} {\@dottedtocline{2}{2\zw}{6\zw}}
801 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
802 \newcommand*{\l@paragraph} {\@dottedtocline{4}{4\zw}{9\zw}}
803 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
804 \newcommand{\listoffigures}{%
805 \if@twocolumn\@restonecoltrue\onecolumn
806 \else\@restonecolfalse\fi
807 \chapter*{\listfigurename
808 \@mkboth{\listfigurename}{\listfigurename}}%
810 \if@restonecol\twocolumn\fi
812 \newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
813 \newcommand{\listoftables}{%
814 \if@twocolumn\@restonecoltrue\onecolumn
815 \else\@restonecolfalse\fi
816 \chapter*{\listtablename
817 \@mkboth{\listtablename}{\listtablename}}%
819 \if@restonecol\twocolumn\fi
821 \let\l@table\l@figure
823 \setlength\bibindent{1.5em}
824 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
825 \newenvironment{thebibliography}[1]
826 {\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
827 \list{\@biblabel{\@arabic\c@enumiv}}%
828 {\settowidth\labelwidth{\@biblabel{#1}}%
829 \leftmargin\labelwidth
830 \advance\leftmargin\labelsep
834 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
837 \@clubpenalty\clubpenalty
841 {\@latex@warning{Empty `thebibliography' environment}}%
843 \let\@openbib@code\@empty
844 \newenvironment{theindex}
845 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
846 \columnseprule\z@ \columnsep 35\p@
847 \twocolumn[\@makeschapterhead{\indexname}]%
848 \@mkboth{\indexname}{\indexname}%
849 \thispagestyle{jpl@in}\parindent\z@
850 \parskip\z@ \@plus .3\p@\relax
852 {\if@restonecol\onecolumn\else\clearpage\fi}
853 \newcommand{\@idxitem}{\par\hangindent 40\p@}
854 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
855 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
856 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
857 \renewcommand{\footnoterule}{%
859 \hrule width .4\columnwidth
861 \@addtoreset{footnote}{chapter}
862 \newcommand\@makefntext[1]{\parindent 1\zw
863 \noindent\hbox to 2\zw{\hss\@makefnmark}#1}
867 \newcount\heisei \heisei\year \advance\heisei-1988\relax
869 \ifnum\ltjgetparameter{direction}=3
875 平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
885 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
890 \newcommand{\prepartname}{第}
891 \newcommand{\postpartname}{部}
892 \newcommand{\prechaptername}{第}
893 \newcommand{\postchaptername}{章}
894 \newcommand{\contentsname}{目 次}
895 \newcommand{\listfigurename}{図 目 次}
896 \newcommand{\listtablename}{表 目 次}
897 \newcommand{\bibname}{関連図書}
898 \newcommand{\indexname}{索 引}
899 \newcommand{\figurename}{図}
900 \newcommand{\tablename}{表}
901 \newcommand{\appendixname}{付 録}
903 \pagenumbering{arabic}
915 %% End of file `ltjtbook.cls'.