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 [2016/07/19 v1.6-ltj-11
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 \newlength{\stockwidth}
186 \newlength{\stockheight}
187 \setlength{\stockwidth}{\paperwidth}
188 \setlength{\stockheight}{\paperheight}
190 \advance \stockwidth 2in
191 \advance \stockheight 2in
193 \ifdefined\pdfpagewidth
194 \setlength{\pdfpagewidth}{\stockwidth}
195 \setlength{\pdfpageheight}{\stockheight}
197 \setlength{\pagewidth}{\stockwidth}
198 \setlength{\pageheight}{\stockheight}
200 \setlength\lineskip{1\p@}
201 \setlength\normallineskip{1\p@}
202 \renewcommand{\baselinestretch}{}
203 \setlength\parskip{0\p@ \@plus \p@}
204 \setlength\parindent{1\Cwd}
208 \setcounter{topnumber}{2}
209 \setcounter{bottomnumber}{1}
210 \setcounter{totalnumber}{3}
211 \setcounter{dbltopnumber}{2}
212 \renewcommand{\topfraction}{.7}
213 \renewcommand{\bottomfraction}{.3}
214 \renewcommand{\textfraction}{.2}
215 \renewcommand{\floatpagefraction}{.5}
216 \renewcommand{\dbltopfraction}{.7}
217 \renewcommand{\dblfloatpagefraction}{.5}
218 \def\ps@plain{\let\@mkboth\@gobbletwo
219 \let\ps@jpl@in\ps@plain
221 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
222 \let\@evenhead\@empty
223 \let\@evenfoot\@oddfoot}
224 \let\ps@jpl@in\ps@plain
225 \def\ps@headnombre{\let\@mkboth\@gobbletwo
226 \let\ps@jpl@in\ps@headnombre
227 \def\@evenhead{\hfil\thepage}%
228 \def\@oddhead{\thepage\hfil}%
229 \let\@oddfoot\@empty\let\@evenfoot\@empty}
230 \def\ps@footnombre{\let\@mkboth\@gobbletwo
231 \let\ps@jpl@in\ps@footnombre
232 \def\@evenfoot{\hfil\thepage}%
233 \def\@oddfoot{\thepage\hfil}%
234 \let\@oddhead\@empty\let\@evenhead\@empty}
236 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
237 \let\@oddfoot\@empty\let\@evenfoot\@empty
238 \def\@evenhead{{\leftmark}\hfil\thepage}%
239 \def\@oddhead{\thepage\hfil\rightmark}%
240 \let\@mkboth\markboth
241 \def\chaptermark##1{\markboth{%
242 \ifnum \c@secnumdepth >\m@ne
244 \@chapapp\thechapter\@chappos\hskip1\zw
248 \def\sectionmark##1{\markright{%
249 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
252 \else % if not twoside
253 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
255 \def\@oddhead{\thepage\hfil\rightmark}%
256 \let\@mkboth\markboth
257 \def\chaptermark##1{\markright{%
258 \ifnum \c@secnumdepth >\m@ne
260 \@chapapp\thechapter\@chappos\hskip1\zw
267 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
268 \def\@evenhead{\hfil\leftmark}% right page
269 \def\@evenfoot{\hfil\thepage}% right page
270 \def\@oddhead{\rightmark\hfil}% left page
271 \def\@oddfoot{\thepage\hfil}% left page
272 \let\@mkboth\markboth
273 \def\chaptermark##1{\markboth{%
274 \ifnum \c@secnumdepth >\m@ne
276 \@chapapp\thechapter\@chappos\hskip1\zw
280 \def\sectionmark##1{\markright{%
281 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
284 \else % if one column
285 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
286 \def\@oddhead{\rightmark\hfil}%
287 \def\@oddfoot{\thepage\hfil}%
288 \let\@mkboth\markboth
289 \def\chaptermark##1{\markright{%
290 \ifnum \c@secnumdepth >\m@ne
292 \@chapapp\thechapter\@chappos\hskip1\zw
298 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
299 \let\@oddfoot\@empty\let\@evenfoot\@empty
300 \def\@evenhead{{\leftmark}\hfil\thepage}%
301 \def\@oddhead{\thepage\hfil\rightmark}%
302 \let\@mkboth\@gobbletwo
303 \let\chaptermark\@gobble
304 \let\sectionmark\@gobble
307 \newenvironment{titlepage}
310 \if@twocolumn\@restonecoltrue\onecolumn
311 \else\@restonecolfalse\newpage\fi
312 \thispagestyle{empty}%
315 {\if@restonecol\twocolumn\else\newpage\fi
318 \newenvironment{titlepage}
322 \@restonecoltrue\onecolumn
324 \@restonecolfalse\newpage
326 \thispagestyle{empty}%
327 \setcounter{page}\@ne
329 {\if@restonecol\twocolumn \else \newpage \fi
331 \setcounter{page}\@ne
335 \def\p@thanks#1{\footnotemark
336 \protected@xdef\@thanks{\@thanks
337 \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
339 \newcommand{\maketitle}{\begin{titlepage}%
340 \let\footnotesize\small
341 \let\footnoterule\relax
344 \vbox to\textheight\bgroup\tate\hsize\textwidth
348 {\LARGE \@title \par}%
352 \begin{tabular}[t]{c}%
356 {\large \@date \par}% % Set date in \large size.
358 \vfil{\centering\@thanks}\vfil\null
361 \setcounter{footnote}{0}%
362 \global\let\thanks\relax
363 \global\let\maketitle\relax
364 \global\let\p@thanks\relax
365 \global\let\@thanks\@empty
366 \global\let\@author\@empty
367 \global\let\@date\@empty
368 \global\let\@title\@empty
369 \global\let\title\relax
370 \global\let\author\relax
371 \global\let\date\relax
372 \global\let\and\relax
375 \newcommand{\maketitle}{\par
377 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
378 \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
379 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
380 \long\def\@makefntext##1{\parindent 1\zw\noindent
381 \hbox to 2\zw{\hss\@makefnmark}##1}%
383 \ifnum \col@number=\@ne \@maketitle
384 \else \twocolumn[\@maketitle]%
388 \global\@topnum\z@ % Prevents figures from going at top of page.
391 \thispagestyle{jpl@in}\@thanks
393 \setcounter{footnote}{0}%
394 \global\let\thanks\relax
395 \global\let\maketitle\relax
396 \global\let\p@thanks\relax
397 \global\let\@thanks\@empty
398 \global\let\@author\@empty
399 \global\let\@date\@empty
400 \global\let\@title\@empty
401 \global\let\title\relax
402 \global\let\author\relax
403 \global\let\date\relax
404 \global\let\and\relax
410 \let\footnote\p@thanks
411 {\LARGE \@title \par}%
415 \begin{tabular}[t]{c}%
423 \newcommand*{\chaptermark}[1]{}
424 \setcounter{secnumdepth}{2}
427 \newcounter{section}[chapter]
428 \newcounter{subsection}[section]
429 \newcounter{subsubsection}[subsection]
430 \newcounter{paragraph}[subsubsection]
431 \newcounter{subparagraph}[paragraph]
432 \renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
433 \renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
434 \renewcommand{\thesection}{\thechapter・\rensuji{\@arabic\c@section}}
435 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
436 \renewcommand{\thesubsubsection}{%
437 \thesubsection・\rensuji{\@arabic\c@subsubsection}}
438 \renewcommand{\theparagraph}{%
439 \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
440 \renewcommand{\thesubparagraph}{%
441 \theparagraph・\rensuji{\@arabic\c@subparagraph}}
442 \newcommand{\@chapapp}{\prechaptername}
443 \newcommand{\@chappos}{\postchaptername}
444 \newcommand\frontmatter{%
445 \if@openright \cleardoublepage \else \clearpage \fi
446 \@mainmatterfalse\pagenumbering{roman}}
447 \newcommand{\mainmatter}{%
448 \if@openright \cleardoublepage \else \clearpage \fi
449 \@mainmattertrue\pagenumbering{arabic}}
450 \newcommand{\backmatter}{%
451 \if@openright \cleardoublepage \else \clearpage \fi
454 \if@openright \cleardoublepage \else \clearpage \fi
455 \thispagestyle{empty}%
456 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
458 \secdef\@part\@spart}
460 \ifnum \c@secnumdepth >-2\relax
461 \refstepcounter{part}%
462 \addcontentsline{toc}{part}{%
463 \prepartname\thepart\postpartname\hspace{1em}#1}%
465 \addcontentsline{toc}{part}{#1}%
469 \interlinepenalty\@M\reset@font
470 \ifnum \c@secnumdepth >-2\relax
471 \huge\bfseries\prepartname\thepart\postpartname
474 \Huge\bfseries#2\par}%
478 \interlinepenalty\@M\reset@font
479 \Huge\bfseries#1\par}%
481 \def\@endpart{\vfil\newpage
482 \if@twoside\null\thispagestyle{empty}\newpage\fi
483 \if@tempswa\twocolumn\fi}
484 \newcommand{\chapter}{%
485 \if@openright\cleardoublepage\else\clearpage\fi
486 \thispagestyle{jpl@in}%
489 \secdef\@chapter\@schapter}
490 \def\@chapter[#1]#2{%
491 \ifnum \c@secnumdepth >\m@ne
493 \refstepcounter{chapter}%
494 \typeout{\@chapapp\space\thechapter\space\@chappos}%
495 \addcontentsline{toc}{chapter}%
496 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
497 \else\addcontentsline{toc}{chapter}{#1}\fi
499 \addcontentsline{toc}{chapter}{#1}%
502 \addtocontents{lof}{\protect\addvspace{10\p@}}%
503 \addtocontents{lot}{\protect\addvspace{10\p@}}%
504 \@makechapterhead{#2}\@afterheading}
505 \def\@makechapterhead#1{\hbox{}%
509 \reset@font\huge\bfseries
511 \ifnum \c@secnumdepth >\m@ne
512 \setlength\@tempdima{\linewidth}%
514 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
515 \addtolength\@tempdima{-\wd\z@}%
518 \vtop{\hsize\@tempdima#1}%
521 \fi}\nobreak\vskip3\Cvs}
523 \@makeschapterhead{#1}\@afterheading
525 \def\@makeschapterhead#1{\hbox{}%
529 \reset@font\huge\bfseries
531 \setlength\@tempdima{\linewidth}%
532 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
533 \newcommand{\section}{\@startsection{section}{1}{\z@}%
534 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
535 {.5\Cvs \@plus.3\Cvs}%
536 {\reset@font\Large\bfseries}}
537 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
538 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
539 {.5\Cvs \@plus.3\Cvs}%
540 {\reset@font\large\bfseries}}
541 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
542 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
543 {.5\Cvs \@plus.3\Cvs}%
544 {\reset@font\normalsize\bfseries}}
545 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
546 {3.25ex \@plus 1ex \@minus .2ex}%
548 {\reset@font\normalsize\bfseries}}
549 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
550 {3.25ex \@plus 1ex \@minus .2ex}%
552 {\reset@font\normalsize\bfseries}}
553 \newcommand{\appendix}{\par
554 \setcounter{chapter}{0}%
555 \setcounter{section}{0}%
556 \renewcommand{\@chapapp}{\appendixname}%
557 \renewcommand{\@chappos}\space%
558 \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
560 \setlength\leftmargini {2em}
562 \setlength\leftmargini {2.5em}
564 \setlength\leftmarginii {2.2em}
565 \setlength\leftmarginiii {1.87em}
566 \setlength\leftmarginiv {1.7em}
568 \setlength\leftmarginv {.5em}
569 \setlength\leftmarginvi{.5em}
571 \setlength\leftmarginv {1em}
572 \setlength\leftmarginvi{1em}
574 \setlength \labelsep {.5em}
575 \setlength \labelwidth{\leftmargini}
576 \addtolength\labelwidth{-\labelsep}
577 \@beginparpenalty -\@lowpenalty
578 \@endparpenalty -\@lowpenalty
579 \@itempenalty -\@lowpenalty
580 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
581 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
582 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
583 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
584 \newcommand{\labelenumi}{\theenumi}
585 \newcommand{\labelenumii}{\theenumii}
586 \newcommand{\labelenumiii}{\theenumiii}
587 \newcommand{\labelenumiv}{\theenumiv}
588 \renewcommand{\p@enumii}{\theenumi}
589 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
590 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
591 \renewenvironment{enumerate}
592 {\ifnum \@enumdepth >\thr@@\@toodeep\else
593 \advance\@enumdepth\@ne
594 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
595 \list{\csname label\@enumctr\endcsname}{%
596 \ifnum\ltjgetparameter{direction}=3
597 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
599 \parskip\z@ \itemsep\z@ \parsep\z@
600 \labelwidth1\zw \labelsep.3\zw
601 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
602 \else\leftmargin\leftskip\fi
603 \advance\leftmargin 1\zw
605 \usecounter{\@enumctr}%
606 \def\makelabel##1{\hss\llap{##1}}}%
608 \newcommand{\labelitemi}{\textbullet}
609 \newcommand{\labelitemii}{%
610 \ifnum\ltjgetparameter{direction}=3
613 {\normalfont\bfseries\textendash}
616 \newcommand{\labelitemiii}{\textasteriskcentered}
617 \newcommand{\labelitemiv}{\textperiodcentered}
618 \renewenvironment{itemize}
619 {\ifnum \@itemdepth >\thr@@\@toodeep\else
620 \advance\@itemdepth\@ne
621 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
623 \list{\csname \@itemitem\endcsname}{%
624 \ifnum\ltjgetparameter{direction}=3
625 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
627 \parskip\z@ \itemsep\z@ \parsep\z@
628 \labelwidth1\zw \labelsep.3\zw
629 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
630 \else\leftmargin\leftskip\fi
631 \advance\leftmargin 1\zw
633 \def\makelabel##1{\hss\llap{##1}}}%
635 \newenvironment{description}
636 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
637 \ifnum\ltjgetparameter{direction}=3
638 \leftmargin\leftskip \advance\leftmargin3\Cwd
639 \rightmargin\rightskip
640 \labelsep=1\zw \itemsep\z@
641 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
643 \let\makelabel\descriptionlabel}}{\endlist}
644 \newcommand{\descriptionlabel}[1]{%
645 \hspace\labelsep\normalfont\bfseries #1}
646 \newenvironment{verse}
648 \list{}{\itemsep\z@ \itemindent -1.5em%
649 \listparindent\itemindent
650 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
651 \item\relax}{\endlist}
652 \newenvironment{quotation}
653 {\list{}{\listparindent 1.5em%
654 \itemindent\listparindent
655 \rightmargin\leftmargin
656 \parsep\z@ \@plus\p@}%
657 \item\relax}{\endlist}
658 \newenvironment{quote}
659 {\list{}{\rightmargin\leftmargin}%
660 \item\relax}{\endlist}
661 \newcounter{figure}[chapter]
662 \renewcommand{\thefigure}{%
663 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
667 \def\fnum@figure{\figurename\thefigure}
668 \newenvironment{figure}
671 \newenvironment{figure*}
674 \newcounter{table}[chapter]
675 \renewcommand{\thetable}{%
676 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
680 \def\fnum@table{\tablename\thetable}
681 \newenvironment{table}
684 \newenvironment{table*}
687 \newlength\abovecaptionskip
688 \newlength\belowcaptionskip
689 \setlength\abovecaptionskip{10\p@}
690 \setlength\belowcaptionskip{0\p@}
691 \long\def\@makecaption#1#2{%
692 \vskip\abovecaptionskip
693 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
694 \else\sbox\@tempboxa{#1: #2}%
696 \ifdim \wd\@tempboxa >\hsize
697 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
698 \else #1: #2\relax\par\fi
700 \global \@minipagefalse
701 \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
703 \vskip\belowcaptionskip}
704 \setlength\arraycolsep{5\p@}
705 \setlength\tabcolsep{6\p@}
706 \setlength\arrayrulewidth{.4\p@}
707 \setlength\doublerulesep{2\p@}
708 \setlength\tabbingsep{\labelsep}
709 \skip\@mpfootins = \skip\footins
710 \setlength\fboxsep{3\p@}
711 \setlength\fboxrule{.4\p@}
712 \@addtoreset{equation}{chapter}
713 \renewcommand{\theequation}{%
714 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
715 \if@compatibility\else
716 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
717 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
718 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
720 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
724 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
725 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
728 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
729 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
730 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
731 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
732 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
733 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
734 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
735 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
736 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
737 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
738 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
739 \setcounter{tocdepth}{2}
740 \newcommand{\@pnumwidth}{1.55em}
741 \newcommand{\@tocrmarg}{2.55em}
742 \newcommand{\@dotsep}{4.5}
743 \newdimen\toclineskip
744 \setlength\toclineskip{2\p@}
746 \def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
747 \def\@dottedtocline#1#2#3#4#5{%
748 \ifnum #1>\c@tocdepth \else
749 \vskip\toclineskip \@plus.2\p@
750 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
751 \parindent #2\relax\@afterindenttrue
755 \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
757 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
759 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
762 \def\addcontentsline#1#2#3{%
763 \protected@write\@auxout
764 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
765 \@temptokena{\rensuji{\thepage}}}%
766 {\string\@writefile{#1}%
767 {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
769 \newcommand{\tableofcontents}{%
770 \if@twocolumn\@restonecoltrue\onecolumn
771 \else\@restonecolfalse\fi
772 \chapter*{\contentsname
773 \@mkboth{\contentsname}{\contentsname}%
775 \if@restonecol\twocolumn\fi
777 \newcommand*{\l@part}[2]{%
778 \ifnum \c@tocdepth >-2\relax
779 \addpenalty{-\@highpenalty}%
780 \addvspace{2.25em \@plus\p@}%
782 \parindent\z@\rightskip\@pnumwidth
783 \parfillskip-\@pnumwidth
784 {\leavevmode\large\bfseries
785 \setlength\@lnumwidth{4\zw}%
787 \hbox to\@pnumwidth{\hss#2}}\par
790 \everypar{\global\@nobreakfalse\everypar{}}%
793 \newcommand*{\l@chapter}[2]{%
794 \ifnum \c@tocdepth >\m@ne
795 \addpenalty{-\@highpenalty}%
796 \addvspace{1.0em \@plus\p@}%
798 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
800 \setlength\@lnumwidth{4\zw}%
801 \advance\leftskip\@lnumwidth \hskip-\leftskip
802 #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
803 \penalty\@highpenalty
806 \newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
807 \newcommand*{\l@subsection} {\@dottedtocline{2}{2\zw}{6\zw}}
808 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
809 \newcommand*{\l@paragraph} {\@dottedtocline{4}{4\zw}{9\zw}}
810 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
811 \newcommand{\listoffigures}{%
812 \if@twocolumn\@restonecoltrue\onecolumn
813 \else\@restonecolfalse\fi
814 \chapter*{\listfigurename
815 \@mkboth{\listfigurename}{\listfigurename}}%
817 \if@restonecol\twocolumn\fi
819 \newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
820 \newcommand{\listoftables}{%
821 \if@twocolumn\@restonecoltrue\onecolumn
822 \else\@restonecolfalse\fi
823 \chapter*{\listtablename
824 \@mkboth{\listtablename}{\listtablename}}%
826 \if@restonecol\twocolumn\fi
828 \let\l@table\l@figure
830 \setlength\bibindent{1.5em}
831 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
832 \newenvironment{thebibliography}[1]
833 {\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
834 \list{\@biblabel{\@arabic\c@enumiv}}%
835 {\settowidth\labelwidth{\@biblabel{#1}}%
836 \leftmargin\labelwidth
837 \advance\leftmargin\labelsep
841 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
844 \@clubpenalty\clubpenalty
848 {\@latex@warning{Empty `thebibliography' environment}}%
850 \let\@openbib@code\@empty
851 \newenvironment{theindex}
852 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
853 \columnseprule\z@ \columnsep 35\p@
854 \twocolumn[\@makeschapterhead{\indexname}]%
855 \@mkboth{\indexname}{\indexname}%
856 \thispagestyle{jpl@in}\parindent\z@
857 \parskip\z@ \@plus .3\p@\relax
859 {\if@restonecol\onecolumn\else\clearpage\fi}
860 \newcommand{\@idxitem}{\par\hangindent 40\p@}
861 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
862 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
863 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
864 \renewcommand{\footnoterule}{%
866 \hrule width .4\columnwidth
868 \@addtoreset{footnote}{chapter}
869 \newcommand\@makefntext[1]{\parindent 1\zw
870 \noindent\hbox to 2\zw{\hss\@makefnmark}#1}
874 \newcount\heisei \heisei\year \advance\heisei-1988\relax
876 \ifnum\ltjgetparameter{direction}=3
882 平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
892 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
897 \newcommand{\prepartname}{第}
898 \newcommand{\postpartname}{部}
899 \newcommand{\prechaptername}{第}
900 \newcommand{\postchaptername}{章}
901 \newcommand{\contentsname}{目 次}
902 \newcommand{\listfigurename}{図 目 次}
903 \newcommand{\listtablename}{表 目 次}
904 \newcommand{\bibname}{関連図書}
905 \newcommand{\indexname}{索 引}
906 \newcommand{\figurename}{図}
907 \newcommand{\tablename}{表}
908 \newcommand{\appendixname}{付 録}
910 \pagenumbering{arabic}
922 %% End of file `ltjtbook.cls'.