OSDN Git Service

Added lltjp-everyshi.sty
[luatex-ja/luatexja.git] / src / ltjtbook.cls
1 %%
2 %% This is file `ltjtbook.cls',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ltjclasses.dtx  (with options: `book,tate')
8 %% 
9 %% IMPORTANT NOTICE:
10 %% 
11 %% For the copyright see the source file.
12 %% 
13 %% Any modified versions of this file must be renamed
14 %% with new filenames distinct from ltjtbook.cls.
15 %% 
16 %% For distribution of the original source see the terms
17 %% for copying and modification in the file ltjclasses.dtx.
18 %% 
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   [2020/01/13 v1.8e-ltj-17
27  Standard LuaLaTeX-ja class]
28 \RequirePackage{luatexja}
29 \newcounter{@paper}
30 \newif\if@landscape \@landscapefalse
31 \newcommand{\@ptsize}{}
32 \newif\if@restonecol
33 \newif\if@titlepage
34 \@titlepagetrue
35 \newif\if@openright
36 \newif\if@openleft
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}}
79 \if@compatibility
80   \renewcommand{\@ptsize}{0}
81 \else
82   \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
83 \fi
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@}%
93   \@bannertoken{%
94      \jobname\space(\number\year-\two@digits\month-\two@digits\day
95      \space\two@digits\hour:\two@digits\minute)}%
96   \maketombowbox}
97 \DeclareOption{tombo}{%
98   \tombowtrue \tombowdatefalse
99   \setlength{\@tombowwidth}{.1\p@}%
100   \maketombowbox}
101 \DeclareOption{mentuke}{%
102   \tombowtrue \tombowdatefalse
103   \setlength{\@tombowwidth}{\z@}%
104   \maketombowbox}
105 \DeclareOption{tate}{%
106   \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
107 }
108 \DeclareOption{oneside}{\@twosidefalse}
109 \DeclareOption{twoside}{\@twosidetrue}
110 \DeclareOption{onecolumn}{\@twocolumnfalse}
111 \DeclareOption{twocolumn}{\@twocolumntrue}
112 \DeclareOption{titlepage}{\@titlepagetrue}
113 \DeclareOption{notitlepage}{\@titlepagefalse}
114 \if@compatibility
115 \@openrighttrue
116 \else
117 \DeclareOption{openright}{\@openrighttrue\@openleftfalse}
118 \DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
119 \DeclareOption{openany}{\@openrightfalse\@openleftfalse}
120 \fi
121 \DeclareOption{leqno}{\input{leqno.clo}}
122 \DeclareOption{fleqn}{\input{fleqn.clo}}
123 \DeclareOption{openbib}{%
124   \AtEndOfPackage{%
125    \renewcommand\@openbib@code{%
126       \advance\leftmargin\bibindent
127       \itemindent -\bibindent
128       \listparindent \itemindent
129       \parsep \z@
130       }%
131    \renewcommand\newblock{\par}}}
132 \if@compatibility
133   \@mathrmmctrue
134 \else
135   \DeclareOption{mathrmmc}{\@mathrmmctrue}
136 \fi
137 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
138 \DeclareOption{final}{\setlength\overfullrule{0pt}}
139 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
140   function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
141   'ltj.jclasses_load_jfm', 1)}
142 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
143 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
144 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
145 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
146 \ltjglobalsetparameter{differentjfm=both}
147 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
148 \DeclareOption{disablejfam}{}
149 \ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright,tate}
150 \ProcessOptions\relax
151 \input{ltjtbk1\@ptsize.clo}
152 \RequirePackage{lltjext}
153 \def\Cjascale{0.962216}
154 \if@stysize
155   \setlength\columnsep{3\Cwd}
156 \else
157   \setlength\columnsep{10\p@}
158 \fi
159 \setlength\columnseprule{0\p@}
160 \iftombow
161   \newlength{\stockwidth}
162   \newlength{\stockheight}
163   \setlength{\stockwidth}{\paperwidth}
164   \setlength{\stockheight}{\paperheight}
165   \advance \stockwidth 2in
166   \advance \stockheight 2in
167   \ifdefined\pdfpagewidth
168     \setlength{\pdfpagewidth}{\stockwidth}
169     \setlength{\pdfpageheight}{\stockheight}
170   \else
171     \setlength{\pagewidth}{\stockwidth}
172     \setlength{\pageheight}{\stockheight}
173   \fi
174 \else
175   \ifdefined\pdfpagewidth
176     \setlength{\pdfpagewidth}{\paperwidth}
177     \setlength{\pdfpageheight}{\paperheight}
178   \else
179     \setlength{\pagewidth}{\paperwidth}
180     \setlength{\pageheight}{\paperheight}
181   \fi
182 \fi
183 \setlength\lineskip{1\p@}
184 \setlength\normallineskip{1\p@}
185 \renewcommand{\baselinestretch}{}
186 \setlength\parskip{0\p@ \@plus \p@}
187 \setlength\parindent{1\Cwd}
188 \@lowpenalty   51
189 \@medpenalty  151
190 \@highpenalty 301
191 \setcounter{topnumber}{2}
192 \setcounter{bottomnumber}{1}
193 \setcounter{totalnumber}{3}
194 \setcounter{dbltopnumber}{2}
195 \renewcommand{\topfraction}{.7}
196 \renewcommand{\bottomfraction}{.3}
197 \renewcommand{\textfraction}{.2}
198 \renewcommand{\floatpagefraction}{.5}
199 \renewcommand{\dbltopfraction}{.7}
200 \renewcommand{\dblfloatpagefraction}{.5}
201 \def\pltx@cleartorightpage{\clearpage\if@twoside
202   \unless\ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
203     \hbox{}\thispagestyle{empty}\newpage
204     \if@twocolumn\hbox{}\newpage\fi
205   \fi\fi}
206 \def\pltx@cleartoleftpage{\clearpage\if@twoside
207   \ifodd\numexpr\c@page+\ltjgetparameter{direction}\relax
208     \hbox{}\thispagestyle{empty}\newpage
209     \if@twocolumn\hbox{}\newpage\fi
210   \fi\fi}
211 \def\pltx@cleartooddpage{\clearpage\if@twoside
212   \ifodd\c@page\else
213     \hbox{}\thispagestyle{empty}\newpage
214     \if@twocolumn\hbox{}\newpage\fi
215   \fi\fi}
216 \def\pltx@cleartoevenpage{\clearpage\if@twoside
217   \ifodd\c@page
218     \hbox{}\thispagestyle{empty}\newpage
219     \if@twocolumn\hbox{}\newpage\fi
220   \fi\fi}
221 \if@openleft
222   \let\cleardoublepage\pltx@cleartoleftpage
223 \else\if@openright
224   \let\cleardoublepage\pltx@cleartorightpage
225 \fi\fi
226 \def\ps@plain{\let\@mkboth\@gobbletwo
227    \let\ps@jpl@in\ps@plain
228    \let\@oddhead\@empty
229    \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
230    \let\@evenhead\@empty
231    \let\@evenfoot\@oddfoot}
232 \let\ps@jpl@in\ps@plain
233 \def\ps@headnombre{\let\@mkboth\@gobbletwo
234     \let\ps@jpl@in\ps@headnombre
235   \def\@evenhead{\hfil\thepage}%
236   \def\@oddhead{\thepage\hfil}%
237   \let\@oddfoot\@empty\let\@evenfoot\@empty}
238 \def\ps@footnombre{\let\@mkboth\@gobbletwo
239     \let\ps@jpl@in\ps@footnombre
240   \def\@evenfoot{\hfil\thepage}%
241   \def\@oddfoot{\thepage\hfil}%
242   \let\@oddhead\@empty\let\@evenhead\@empty}
243 \if@twoside
244   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
245     \let\@oddfoot\@empty\let\@evenfoot\@empty
246     \def\@evenhead{{\leftmark}\hfil\thepage}%
247     \def\@oddhead{\thepage\hfil\rightmark}%
248     \let\@mkboth\markboth
249   \def\chaptermark##1{\markboth{%
250      \ifnum \c@secnumdepth >\m@ne
251        \if@mainmatter
252          \@chapapp\thechapter\@chappos\hskip1\zw
253        \fi
254      \fi
255      ##1}{}}%
256   \def\sectionmark##1{\markright{%
257      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
258      ##1}}%
259   }
260 \else % if not twoside
261   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
262     \let\@oddfoot\@empty
263     \def\@oddhead{\thepage\hfil\rightmark}%
264     \let\@mkboth\markboth
265 \def\chaptermark##1{\markright{%
266    \ifnum \c@secnumdepth >\m@ne
267      \if@mainmatter
268        \@chapapp\thechapter\@chappos\hskip1\zw
269      \fi
270    \fi
271    ##1}}%
272   }
273 \fi
274 \if@twoside
275   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
276     \def\@evenhead{\hfil\leftmark}% right page
277     \def\@evenfoot{\hfil\thepage}% right page
278     \def\@oddhead{\rightmark\hfil}% left page
279     \def\@oddfoot{\thepage\hfil}% left page
280   \let\@mkboth\markboth
281 \def\chaptermark##1{\markboth{%
282      \ifnum \c@secnumdepth >\m@ne
283        \if@mainmatter
284          \@chapapp\thechapter\@chappos\hskip1\zw
285        \fi
286      \fi
287      ##1}{}}%
288   \def\sectionmark##1{\markright{%
289      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
290      ##1}}%
291   }
292 \else % if one column
293   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
294     \def\@oddhead{\rightmark\hfil}%
295     \def\@oddfoot{\thepage\hfil}%
296     \let\@mkboth\markboth
297   \def\chaptermark##1{\markright{%
298      \ifnum \c@secnumdepth >\m@ne
299        \if@mainmatter
300          \@chapapp\thechapter\@chappos\hskip1\zw
301        \fi
302      \fi
303      ##1}}%
304   }
305 \fi
306 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
307   \let\@oddfoot\@empty\let\@evenfoot\@empty
308   \def\@evenhead{{\leftmark}\hfil\thepage}%
309   \def\@oddhead{\thepage\hfil\rightmark}%
310   \let\@mkboth\@gobbletwo
311   \let\chaptermark\@gobble
312   \let\sectionmark\@gobble
313 }
314 \if@compatibility
315 \newenvironment{titlepage}
316     {%
317      \cleardoublepage
318      \if@twocolumn\@restonecoltrue\onecolumn
319      \else\@restonecolfalse\newpage\fi
320      \thispagestyle{empty}%
321      \setcounter{page}\z@
322     }%
323     {\if@restonecol\twocolumn\else\newpage\fi
324     }
325 \else
326 \newenvironment{titlepage}
327     {%
328       \pltx@cleartooddpage %% 2017/02/15
329       \if@twocolumn
330         \@restonecoltrue\onecolumn
331       \else
332         \@restonecolfalse\newpage
333       \fi
334       \thispagestyle{empty}%
335       \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017/02/15
336     }%
337     {\if@restonecol\twocolumn \else \newpage \fi
338      \if@twoside\else
339         \setcounter{page}\@ne
340      \fi
341     }
342 \fi
343 \def\p@thanks#1{\footnotemark
344   \protected@xdef\@thanks{\@thanks
345     \protect{\noindent\hbox{\yoko$\m@th^\thefootnote$}#1\protect\par}}}
346 \if@titlepage
347   \newcommand{\maketitle}{\begin{titlepage}%
348   \let\footnotesize\small
349   \let\footnoterule\relax
350   \let\thanks\p@thanks
351   \let\footnote\thanks
352   \vbox to\textheight\bgroup\tate\hsize\textwidth
353   \null\vfil
354   \vskip 60\p@
355   \begin{center}%
356     {\LARGE \@title \par}%
357     \vskip 3em%
358     {\Large
359      \lineskip .75em%
360       \begin{tabular}[t]{c}%
361         \@author
362       \end{tabular}\par}%
363       \vskip 1.5em%
364     {\large \@date \par}%       % Set date in \large size.
365   \end{center}\par
366   \vfil{\centering\@thanks}\vfil\null
367   \egroup
368   \end{titlepage}%
369   \setcounter{footnote}{0}%
370   \global\let\thanks\relax
371   \global\let\maketitle\relax
372   \global\let\p@thanks\relax
373   \global\let\@thanks\@empty
374   \global\let\@author\@empty
375   \global\let\@date\@empty
376   \global\let\@title\@empty
377   \global\let\title\relax
378   \global\let\author\relax
379   \global\let\date\relax
380   \global\let\and\relax
381   }%
382 \else
383   \newcommand{\maketitle}{\par
384   \begingroup
385     \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
386     \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
387       \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
388     \long\def\@makefntext##1{\parindent 1\zw\noindent
389        \hb@xt@ 2\zw{\hss\@makefnmark}##1}%
390     \if@twocolumn
391       \ifnum \col@number=\@ne \@maketitle
392       \else \twocolumn[\@maketitle]%
393       \fi
394     \else
395       \newpage
396       \global\@topnum\z@   % Prevents figures from going at top of page.
397       \@maketitle
398     \fi
399      \thispagestyle{jpl@in}\@thanks
400   \endgroup
401   \setcounter{footnote}{0}%
402   \global\let\thanks\relax
403   \global\let\maketitle\relax
404   \global\let\@maketitle\relax
405   \global\let\p@thanks\relax
406   \global\let\@thanks\@empty
407   \global\let\@author\@empty
408   \global\let\@date\@empty
409   \global\let\@title\@empty
410   \global\let\title\relax
411   \global\let\author\relax
412   \global\let\date\relax
413   \global\let\and\relax
414   }
415   \def\@maketitle{%
416   \newpage\null
417   \vskip 2em%
418   \begin{center}%
419   \let\footnote\p@thanks
420     {\LARGE \@title \par}%
421     \vskip 1.5em%
422     {\large
423       \lineskip .5em%
424       \begin{tabular}[t]{c}%
425         \@author
426       \end{tabular}\par}%
427     \vskip 1em%
428     {\large \@date}%
429   \end{center}%
430   \par\vskip 1.5em}
431 \fi
432 \newcommand*{\chaptermark}[1]{}
433 \setcounter{secnumdepth}{2}
434 \newcounter{part}
435 \newcounter{chapter}
436 \newcounter{section}[chapter]
437 \newcounter{subsection}[section]
438 \newcounter{subsubsection}[subsection]
439 \newcounter{paragraph}[subsubsection]
440 \newcounter{subparagraph}[paragraph]
441 \renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
442 \renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
443 \renewcommand{\thesection}{\thechapter・\rensuji{\@arabic\c@section}}
444 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
445 \renewcommand{\thesubsubsection}{%
446    \thesubsection・\rensuji{\@arabic\c@subsubsection}}
447 \renewcommand{\theparagraph}{%
448    \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
449 \renewcommand{\thesubparagraph}{%
450    \theparagraph・\rensuji{\@arabic\c@subparagraph}}
451 \newcommand{\@chapapp}{\prechaptername}
452 \newcommand{\@chappos}{\postchaptername}
453 \newcommand{\frontmatter}{%
454   \pltx@cleartooddpage
455   \@mainmatterfalse\pagenumbering{roman}}
456 \newcommand{\mainmatter}{%
457   \pltx@cleartooddpage
458   \@mainmattertrue\pagenumbering{arabic}}
459 \newcommand{\backmatter}{%
460   \if@openleft \cleardoublepage \else
461   \if@openright \cleardoublepage \else \clearpage \fi \fi
462   \@mainmatterfalse}
463 \newcommand{\part}{%
464   \if@openleft \cleardoublepage \else
465   \if@openright \cleardoublepage \else \clearpage \fi \fi
466   \thispagestyle{empty}%
467   \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
468   \null\vfil
469   \secdef\@part\@spart}
470 \def\@part[#1]#2{%
471   \ifnum \c@secnumdepth >-2\relax
472     \refstepcounter{part}%
473     \addcontentsline{toc}{part}{%
474        \prepartname\thepart\postpartname\hspace{1em}#1}%
475   \else
476     \addcontentsline{toc}{part}{#1}%
477   \fi
478   \markboth{}{}%
479   {\centering
480    \interlinepenalty\@M\normalfont
481    \ifnum \c@secnumdepth >-2\relax
482      \huge\bfseries\prepartname\thepart\postpartname
483      \par\vskip20\p@
484    \fi
485    \Huge\bfseries#2\par}%
486    \@endpart}
487 \def\@spart#1{{%
488   \centering
489   \interlinepenalty\@M\normalfont
490   \Huge\bfseries#1\par}%
491   \@endpart}
492 \def\@endpart{\vfil\newpage
493    \if@twoside
494     \if@openleft %% \if@openleft added (2017/02/15)
495      \null\thispagestyle{empty}\newpage
496     \else\if@openright %% \if@openright added (2016/12/18)
497      \null\thispagestyle{empty}\newpage
498     \fi\fi %% added (2016/12/18, 2017/02/15)
499    \fi
500    \if@tempswa\twocolumn\fi}
501 \newcommand{\chapter}{%
502   \if@openleft \cleardoublepage \else
503   \if@openright \cleardoublepage \else \clearpage \fi \fi
504   \thispagestyle{jpl@in}%
505   \global\@topnum\z@
506   \@afterindenttrue
507   \secdef\@chapter\@schapter}
508 \def\@chapter[#1]#2{%
509   \ifnum \c@secnumdepth >\m@ne
510     \if@mainmatter
511     \refstepcounter{chapter}%
512     \typeout{\@chapapp\space\thechapter\space\@chappos}%
513     \addcontentsline{toc}{chapter}%
514       {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
515     \else\addcontentsline{toc}{chapter}{#1}\fi
516   \else
517     \addcontentsline{toc}{chapter}{#1}%
518   \fi
519   \chaptermark{#1}%
520   \addtocontents{lof}{\protect\addvspace{10\p@}}%
521   \addtocontents{lot}{\protect\addvspace{10\p@}}%
522   \@makechapterhead{#2}\@afterheading}
523 \def\@makechapterhead#1{\hbox{}%
524   \vskip2\Cvs
525   {\parindent\z@
526    \raggedright
527    \normalfont\huge\bfseries
528    \leavevmode
529    \ifnum \c@secnumdepth >\m@ne
530      \setlength\@tempdima{\linewidth}%
531     \if@mainmatter
532      \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
533      \addtolength\@tempdima{-\wd\z@}%
534      \unhbox\z@\nobreak
535     \fi
536      \vtop{\hsize\@tempdima#1}%
537    \else
538      #1\relax
539    \fi}\nobreak\vskip3\Cvs}
540 \def\@schapter#1{%
541   \@makeschapterhead{#1}\@afterheading
542 }
543 \def\@makeschapterhead#1{\hbox{}%
544   \vskip2\Cvs
545   {\parindent\z@
546    \raggedright
547    \normalfont\huge\bfseries
548    \leavevmode
549    \setlength\@tempdima{\linewidth}%
550    \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
551 \newcommand{\section}{\@startsection{section}{1}{\z@}%
552    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
553    {.5\Cvs \@plus.3\Cvs}%
554    {\normalfont\Large\bfseries}}
555 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
556    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
557    {.5\Cvs \@plus.3\Cvs}%
558    {\normalfont\large\bfseries}}
559 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
560    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
561    {.5\Cvs \@plus.3\Cvs}%
562    {\normalfont\normalsize\bfseries}}
563 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
564    {3.25ex \@plus 1ex \@minus .2ex}%
565    {-1em}%
566    {\normalfont\normalsize\bfseries}}
567 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
568    {3.25ex \@plus 1ex \@minus .2ex}%
569    {-1em}%
570    {\normalfont\normalsize\bfseries}}
571 \newcommand{\appendix}{\par
572   \setcounter{chapter}{0}%
573   \setcounter{section}{0}%
574   \renewcommand{\@chapapp}{\appendixname}%
575   \renewcommand{\@chappos}\space%
576   \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
577 \if@twocolumn
578   \setlength\leftmargini {2em}
579 \else
580   \setlength\leftmargini {2.5em}
581 \fi
582 \setlength\leftmarginii  {2.2em}
583 \setlength\leftmarginiii {1.87em}
584 \setlength\leftmarginiv  {1.7em}
585 \if@twocolumn
586   \setlength\leftmarginv {.5em}
587   \setlength\leftmarginvi{.5em}
588 \else
589   \setlength\leftmarginv {1em}
590   \setlength\leftmarginvi{1em}
591 \fi
592 \setlength  \labelsep  {.5em}
593 \setlength  \labelwidth{\leftmargini}
594 \addtolength\labelwidth{-\labelsep}
595 \@beginparpenalty -\@lowpenalty
596 \@endparpenalty   -\@lowpenalty
597 \@itempenalty     -\@lowpenalty
598 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
599 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
600 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
601 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
602 \newcommand{\labelenumi}{\theenumi}
603 \newcommand{\labelenumii}{\theenumii}
604 \newcommand{\labelenumiii}{\theenumiii}
605 \newcommand{\labelenumiv}{\theenumiv}
606 \renewcommand{\p@enumii}{\theenumi}
607 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
608 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
609 \renewenvironment{enumerate}
610   {\ifnum \@enumdepth >\thr@@\@toodeep\else
611    \advance\@enumdepth\@ne
612    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
613    \expandafter \list \csname label\@enumctr\endcsname{%
614       \ifnum\ltjgetparameter{direction}=3
615          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
616            \else\topsep\z@\fi
617          \parskip\z@ \itemsep\z@ \parsep\z@
618          \labelwidth1\zw \labelsep.3\zw
619          \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
620            \else\leftmargin\leftskip\fi
621          \advance\leftmargin 1\zw
622       \fi
623          \usecounter{\@enumctr}%
624          \def\makelabel##1{\hss\llap{##1}}}%
625    \fi}{\endlist}
626 \newcommand{\labelitemi}{\labelitemfont \textbullet}
627 \newcommand{\labelitemii}{%
628   \ifnum\ltjgetparameter{direction}=3
629      {\labelitemfont \textcircled{~}}
630   \else
631      {\labelitemfont \bfseries\textendash}
632   \fi
633 }
634 \newcommand{\labelitemiii}{\labelitemfont \textasteriskcentered}
635 \newcommand{\labelitemiv}{\labelitemfont \textperiodcentered}
636 \newcommand\labelitemfont{\normalfont}
637 \renewenvironment{itemize}
638   {\ifnum \@itemdepth >\thr@@\@toodeep\else
639    \advance\@itemdepth\@ne
640    \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
641    \expandafter \list \csname \@itemitem\endcsname{%
642       \ifnum\ltjgetparameter{direction}=3
643          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
644            \else\topsep\z@\fi
645          \parskip\z@ \itemsep\z@ \parsep\z@
646          \labelwidth1\zw \labelsep.3\zw
647          \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
648            \else\leftmargin\leftskip\fi
649          \advance\leftmargin 1\zw
650       \fi
651          \def\makelabel##1{\hss\llap{##1}}}%
652    \fi}{\endlist}
653 \newenvironment{description}
654   {\list{}{\labelwidth\z@ \itemindent-\leftmargin
655    \ifnum\ltjgetparameter{direction}=3
656      \leftmargin\leftskip \advance\leftmargin3\Cwd
657      \rightmargin\rightskip
658      \labelsep=1\zw \itemsep\z@
659      \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
660    \fi
661            \let\makelabel\descriptionlabel}}{\endlist}
662 \newcommand{\descriptionlabel}[1]{%
663    \hspace\labelsep\normalfont\bfseries #1}
664 \newenvironment{verse}
665   {\let\\\@centercr
666    \list{}{\itemsep\z@ \itemindent -1.5em%
667            \listparindent\itemindent
668            \rightmargin\leftmargin \advance\leftmargin 1.5em}%
669            \item\relax}{\endlist}
670 \newenvironment{quotation}
671   {\list{}{\listparindent 1.5em%
672            \itemindent\listparindent
673            \rightmargin\leftmargin
674            \parsep\z@ \@plus\p@}%
675            \item\relax}{\endlist}
676 \newenvironment{quote}
677   {\list{}{\rightmargin\leftmargin}%
678            \item\relax}{\endlist}
679 \newcounter{figure}[chapter]
680 \renewcommand{\thefigure}{%
681   \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
682 \def\fps@figure{tbp}
683 \def\ftype@figure{1}
684 \def\ext@figure{lof}
685 \def\fnum@figure{\figurename\thefigure}
686 \newenvironment{figure}
687                {\@float{figure}}
688                {\end@float}
689 \newenvironment{figure*}
690                {\@dblfloat{figure}}
691                {\end@dblfloat}
692 \newcounter{table}[chapter]
693 \renewcommand{\thetable}{%
694   \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
695 \def\fps@table{tbp}
696 \def\ftype@table{2}
697 \def\ext@table{lot}
698 \def\fnum@table{\tablename\thetable}
699 \newenvironment{table}
700                {\@float{table}}
701                {\end@float}
702 \newenvironment{table*}
703                {\@dblfloat{table}}
704                {\end@dblfloat}
705 \newlength\abovecaptionskip
706 \newlength\belowcaptionskip
707 \setlength\abovecaptionskip{10\p@}
708 \setlength\belowcaptionskip{0\p@}
709 \long\def\@makecaption#1#2{%
710   \vskip\abovecaptionskip
711   \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
712     \else\sbox\@tempboxa{#1: #2}%
713   \fi
714   \ifdim \wd\@tempboxa >\hsize
715     \ifnum\ltjgetparameter{direction}=3  #1\hskip1\zw#2\relax\par
716       \else #1: #2\relax\par\fi
717   \else
718     \global \@minipagefalse
719     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
720   \fi
721   \vskip\belowcaptionskip}
722 \setlength\arraycolsep{5\p@}
723 \setlength\tabcolsep{6\p@}
724 \setlength\arrayrulewidth{.4\p@}
725 \setlength\doublerulesep{2\p@}
726 \setlength\tabbingsep{\labelsep}
727 \skip\@mpfootins = \skip\footins
728 \setlength\fboxsep{3\p@}
729 \setlength\fboxrule{.4\p@}
730 \@addtoreset{equation}{chapter}
731 \renewcommand{\theequation}{%
732   \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
733 \unless\ifltj@disablejfam
734 \if@compatibility\else
735   \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
736   \DeclareSymbolFontAlphabet{\mathmc}{mincho}
737   \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
738   \jfam\symmincho
739   \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
740 \fi
741 \if@mathrmmc
742   \AtBeginDocument{%
743   \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
744   \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
745 }%
746 \fi
747 \fi
748 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
749 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
750 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
751 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
752 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
753 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
754 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
755 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
756 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
757 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
758 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
759 \setcounter{tocdepth}{2}
760 \newcommand{\@pnumwidth}{1.55em}
761 \newcommand{\@tocrmarg}{2.55em}
762 \newcommand{\@dotsep}{4.5}
763 \newdimen\toclineskip
764 \setlength\toclineskip{2\p@}
765 \newdimen\@lnumwidth
766 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
767 \def\@dottedtocline#1#2#3#4#5{%
768   \ifnum #1>\c@tocdepth \else
769     \vskip\toclineskip \@plus.2\p@
770     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
771      \parindent #2\relax\@afterindenttrue
772      \interlinepenalty\@M
773      \leavevmode
774      \@lnumwidth #3\relax
775      \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
776      {#4}\nobreak
777      \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
778      \hfill\nobreak
779      \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
780      \par}%
781   \fi}
782 \providecommand*\protected@file@percent{}
783 \def\addcontentsline#1#2#3{%
784   \protected@write\@auxout
785     {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
786      \@temptokena{\rensuji{\thepage}}}%
787     {\string\@writefile{#1}%
788        {\protect\contentsline{#2}{#3}{\the\@temptokena}%
789 \protected@file@percent}}%
790 }
791 \newcommand{\tableofcontents}{%
792   \if@twocolumn\@restonecoltrue\onecolumn
793   \else\@restonecolfalse\fi
794   \chapter*{\contentsname
795     \@mkboth{\contentsname}{\contentsname}%
796   }\@starttoc{toc}%
797   \if@restonecol\twocolumn\fi
798 }
799 \newcommand*{\l@part}[2]{%
800   \ifnum \c@tocdepth >-2\relax
801     \addpenalty{-\@highpenalty}%
802     \addvspace{2.25em \@plus\p@}%
803     \begingroup
804     \parindent\z@\rightskip\@pnumwidth
805     \parfillskip-\@pnumwidth
806     {\leavevmode\large\bfseries
807      \setlength\@lnumwidth{4\zw}%
808      #1\hfil\nobreak
809      \hb@xt@\@pnumwidth{\hss#2}}\par
810     \nobreak
811     \global\@nobreaktrue
812     \everypar{\global\@nobreakfalse\everypar{}}%
813      \endgroup
814   \fi}
815 \newcommand*{\l@chapter}[2]{%
816   \ifnum \c@tocdepth >\m@ne
817     \addpenalty{-\@highpenalty}%
818     \addvspace{1.0em \@plus\p@}%
819     \begingroup
820       \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
821       \leavevmode\bfseries
822       \setlength\@lnumwidth{4\zw}%
823       \advance\leftskip\@lnumwidth \hskip-\leftskip
824       #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
825       \penalty\@highpenalty
826     \endgroup
827   \fi}
828 \newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
829 \newcommand*{\l@subsection}   {\@dottedtocline{2}{2\zw}{6\zw}}
830 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
831 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{4\zw}{9\zw}}
832 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
833 \newcommand{\listoffigures}{%
834   \if@twocolumn\@restonecoltrue\onecolumn
835   \else\@restonecolfalse\fi
836   \chapter*{\listfigurename}%
837   \@mkboth{\listfigurename}{\listfigurename}%
838   \@starttoc{lof}%
839   \if@restonecol\twocolumn\fi
840 }
841 \newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
842 \newcommand{\listoftables}{%
843   \if@twocolumn\@restonecoltrue\onecolumn
844   \else\@restonecolfalse\fi
845   \chapter*{\listtablename}%
846   \@mkboth{\listtablename}{\listtablename}%
847   \@starttoc{lot}%
848   \if@restonecol\twocolumn\fi
849 }
850 \let\l@table\l@figure
851 \newdimen\bibindent
852 \setlength\bibindent{1.5em}
853 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
854 \newenvironment{thebibliography}[1]
855 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
856    \list{\@biblabel{\@arabic\c@enumiv}}%
857         {\settowidth\labelwidth{\@biblabel{#1}}%
858          \leftmargin\labelwidth
859          \advance\leftmargin\labelsep
860          \@openbib@code
861          \usecounter{enumiv}%
862          \let\p@enumiv\@empty
863          \renewcommand\theenumiv{\@arabic\c@enumiv}}%
864    \sloppy
865    \clubpenalty4000
866    \@clubpenalty\clubpenalty
867    \widowpenalty4000%
868    \sfcode`\.\@m}
869   {\def\@noitemerr
870     {\@latex@warning{Empty `thebibliography' environment}}%
871    \endlist}
872 \let\@openbib@code\@empty
873 \newenvironment{theindex}
874   {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
875    \twocolumn[\@makeschapterhead{\indexname}]%
876    \@mkboth{\indexname}{\indexname}%
877    \thispagestyle{jpl@in}\parindent\z@
878    \parskip\z@ \@plus .3\p@\relax
879    \columnseprule\z@ \columnsep 35\p@
880    \let\item\@idxitem}
881   {\if@restonecol\onecolumn\else\clearpage\fi}
882 \newcommand{\@idxitem}{\par\hangindent 40\p@}
883 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
884 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
885 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
886 \renewcommand{\footnoterule}{%
887   \kern-3\p@
888   \hrule\@width.4\columnwidth
889   \kern2.6\p@}
890 \@addtoreset{footnote}{chapter}
891 \newcommand\@makefntext[1]{\parindent 1\zw
892   \noindent\hb@xt@ 2\zw{\hss\@makefnmark}#1}
893 \newif\if西暦 \西暦true
894 \def\西暦{\西暦true}
895 \def\和暦{\西暦false}
896 \newcount\heisei \heisei\year \advance\heisei-1988\relax
897 \def\pltx@today@year@#1{%
898   \ifnum\numexpr\year-#1=1 元\else
899     \ifnum\ltjgetparameter{direction}=3
900       \kansuji\numexpr\year-#1\relax
901     \else
902       \number\numexpr\year-#1\relax\nobreak
903     \fi
904   \fi 年
905 }
906 \def\pltx@today@year{%
907   \ifnum\numexpr\year*10000+\month*100+\day<19890108
908     昭和\pltx@today@year@{1925}%
909   \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
910     平成\pltx@today@year@{1988}%
911   \else
912     令和\pltx@today@year@{2018}%
913   \fi\fi}
914 \def\today{{%
915   \if西暦
916     \ifnum\ltjgetparameter{direction}=3 \kansuji\year
917     \else\number\year\nobreak\fi 年
918   \else
919     \pltx@today@year
920   \fi
921   \ifnum\ltjgetparameter{direction}=3
922     \kansuji\month 月
923     \kansuji\day 日
924   \else
925     \number\month\nobreak 月
926     \number\day\nobreak 日
927   \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}{付 録}
940 \pagestyle{headings}
941 \pagenumbering{arabic}
942 \raggedbottom
943 \fnfixbottomtrue % 2017-02-19
944 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
945 \if@twocolumn
946   \twocolumn
947   \sloppy
948 \else
949   \onecolumn
950 \fi
951 \normalmarginpar
952 \@mparswitchfalse
953 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
954 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
955 \endinput
956 %%
957 %% End of file `ltjtbook.cls'.