2 %% This is file `ltjbook.cls',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% ltjclasses.dtx (with options: `book,yoko')
11 %% For the copyright see the source file.
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from ltjbook.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{ltjbook}
26 [2017/02/19 v1.7d-ltj-13
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 \DeclareOption{oneside}{\@twosidefalse}
109 \DeclareOption{twoside}{\@twosidetrue}
110 \DeclareOption{onecolumn}{\@twocolumnfalse}
111 \DeclareOption{twocolumn}{\@twocolumntrue}
112 \DeclareOption{titlepage}{\@titlepagetrue}
113 \DeclareOption{notitlepage}{\@titlepagefalse}
117 \DeclareOption{openright}{\@openrighttrue\@openleftfalse}
118 \DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
119 \DeclareOption{openany}{\@openrightfalse\@openleftfalse}
121 \DeclareOption{leqno}{\input{leqno.clo}}
122 \DeclareOption{fleqn}{\input{fleqn.clo}}
123 \DeclareOption{openbib}{%
125 \renewcommand\@openbib@code{%
126 \advance\leftmargin\bibindent
127 \itemindent -\bibindent
128 \listparindent \itemindent
131 \renewcommand\newblock{\par}}}
135 \DeclareOption{disablejfam}{%
136 \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
137 \DeclareOption{mathrmmc}{\@mathrmmctrue}
139 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
140 \DeclareOption{final}{\setlength\overfullrule{0pt}}
141 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
142 function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
143 'ltj.jclasses_load_jfm', 1)}
144 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
145 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
146 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
147 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
148 \ltjglobalsetparameter{differentjfm=both}
149 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
150 \ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright}
151 \ProcessOptions\relax
152 \input{ltjbk1\@ptsize.clo}
154 \setlength\columnsep{2\Cwd}
156 \setlength\columnsep{10\p@}
158 \setlength\columnseprule{0\p@}
160 \newlength{\stockwidth}
161 \newlength{\stockheight}
162 \setlength{\stockwidth}{\paperwidth}
163 \setlength{\stockheight}{\paperheight}
164 \advance \stockwidth 2in
165 \advance \stockheight 2in
166 \ifdefined\pdfpagewidth
167 \setlength{\pdfpagewidth}{\stockwidth}
168 \setlength{\pdfpageheight}{\stockheight}
170 \setlength{\pagewidth}{\stockwidth}
171 \setlength{\pageheight}{\stockheight}
174 \ifdefined\pdfpagewidth
175 \setlength{\pdfpagewidth}{\paperwidth}
176 \setlength{\pdfpageheight}{\paperheight}
178 \setlength{\pagewidth}{\paperwidth}
179 \setlength{\pageheight}{\paperheight}
182 \setlength\lineskip{1\p@}
183 \setlength\normallineskip{1\p@}
184 \renewcommand{\baselinestretch}{}
185 \setlength\parskip{0\p@ \@plus \p@}
186 \setlength\parindent{1\Cwd}
190 \setcounter{topnumber}{2}
191 \setcounter{bottomnumber}{1}
192 \setcounter{totalnumber}{3}
193 \setcounter{dbltopnumber}{2}
194 \renewcommand{\topfraction}{.7}
195 \renewcommand{\bottomfraction}{.3}
196 \renewcommand{\textfraction}{.2}
197 \renewcommand{\floatpagefraction}{.5}
198 \renewcommand{\dbltopfraction}{.7}
199 \renewcommand{\dblfloatpagefraction}{.5}
200 \def\pltx@cleartorightpage{\clearpage\if@twoside
203 \hbox{}\thispagestyle{empty}\newpage
204 \if@twocolumn\hbox{}\newpage\fi
208 \hbox{}\thispagestyle{empty}\newpage
209 \if@twocolumn\hbox{}\newpage\fi
212 \def\pltx@cleartoleftpage{\clearpage\if@twoside
215 \hbox{}\thispagestyle{empty}\newpage
216 \if@twocolumn\hbox{}\newpage\fi
220 \hbox{}\thispagestyle{empty}\newpage
221 \if@twocolumn\hbox{}\newpage\fi
224 \def\pltx@cleartooddpage{\clearpage\if@twoside
226 \hbox{}\thispagestyle{empty}\newpage
227 \if@twocolumn\hbox{}\newpage\fi
229 \def\pltx@cleartoevenpage{\clearpage\if@twoside
231 \hbox{}\thispagestyle{empty}\newpage
232 \if@twocolumn\hbox{}\newpage\fi
235 \let\cleardoublepage\pltx@cleartoleftpage
237 \let\cleardoublepage\pltx@cleartorightpage
239 \def\ps@plain{\let\@mkboth\@gobbletwo
240 \let\ps@jpl@in\ps@plain
242 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
243 \let\@evenhead\@empty
244 \let\@evenfoot\@oddfoot}
245 \let\ps@jpl@in\ps@plain
246 \def\ps@headnombre{\let\@mkboth\@gobbletwo
247 \let\ps@jpl@in\ps@headnombre
248 \def\@evenhead{\thepage\hfil}%
249 \def\@oddhead{\hfil\thepage}%
250 \let\@oddfoot\@empty\let\@evenfoot\@empty}
251 \def\ps@footnombre{\let\@mkboth\@gobbletwo
252 \let\ps@jpl@in\ps@footnombre
253 \def\@evenfoot{\thepage\hfil}%
254 \def\@oddfoot{\hfil\thepage}%
255 \let\@oddhead\@empty\let\@evenhead\@empty}
257 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
258 \let\@oddfoot\@empty\let\@evenfoot\@empty
259 \def\@evenhead{\thepage\hfil\leftmark}%
260 \def\@oddhead{{\rightmark}\hfil\thepage}%
261 \let\@mkboth\markboth
262 \def\chaptermark##1{\markboth{%
263 \ifnum \c@secnumdepth >\m@ne
265 \@chapapp\thechapter\@chappos\hskip1\zw
269 \def\sectionmark##1{\markright{%
270 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
273 \else % if not twoside
274 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
276 \def\@oddhead{{\rightmark}\hfil\thepage}%
277 \let\@mkboth\markboth
278 \def\chaptermark##1{\markright{%
279 \ifnum \c@secnumdepth >\m@ne
281 \@chapapp\thechapter\@chappos\hskip1\zw
288 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
289 \def\@evenhead{\leftmark\hfil}% right page
290 \def\@evenfoot{\thepage\hfil}% right page
291 \def\@oddhead{\hfil\rightmark}% left page
292 \def\@oddfoot{\hfil\thepage}% left page
293 \let\@mkboth\markboth
294 \def\chaptermark##1{\markboth{%
295 \ifnum \c@secnumdepth >\m@ne
297 \@chapapp\thechapter\@chappos\hskip1\zw
301 \def\sectionmark##1{\markright{%
302 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
305 \else % if one column
306 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
307 \def\@oddhead{\hfil\rightmark}%
308 \def\@oddfoot{\hfil\thepage}%
309 \let\@mkboth\markboth
310 \def\chaptermark##1{\markright{%
311 \ifnum \c@secnumdepth >\m@ne
313 \@chapapp\thechapter\@chappos\hskip1\zw
319 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
320 \let\@oddfoot\@empty\let\@evenfoot\@empty
321 \def\@evenhead{\thepage\hfil\leftmark}%
322 \def\@oddhead{{\rightmark}\hfil\thepage}%
323 \let\@mkboth\@gobbletwo
324 \let\chaptermark\@gobble
325 \let\sectionmark\@gobble
328 \newenvironment{titlepage}
331 \if@twocolumn\@restonecoltrue\onecolumn
332 \else\@restonecolfalse\newpage\fi
333 \thispagestyle{empty}%
336 {\if@restonecol\twocolumn\else\newpage\fi
338 +% \changes{v1.7d}{2017/02/15}{bookクラスでtitlepageを必ず奇数ページ
340 \newenvironment{titlepage}
342 \pltx@cleartooddpage %% 2017/02/15
344 \@restonecoltrue\onecolumn
346 \@restonecolfalse\newpage
348 \thispagestyle{empty}%
349 \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017/02/15
351 {\if@restonecol\twocolumn \else \newpage \fi
353 \setcounter{page}\@ne
357 \def\p@thanks#1{\footnotemark
358 \protected@xdef\@thanks{\@thanks
359 \protect{\noindent\hbox{\yoko$\m@th^\thefootnote$}#1\protect\par}}}
361 \newcommand{\maketitle}{\begin{titlepage}%
362 \let\footnotesize\small
363 \let\footnoterule\relax
368 {\LARGE \@title \par}%
372 \begin{tabular}[t]{c}%
376 {\large \@date \par}% % Set date in \large size.
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 1em\noindent
400 \hb@xt@1.8em{\hss$\m@th^{\@thefnmark}$}##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
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}{\@Roman\c@part}
453 \renewcommand{\thechapter}{\@arabic\c@chapter}
454 \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
455 \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
456 \renewcommand{\thesubsubsection}{%
457 \thesubsection.\@arabic\c@subsubsection}
458 \renewcommand{\theparagraph}{%
459 \thesubsubsection.\@arabic\c@paragraph}
460 \renewcommand{\thesubparagraph}{%
461 \theparagraph.\@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}
553 タイトルより高い位置に右カラムの始点が来るという挙動を維持してあります。
555 \@makeschapterhead{#1}\@afterheading
557 \def\@makeschapterhead#1{\hbox{}%
561 \normalfont\huge\bfseries
563 \setlength\@tempdima{\linewidth}%
564 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
565 \newcommand{\section}{\@startsection{section}{1}{\z@}%
566 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
567 {.5\Cvs \@plus.3\Cvs}%
568 {\normalfont\Large\bfseries}}
569 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
570 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
571 {.5\Cvs \@plus.3\Cvs}%
572 {\normalfont\large\bfseries}}
573 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
574 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
575 {.5\Cvs \@plus.3\Cvs}%
576 {\normalfont\normalsize\bfseries}}
577 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
578 {3.25ex \@plus 1ex \@minus .2ex}%
580 {\normalfont\normalsize\bfseries}}
581 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
582 {3.25ex \@plus 1ex \@minus .2ex}%
584 {\normalfont\normalsize\bfseries}}
585 \newcommand{\appendix}{\par
586 \setcounter{chapter}{0}%
587 \setcounter{section}{0}%
588 \renewcommand{\@chapapp}{\appendixname}%
589 \renewcommand{\@chappos}\space%
590 \renewcommand{\thechapter}{\@Alph\c@chapter}}
592 \setlength\leftmargini {2em}
594 \setlength\leftmargini {2.5em}
596 \setlength\leftmarginii {2.2em}
597 \setlength\leftmarginiii {1.87em}
598 \setlength\leftmarginiv {1.7em}
600 \setlength\leftmarginv {.5em}
601 \setlength\leftmarginvi{.5em}
603 \setlength\leftmarginv {1em}
604 \setlength\leftmarginvi{1em}
606 \setlength \labelsep {.5em}
607 \setlength \labelwidth{\leftmargini}
608 \addtolength\labelwidth{-\labelsep}
609 \@beginparpenalty -\@lowpenalty
610 \@endparpenalty -\@lowpenalty
611 \@itempenalty -\@lowpenalty
612 \renewcommand{\theenumi}{\@arabic\c@enumi}
613 \renewcommand{\theenumii}{\@alph\c@enumii}
614 \renewcommand{\theenumiii}{\@roman\c@enumiii}
615 \renewcommand{\theenumiv}{\@Alph\c@enumiv}
616 \newcommand{\labelenumi}{\theenumi.}
617 \newcommand{\labelenumii}{(\theenumii)}
618 \newcommand{\labelenumiii}{\theenumiii.}
619 \newcommand{\labelenumiv}{\theenumiv.}
620 \renewcommand{\p@enumii}{\theenumi}
621 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
622 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
623 \renewenvironment{enumerate}
624 {\ifnum \@enumdepth >\thr@@\@toodeep\else
625 \advance\@enumdepth\@ne
626 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
627 \expandafter \list \csname label\@enumctr\endcsname{%
628 \ifnum\ltjgetparameter{direction}=3
629 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
631 \parskip\z@ \itemsep\z@ \parsep\z@
632 \labelwidth1\zw \labelsep.3\zw
633 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
634 \else\leftmargin\leftskip\fi
635 \advance\leftmargin 1\zw
637 \usecounter{\@enumctr}%
638 \def\makelabel##1{\hss\llap{##1}}}%
640 \newcommand{\labelitemi}{\textbullet}
641 \newcommand{\labelitemii}{%
642 \ifnum\ltjgetparameter{direction}=3
645 {\normalfont\bfseries\textendash}
648 \newcommand{\labelitemiii}{\textasteriskcentered}
649 \newcommand{\labelitemiv}{\textperiodcentered}
650 \renewenvironment{itemize}
651 {\ifnum \@itemdepth >\thr@@\@toodeep\else
652 \advance\@itemdepth\@ne
653 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
654 \expandafter \list \csname \@itemitem\endcsname{%
655 \ifnum\ltjgetparameter{direction}=3
656 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
658 \parskip\z@ \itemsep\z@ \parsep\z@
659 \labelwidth1\zw \labelsep.3\zw
660 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
661 \else\leftmargin\leftskip\fi
662 \advance\leftmargin 1\zw
664 \def\makelabel##1{\hss\llap{##1}}}%
666 \newenvironment{description}
667 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
668 \ifnum\ltjgetparameter{direction}=3
669 \leftmargin\leftskip \advance\leftmargin3\Cwd
670 \rightmargin\rightskip
671 \labelsep=1\zw \itemsep\z@
672 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
674 \let\makelabel\descriptionlabel}}{\endlist}
675 \newcommand{\descriptionlabel}[1]{%
676 \hspace\labelsep\normalfont\bfseries #1}
677 \newenvironment{verse}
679 \list{}{\itemsep\z@ \itemindent -1.5em%
680 \listparindent\itemindent
681 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
682 \item\relax}{\endlist}
683 \newenvironment{quotation}
684 {\list{}{\listparindent 1.5em%
685 \itemindent\listparindent
686 \rightmargin\leftmargin
687 \parsep\z@ \@plus\p@}%
688 \item\relax}{\endlist}
689 \newenvironment{quote}
690 {\list{}{\rightmargin\leftmargin}%
691 \item\relax}{\endlist}
692 \newcounter{figure}[chapter]
693 \renewcommand{\thefigure}{%
694 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
698 \def\fnum@figure{\figurename~\thefigure}
699 \newenvironment{figure}
702 \newenvironment{figure*}
705 \newcounter{table}[chapter]
706 \renewcommand{\thetable}{%
707 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
711 \def\fnum@table{\tablename~\thetable}
712 \newenvironment{table}
715 \newenvironment{table*}
718 \newlength\abovecaptionskip
719 \newlength\belowcaptionskip
720 \setlength\abovecaptionskip{10\p@}
721 \setlength\belowcaptionskip{0\p@}
722 \long\def\@makecaption#1#2{%
723 \vskip\abovecaptionskip
724 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
725 \else\sbox\@tempboxa{#1: #2}%
727 \ifdim \wd\@tempboxa >\hsize
728 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
729 \else #1: #2\relax\par\fi
731 \global \@minipagefalse
732 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
734 \vskip\belowcaptionskip}
735 \setlength\arraycolsep{5\p@}
736 \setlength\tabcolsep{6\p@}
737 \setlength\arrayrulewidth{.4\p@}
738 \setlength\doublerulesep{2\p@}
739 \setlength\tabbingsep{\labelsep}
740 \skip\@mpfootins = \skip\footins
741 \setlength\fboxsep{3\p@}
742 \setlength\fboxrule{.4\p@}
743 \@addtoreset{equation}{chapter}
744 \renewcommand{\theequation}{%
745 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
746 \if@compatibility\else
747 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
748 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
749 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
751 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
755 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
756 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
759 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
760 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
761 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
762 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
763 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
764 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
765 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
766 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
767 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
768 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
769 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
770 \setcounter{tocdepth}{2}
771 \newcommand{\@pnumwidth}{1.55em}
772 \newcommand{\@tocrmarg}{2.55em}
773 \newcommand{\@dotsep}{4.5}
774 \newdimen\toclineskip
775 \setlength\toclineskip{\z@}
777 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
778 \def\@dottedtocline#1#2#3#4#5{%
779 \ifnum #1>\c@tocdepth \else
780 \vskip\toclineskip \@plus.2\p@
781 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
782 \parindent #2\relax\@afterindenttrue
786 \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
788 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
790 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
793 \def\addcontentsline#1#2#3{%
794 \protected@write\@auxout
795 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
796 \@temptokena{\thepage}}%
797 {\string\@writefile{#1}%
798 {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
800 \newcommand{\tableofcontents}{%
801 \if@twocolumn\@restonecoltrue\onecolumn
802 \else\@restonecolfalse\fi
803 \chapter*{\contentsname
804 \@mkboth{\contentsname}{\contentsname}%
806 \if@restonecol\twocolumn\fi
808 \newcommand*{\l@part}[2]{%
809 \ifnum \c@tocdepth >-2\relax
810 \addpenalty{-\@highpenalty}%
811 \addvspace{2.25em \@plus\p@}%
813 \parindent\z@\rightskip\@pnumwidth
814 \parfillskip-\@pnumwidth
815 {\leavevmode\large\bfseries
816 \setlength\@lnumwidth{4\zw}%
818 \hb@xt@\@pnumwidth{\hss#2}}\par
821 \everypar{\global\@nobreakfalse\everypar{}}%
824 \newcommand*{\l@chapter}[2]{%
825 \ifnum \c@tocdepth >\m@ne
826 \addpenalty{-\@highpenalty}%
827 \addvspace{1.0em \@plus\p@}%
829 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
831 \setlength\@lnumwidth{4\zw}%
832 \advance\leftskip\@lnumwidth \hskip-\leftskip
833 #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
834 \penalty\@highpenalty
837 \newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
838 \newcommand*{\l@subsection} {\@dottedtocline{2}{3.8em}{3.2em}}
839 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
840 \newcommand*{\l@paragraph} {\@dottedtocline{4}{10em}{5em}}
841 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
842 \newcommand{\listoffigures}{%
843 \if@twocolumn\@restonecoltrue\onecolumn
844 \else\@restonecolfalse\fi
845 \chapter*{\listfigurename}%
846 \@mkboth{\listfigurename}{\listfigurename}%
848 \if@restonecol\twocolumn\fi
850 \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
851 \newcommand{\listoftables}{%
852 \if@twocolumn\@restonecoltrue\onecolumn
853 \else\@restonecolfalse\fi
854 \chapter*{\listtablename}%
855 \@mkboth{\listtablename}{\listtablename}%
857 \if@restonecol\twocolumn\fi
859 \let\l@table\l@figure
861 \setlength\bibindent{1.5em}
862 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
863 \newenvironment{thebibliography}[1]
864 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
865 \list{\@biblabel{\@arabic\c@enumiv}}%
866 {\settowidth\labelwidth{\@biblabel{#1}}%
867 \leftmargin\labelwidth
868 \advance\leftmargin\labelsep
872 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
875 \@clubpenalty\clubpenalty
879 {\@latex@warning{Empty `thebibliography' environment}}%
881 \let\@openbib@code\@empty
882 \newenvironment{theindex}
883 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
884 \twocolumn[\@makeschapterhead{\indexname}]%
885 \@mkboth{\indexname}{\indexname}%
886 \thispagestyle{jpl@in}\parindent\z@
887 \parskip\z@ \@plus .3\p@\relax
888 \columnseprule\z@ \columnsep 35\p@
890 {\if@restonecol\onecolumn\else\clearpage\fi}
891 \newcommand{\@idxitem}{\par\hangindent 40\p@}
892 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
893 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
894 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
895 \renewcommand{\footnoterule}{%
897 \hrule\@width.4\columnwidth
899 \@addtoreset{footnote}{chapter}
900 \newcommand\@makefntext[1]{\parindent 1em
901 \noindent\hb@xt@ 1.8em{\hss\@makefnmark}#1}
905 \newcount\heisei \heisei\year \advance\heisei-1988\relax
907 \ifnum\ltjgetparameter{direction}=3
913 平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
923 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
928 \newcommand{\prepartname}{第}
929 \newcommand{\postpartname}{部}
930 \newcommand{\prechaptername}{第}
931 \newcommand{\postchaptername}{章}
932 \newcommand{\contentsname}{目 次}
933 \newcommand{\listfigurename}{図 目 次}
934 \newcommand{\listtablename}{表 目 次}
935 \newcommand{\bibname}{関連図書}
936 \newcommand{\indexname}{索 引}
937 \newcommand{\figurename}{図}
938 \newcommand{\tablename}{表}
939 \newcommand{\appendixname}{付 録}
941 \pagenumbering{arabic}
943 \fnfixbottomtrue % 2017-02-19
957 %% End of file `ltjbook.cls'.