OSDN Git Service

fix #39463; added dummy disablejfam option in classes
[luatex-ja/luatexja.git] / src / ltjbook.cls
1 %%
2 %% This is file `ltjbook.cls',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ltjclasses.dtx  (with options: `book,yoko')
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 ltjbook.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
25 \NeedsTeXFormat{LaTeX2e}
26 \ProvidesClass{ltjbook}
27   [2019/04/06 v1.8b-ltj-16
28  Standard LuaLaTeX-ja class]
29 \RequirePackage{luatexja}
30 \newcounter{@paper}
31 \newif\if@landscape \@landscapefalse
32 \newcommand{\@ptsize}{}
33 \newif\if@restonecol
34 \newif\if@titlepage
35 \@titlepagetrue
36 \newif\if@openright
37 \newif\if@openleft
38 \newif\if@mainmatter \@mainmattertrue
39 \hour\time \divide\hour by 60\relax
40 \@tempcnta\hour \multiply\@tempcnta 60\relax
41 \minute\time \advance\minute-\@tempcnta
42 \newif\if@stysize \@stysizefalse
43 \newif\if@mathrmmc \@mathrmmcfalse
44 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
45   \setlength\paperheight {297mm}%
46   \setlength\paperwidth  {210mm}}
47 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
48   \setlength\paperheight {210mm}
49   \setlength\paperwidth  {148mm}}
50 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
51   \setlength\paperheight {364mm}
52   \setlength\paperwidth  {257mm}}
53 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
54   \setlength\paperheight {257mm}
55   \setlength\paperwidth  {182mm}}
56 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
57   \setlength\paperheight {297mm}%
58   \setlength\paperwidth  {210mm}}
59 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
60   \setlength\paperheight {210mm}
61   \setlength\paperwidth  {148mm}}
62 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
63   \setlength\paperheight {364mm}
64   \setlength\paperwidth  {257mm}}
65 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
66   \setlength\paperheight {257mm}
67   \setlength\paperwidth  {182mm}}
68 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
69   \setlength\paperheight {297mm}%
70   \setlength\paperwidth  {210mm}}
71 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
72   \setlength\paperheight {210mm}
73   \setlength\paperwidth  {148mm}}
74 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
75   \setlength\paperheight {364mm}
76   \setlength\paperwidth  {257mm}}
77 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
78   \setlength\paperheight {257mm}
79   \setlength\paperwidth  {182mm}}
80 \if@compatibility
81   \renewcommand{\@ptsize}{0}
82 \else
83   \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
84 \fi
85 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
86 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
87 \DeclareOption{landscape}{\@landscapetrue
88   \setlength\@tempdima{\paperheight}%
89   \setlength\paperheight{\paperwidth}%
90   \setlength\paperwidth{\@tempdima}}
91 \DeclareOption{tombow}{%
92   \tombowtrue \tombowdatetrue
93   \setlength{\@tombowwidth}{.1\p@}%
94   \@bannertoken{%
95      \jobname\space(\number\year-\two@digits\month-\two@digits\day
96      \space\two@digits\hour:\two@digits\minute)}%
97   \maketombowbox}
98 \DeclareOption{tombo}{%
99   \tombowtrue \tombowdatefalse
100   \setlength{\@tombowwidth}{.1\p@}%
101   \maketombowbox}
102 \DeclareOption{mentuke}{%
103   \tombowtrue \tombowdatefalse
104   \setlength{\@tombowwidth}{\z@}%
105   \maketombowbox}
106 \DeclareOption{tate}{%
107   \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
108 }
109 \DeclareOption{oneside}{\@twosidefalse}
110 \DeclareOption{twoside}{\@twosidetrue}
111 \DeclareOption{onecolumn}{\@twocolumnfalse}
112 \DeclareOption{twocolumn}{\@twocolumntrue}
113 \DeclareOption{titlepage}{\@titlepagetrue}
114 \DeclareOption{notitlepage}{\@titlepagefalse}
115 \if@compatibility
116 \@openrighttrue
117 \else
118 \DeclareOption{openright}{\@openrighttrue\@openleftfalse}
119 \DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
120 \DeclareOption{openany}{\@openrightfalse\@openleftfalse}
121 \fi
122 \DeclareOption{leqno}{\input{leqno.clo}}
123 \DeclareOption{fleqn}{\input{fleqn.clo}}
124 \DeclareOption{openbib}{%
125   \AtEndOfPackage{%
126    \renewcommand\@openbib@code{%
127       \advance\leftmargin\bibindent
128       \itemindent -\bibindent
129       \listparindent \itemindent
130       \parsep \z@
131       }%
132    \renewcommand\newblock{\par}}}
133 \if@compatibility
134   \@mathrmmctrue
135 \else
136   \DeclareOption{mathrmmc}{\@mathrmmctrue}
137 \fi
138 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
139 \DeclareOption{final}{\setlength\overfullrule{0pt}}
140 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
141   function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
142   'ltj.jclasses_load_jfm', 1)}
143 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
144 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
145 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
146 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
147 \ltjglobalsetparameter{differentjfm=both}
148 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
149 \DeclareOption{disablejfam}{}
150 \ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright}
151 \ProcessOptions\relax
152 \input{ltjbk1\@ptsize.clo}
153 \def\Cjascale{0.962216}
154 \if@stysize
155   \setlength\columnsep{2\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{\thepage\hfil}%
236   \def\@oddhead{\hfil\thepage}%
237   \let\@oddfoot\@empty\let\@evenfoot\@empty}
238 \def\ps@footnombre{\let\@mkboth\@gobbletwo
239     \let\ps@jpl@in\ps@footnombre
240   \def\@evenfoot{\thepage\hfil}%
241   \def\@oddfoot{\hfil\thepage}%
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{\thepage\hfil\leftmark}%
247     \def\@oddhead{{\rightmark}\hfil\thepage}%
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{{\rightmark}\hfil\thepage}%
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{\leftmark\hfil}% right page
277     \def\@evenfoot{\thepage\hfil}% right page
278     \def\@oddhead{\hfil\rightmark}% left page
279     \def\@oddfoot{\hfil\thepage}% 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{\hfil\rightmark}%
295     \def\@oddfoot{\hfil\thepage}%
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{\thepage\hfil\leftmark}%
309   \def\@oddhead{{\rightmark}\hfil\thepage}%
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\footnote\thanks
351   \null\vfil
352   \vskip 60\p@
353   \begin{center}%
354     {\LARGE \@title \par}%
355     \vskip 3em%
356     {\Large
357      \lineskip .75em%
358       \begin{tabular}[t]{c}%
359         \@author
360       \end{tabular}\par}%
361       \vskip 1.5em%
362     {\large \@date \par}%       % Set date in \large size.
363   \end{center}\par
364   \@thanks\vfil\null
365   \end{titlepage}%
366   \setcounter{footnote}{0}%
367   \global\let\thanks\relax
368   \global\let\maketitle\relax
369   \global\let\p@thanks\relax
370   \global\let\@thanks\@empty
371   \global\let\@author\@empty
372   \global\let\@date\@empty
373   \global\let\@title\@empty
374   \global\let\title\relax
375   \global\let\author\relax
376   \global\let\date\relax
377   \global\let\and\relax
378   }%
379 \else
380   \newcommand{\maketitle}{\par
381   \begingroup
382     \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
383     \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
384       \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
385      \long\def\@makefntext##1{\parindent 1em\noindent
386        \hb@xt@1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
387     \if@twocolumn
388       \ifnum \col@number=\@ne \@maketitle
389       \else \twocolumn[\@maketitle]%
390       \fi
391     \else
392       \newpage
393       \global\@topnum\z@   % Prevents figures from going at top of page.
394       \@maketitle
395     \fi
396      \thispagestyle{jpl@in}\@thanks
397   \endgroup
398   \setcounter{footnote}{0}%
399   \global\let\thanks\relax
400   \global\let\maketitle\relax
401   \global\let\@maketitle\relax
402   \global\let\p@thanks\relax
403   \global\let\@thanks\@empty
404   \global\let\@author\@empty
405   \global\let\@date\@empty
406   \global\let\@title\@empty
407   \global\let\title\relax
408   \global\let\author\relax
409   \global\let\date\relax
410   \global\let\and\relax
411   }
412   \def\@maketitle{%
413   \newpage\null
414   \vskip 2em%
415   \begin{center}%
416   \let\footnote\thanks
417     {\LARGE \@title \par}%
418     \vskip 1.5em%
419     {\large
420       \lineskip .5em%
421       \begin{tabular}[t]{c}%
422         \@author
423       \end{tabular}\par}%
424     \vskip 1em%
425     {\large \@date}%
426   \end{center}%
427   \par\vskip 1.5em}
428 \fi
429 \newcommand*{\chaptermark}[1]{}
430 \setcounter{secnumdepth}{2}
431 \newcounter{part}
432 \newcounter{chapter}
433 \newcounter{section}[chapter]
434 \newcounter{subsection}[section]
435 \newcounter{subsubsection}[subsection]
436 \newcounter{paragraph}[subsubsection]
437 \newcounter{subparagraph}[paragraph]
438 \renewcommand{\thepart}{\@Roman\c@part}
439 \renewcommand{\thechapter}{\@arabic\c@chapter}
440 \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
441 \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
442 \renewcommand{\thesubsubsection}{%
443    \thesubsection.\@arabic\c@subsubsection}
444 \renewcommand{\theparagraph}{%
445    \thesubsubsection.\@arabic\c@paragraph}
446 \renewcommand{\thesubparagraph}{%
447    \theparagraph.\@arabic\c@subparagraph}
448 \newcommand{\@chapapp}{\prechaptername}
449 \newcommand{\@chappos}{\postchaptername}
450 \newcommand{\frontmatter}{%
451   \pltx@cleartooddpage
452   \@mainmatterfalse\pagenumbering{roman}}
453 \newcommand{\mainmatter}{%
454   \pltx@cleartooddpage
455   \@mainmattertrue\pagenumbering{arabic}}
456 \newcommand{\backmatter}{%
457   \if@openleft \cleardoublepage \else
458   \if@openright \cleardoublepage \else \clearpage \fi \fi
459   \@mainmatterfalse}
460 \newcommand{\part}{%
461   \if@openleft \cleardoublepage \else
462   \if@openright \cleardoublepage \else \clearpage \fi \fi
463   \thispagestyle{empty}%
464   \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
465   \null\vfil
466   \secdef\@part\@spart}
467 \def\@part[#1]#2{%
468   \ifnum \c@secnumdepth >-2\relax
469     \refstepcounter{part}%
470     \addcontentsline{toc}{part}{%
471        \prepartname\thepart\postpartname\hspace{1em}#1}%
472   \else
473     \addcontentsline{toc}{part}{#1}%
474   \fi
475   \markboth{}{}%
476   {\centering
477    \interlinepenalty\@M\normalfont
478    \ifnum \c@secnumdepth >-2\relax
479      \huge\bfseries\prepartname\thepart\postpartname
480      \par\vskip20\p@
481    \fi
482    \Huge\bfseries#2\par}%
483    \@endpart}
484 \def\@spart#1{{%
485   \centering
486   \interlinepenalty\@M\normalfont
487   \Huge\bfseries#1\par}%
488   \@endpart}
489 \def\@endpart{\vfil\newpage
490    \if@twoside
491     \if@openleft %% \if@openleft added (2017/02/15)
492      \null\thispagestyle{empty}\newpage
493     \else\if@openright %% \if@openright added (2016/12/18)
494      \null\thispagestyle{empty}\newpage
495     \fi\fi %% added (2016/12/18, 2017/02/15)
496    \fi
497    \if@tempswa\twocolumn\fi}
498 \newcommand{\chapter}{%
499   \if@openleft \cleardoublepage \else
500   \if@openright \cleardoublepage \else \clearpage \fi \fi
501   \thispagestyle{jpl@in}%
502   \global\@topnum\z@
503   \@afterindenttrue
504   \secdef\@chapter\@schapter}
505 \def\@chapter[#1]#2{%
506   \ifnum \c@secnumdepth >\m@ne
507     \if@mainmatter
508     \refstepcounter{chapter}%
509     \typeout{\@chapapp\space\thechapter\space\@chappos}%
510     \addcontentsline{toc}{chapter}%
511       {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
512     \else\addcontentsline{toc}{chapter}{#1}\fi
513   \else
514     \addcontentsline{toc}{chapter}{#1}%
515   \fi
516   \chaptermark{#1}%
517   \addtocontents{lof}{\protect\addvspace{10\p@}}%
518   \addtocontents{lot}{\protect\addvspace{10\p@}}%
519   \@makechapterhead{#2}\@afterheading}
520 \def\@makechapterhead#1{\hbox{}%
521   \vskip2\Cvs
522   {\parindent\z@
523    \raggedright
524    \normalfont\huge\bfseries
525    \leavevmode
526    \ifnum \c@secnumdepth >\m@ne
527      \setlength\@tempdima{\linewidth}%
528     \if@mainmatter
529      \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
530      \addtolength\@tempdima{-\wd\z@}%
531      \unhbox\z@\nobreak
532     \fi
533      \vtop{\hsize\@tempdima#1}%
534    \else
535      #1\relax
536    \fi}\nobreak\vskip3\Cvs}
537 \def\@schapter#1{%
538   \@makeschapterhead{#1}\@afterheading
539 }
540 \def\@makeschapterhead#1{\hbox{}%
541   \vskip2\Cvs
542   {\parindent\z@
543    \raggedright
544    \normalfont\huge\bfseries
545    \leavevmode
546    \setlength\@tempdima{\linewidth}%
547    \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
548 \newcommand{\section}{\@startsection{section}{1}{\z@}%
549    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
550    {.5\Cvs \@plus.3\Cvs}%
551    {\normalfont\Large\bfseries}}
552 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
553    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
554    {.5\Cvs \@plus.3\Cvs}%
555    {\normalfont\large\bfseries}}
556 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
557    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
558    {.5\Cvs \@plus.3\Cvs}%
559    {\normalfont\normalsize\bfseries}}
560 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
561    {3.25ex \@plus 1ex \@minus .2ex}%
562    {-1em}%
563    {\normalfont\normalsize\bfseries}}
564 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
565    {3.25ex \@plus 1ex \@minus .2ex}%
566    {-1em}%
567    {\normalfont\normalsize\bfseries}}
568 \newcommand{\appendix}{\par
569   \setcounter{chapter}{0}%
570   \setcounter{section}{0}%
571   \renewcommand{\@chapapp}{\appendixname}%
572   \renewcommand{\@chappos}\space%
573   \renewcommand{\thechapter}{\@Alph\c@chapter}}
574 \if@twocolumn
575   \setlength\leftmargini {2em}
576 \else
577   \setlength\leftmargini {2.5em}
578 \fi
579 \setlength\leftmarginii  {2.2em}
580 \setlength\leftmarginiii {1.87em}
581 \setlength\leftmarginiv  {1.7em}
582 \if@twocolumn
583   \setlength\leftmarginv {.5em}
584   \setlength\leftmarginvi{.5em}
585 \else
586   \setlength\leftmarginv {1em}
587   \setlength\leftmarginvi{1em}
588 \fi
589 \setlength  \labelsep  {.5em}
590 \setlength  \labelwidth{\leftmargini}
591 \addtolength\labelwidth{-\labelsep}
592 \@beginparpenalty -\@lowpenalty
593 \@endparpenalty   -\@lowpenalty
594 \@itempenalty     -\@lowpenalty
595 \renewcommand{\theenumi}{\@arabic\c@enumi}
596 \renewcommand{\theenumii}{\@alph\c@enumii}
597 \renewcommand{\theenumiii}{\@roman\c@enumiii}
598 \renewcommand{\theenumiv}{\@Alph\c@enumiv}
599 \newcommand{\labelenumi}{\theenumi.}
600 \newcommand{\labelenumii}{(\theenumii)}
601 \newcommand{\labelenumiii}{\theenumiii.}
602 \newcommand{\labelenumiv}{\theenumiv.}
603 \renewcommand{\p@enumii}{\theenumi}
604 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
605 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
606 \renewenvironment{enumerate}
607   {\ifnum \@enumdepth >\thr@@\@toodeep\else
608    \advance\@enumdepth\@ne
609    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
610    \expandafter \list \csname label\@enumctr\endcsname{%
611       \ifnum\ltjgetparameter{direction}=3
612          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
613            \else\topsep\z@\fi
614          \parskip\z@ \itemsep\z@ \parsep\z@
615          \labelwidth1\zw \labelsep.3\zw
616          \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
617            \else\leftmargin\leftskip\fi
618          \advance\leftmargin 1\zw
619       \fi
620          \usecounter{\@enumctr}%
621          \def\makelabel##1{\hss\llap{##1}}}%
622    \fi}{\endlist}
623 \newcommand{\labelitemi}{\textbullet}
624 \newcommand{\labelitemii}{%
625   \ifnum\ltjgetparameter{direction}=3
626      {\textcircled{~}}
627   \else
628      {\normalfont\bfseries\textendash}
629   \fi
630 }
631 \newcommand{\labelitemiii}{\textasteriskcentered}
632 \newcommand{\labelitemiv}{\textperiodcentered}
633 \renewenvironment{itemize}
634   {\ifnum \@itemdepth >\thr@@\@toodeep\else
635    \advance\@itemdepth\@ne
636    \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
637    \expandafter \list \csname \@itemitem\endcsname{%
638       \ifnum\ltjgetparameter{direction}=3
639          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
640            \else\topsep\z@\fi
641          \parskip\z@ \itemsep\z@ \parsep\z@
642          \labelwidth1\zw \labelsep.3\zw
643          \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
644            \else\leftmargin\leftskip\fi
645          \advance\leftmargin 1\zw
646       \fi
647          \def\makelabel##1{\hss\llap{##1}}}%
648    \fi}{\endlist}
649 \newenvironment{description}
650   {\list{}{\labelwidth\z@ \itemindent-\leftmargin
651    \ifnum\ltjgetparameter{direction}=3
652      \leftmargin\leftskip \advance\leftmargin3\Cwd
653      \rightmargin\rightskip
654      \labelsep=1\zw \itemsep\z@
655      \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
656    \fi
657            \let\makelabel\descriptionlabel}}{\endlist}
658 \newcommand{\descriptionlabel}[1]{%
659    \hspace\labelsep\normalfont\bfseries #1}
660 \newenvironment{verse}
661   {\let\\\@centercr
662    \list{}{\itemsep\z@ \itemindent -1.5em%
663            \listparindent\itemindent
664            \rightmargin\leftmargin \advance\leftmargin 1.5em}%
665            \item\relax}{\endlist}
666 \newenvironment{quotation}
667   {\list{}{\listparindent 1.5em%
668            \itemindent\listparindent
669            \rightmargin\leftmargin
670            \parsep\z@ \@plus\p@}%
671            \item\relax}{\endlist}
672 \newenvironment{quote}
673   {\list{}{\rightmargin\leftmargin}%
674            \item\relax}{\endlist}
675 \newcounter{figure}[chapter]
676 \renewcommand{\thefigure}{%
677   \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
678 \def\fps@figure{tbp}
679 \def\ftype@figure{1}
680 \def\ext@figure{lof}
681 \def\fnum@figure{\figurename~\thefigure}
682 \newenvironment{figure}
683                {\@float{figure}}
684                {\end@float}
685 \newenvironment{figure*}
686                {\@dblfloat{figure}}
687                {\end@dblfloat}
688 \newcounter{table}[chapter]
689 \renewcommand{\thetable}{%
690   \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
691 \def\fps@table{tbp}
692 \def\ftype@table{2}
693 \def\ext@table{lot}
694 \def\fnum@table{\tablename~\thetable}
695 \newenvironment{table}
696                {\@float{table}}
697                {\end@float}
698 \newenvironment{table*}
699                {\@dblfloat{table}}
700                {\end@dblfloat}
701 \newlength\abovecaptionskip
702 \newlength\belowcaptionskip
703 \setlength\abovecaptionskip{10\p@}
704 \setlength\belowcaptionskip{0\p@}
705 \long\def\@makecaption#1#2{%
706   \vskip\abovecaptionskip
707   \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
708     \else\sbox\@tempboxa{#1: #2}%
709   \fi
710   \ifdim \wd\@tempboxa >\hsize
711     \ifnum\ltjgetparameter{direction}=3  #1\hskip1\zw#2\relax\par
712       \else #1: #2\relax\par\fi
713   \else
714     \global \@minipagefalse
715     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
716   \fi
717   \vskip\belowcaptionskip}
718 \setlength\arraycolsep{5\p@}
719 \setlength\tabcolsep{6\p@}
720 \setlength\arrayrulewidth{.4\p@}
721 \setlength\doublerulesep{2\p@}
722 \setlength\tabbingsep{\labelsep}
723 \skip\@mpfootins = \skip\footins
724 \setlength\fboxsep{3\p@}
725 \setlength\fboxrule{.4\p@}
726 \@addtoreset{equation}{chapter}
727 \renewcommand{\theequation}{%
728   \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
729 \unless\ifltj@disablejfam
730 \if@compatibility\else
731   \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
732   \DeclareSymbolFontAlphabet{\mathmc}{mincho}
733   \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
734   \jfam\symmincho
735   \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
736 \fi
737 \if@mathrmmc
738   \AtBeginDocument{%
739   \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
740   \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
741 }%
742 \fi
743 \fi
744 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
745 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
746 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
747 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
748 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
749 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
750 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
751 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
752 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
753 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
754 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
755 \setcounter{tocdepth}{2}
756 \newcommand{\@pnumwidth}{1.55em}
757 \newcommand{\@tocrmarg}{2.55em}
758 \newcommand{\@dotsep}{4.5}
759 \newdimen\toclineskip
760 \setlength\toclineskip{\z@}
761 \newdimen\@lnumwidth
762 \def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
763 \def\@dottedtocline#1#2#3#4#5{%
764   \ifnum #1>\c@tocdepth \else
765     \vskip\toclineskip \@plus.2\p@
766     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
767      \parindent #2\relax\@afterindenttrue
768      \interlinepenalty\@M
769      \leavevmode
770      \@lnumwidth #3\relax
771      \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
772      {#4}\nobreak
773      \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
774      \hfill\nobreak
775      \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
776      \par}%
777   \fi}
778 \providecommand*\protected@file@percent{}
779 \def\addcontentsline#1#2#3{%
780   \protected@write\@auxout
781     {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
782      \@temptokena{\thepage}}%
783     {\string\@writefile{#1}%
784        {\protect\contentsline{#2}{#3}{\the\@temptokena}%
785 \protected@file@percent}}%
786 }
787 \newcommand{\tableofcontents}{%
788   \if@twocolumn\@restonecoltrue\onecolumn
789   \else\@restonecolfalse\fi
790   \chapter*{\contentsname
791     \@mkboth{\contentsname}{\contentsname}%
792   }\@starttoc{toc}%
793   \if@restonecol\twocolumn\fi
794 }
795 \newcommand*{\l@part}[2]{%
796   \ifnum \c@tocdepth >-2\relax
797     \addpenalty{-\@highpenalty}%
798     \addvspace{2.25em \@plus\p@}%
799     \begingroup
800     \parindent\z@\rightskip\@pnumwidth
801     \parfillskip-\@pnumwidth
802     {\leavevmode\large\bfseries
803      \setlength\@lnumwidth{4\zw}%
804      #1\hfil\nobreak
805      \hb@xt@\@pnumwidth{\hss#2}}\par
806     \nobreak
807     \global\@nobreaktrue
808     \everypar{\global\@nobreakfalse\everypar{}}%
809      \endgroup
810   \fi}
811 \newcommand*{\l@chapter}[2]{%
812   \ifnum \c@tocdepth >\m@ne
813     \addpenalty{-\@highpenalty}%
814     \addvspace{1.0em \@plus\p@}%
815     \begingroup
816       \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
817       \leavevmode\bfseries
818       \setlength\@lnumwidth{4\zw}%
819       \advance\leftskip\@lnumwidth \hskip-\leftskip
820       #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
821       \penalty\@highpenalty
822     \endgroup
823   \fi}
824 \newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
825 \newcommand*{\l@subsection}   {\@dottedtocline{2}{3.8em}{3.2em}}
826 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
827 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{10em}{5em}}
828 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
829 \newcommand{\listoffigures}{%
830   \if@twocolumn\@restonecoltrue\onecolumn
831   \else\@restonecolfalse\fi
832   \chapter*{\listfigurename}%
833   \@mkboth{\listfigurename}{\listfigurename}%
834   \@starttoc{lof}%
835   \if@restonecol\twocolumn\fi
836 }
837 \newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
838 \newcommand{\listoftables}{%
839   \if@twocolumn\@restonecoltrue\onecolumn
840   \else\@restonecolfalse\fi
841   \chapter*{\listtablename}%
842   \@mkboth{\listtablename}{\listtablename}%
843   \@starttoc{lot}%
844   \if@restonecol\twocolumn\fi
845 }
846 \let\l@table\l@figure
847 \newdimen\bibindent
848 \setlength\bibindent{1.5em}
849 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
850 \newenvironment{thebibliography}[1]
851 {\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
852    \list{\@biblabel{\@arabic\c@enumiv}}%
853         {\settowidth\labelwidth{\@biblabel{#1}}%
854          \leftmargin\labelwidth
855          \advance\leftmargin\labelsep
856          \@openbib@code
857          \usecounter{enumiv}%
858          \let\p@enumiv\@empty
859          \renewcommand\theenumiv{\@arabic\c@enumiv}}%
860    \sloppy
861    \clubpenalty4000
862    \@clubpenalty\clubpenalty
863    \widowpenalty4000%
864    \sfcode`\.\@m}
865   {\def\@noitemerr
866     {\@latex@warning{Empty `thebibliography' environment}}%
867    \endlist}
868 \let\@openbib@code\@empty
869 \newenvironment{theindex}
870   {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
871    \twocolumn[\@makeschapterhead{\indexname}]%
872    \@mkboth{\indexname}{\indexname}%
873    \thispagestyle{jpl@in}\parindent\z@
874    \parskip\z@ \@plus .3\p@\relax
875    \columnseprule\z@ \columnsep 35\p@
876    \let\item\@idxitem}
877   {\if@restonecol\onecolumn\else\clearpage\fi}
878 \newcommand{\@idxitem}{\par\hangindent 40\p@}
879 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
880 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
881 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
882 \renewcommand{\footnoterule}{%
883   \kern-3\p@
884   \hrule\@width.4\columnwidth
885   \kern2.6\p@}
886 \@addtoreset{footnote}{chapter}
887 \newcommand\@makefntext[1]{\parindent 1em
888   \noindent\hb@xt@ 1.8em{\hss\@makefnmark}#1}
889 \newif\if西暦 \西暦true
890 \def\西暦{\西暦true}
891 \def\和暦{\西暦false}
892 \newcount\heisei \heisei\year \advance\heisei-1988\relax
893 \def\pltx@today@year@#1{%
894   \ifnum\numexpr\year-#1=1 元\else
895     \ifnum\ltjgetparameter{direction}=3
896       \kansuji\numexpr\year-#1\relax
897     \else
898       \number\numexpr\year-#1\relax\nobreak
899     \fi
900   \fi 年
901 }
902 \def\pltx@today@year{%
903   \ifnum\numexpr\year*10000+\month*100+\day<19890108
904     昭和\pltx@today@year@{1925}%
905   \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
906     平成\pltx@today@year@{1988}%
907   \else
908     令和\pltx@today@year@{2018}%
909   \fi\fi}
910 \def\today{{%
911   \if西暦
912     \ifnum\ltjgetparameter{direction}=3 \kansuji\year
913     \else\number\year\nobreak\fi 年
914   \else
915     \pltx@today@year
916   \fi
917   \ifnum\ltjgetparameter{direction}=3
918     \kansuji\month 月
919     \kansuji\day 日
920   \else
921     \number\month\nobreak 月
922     \number\day\nobreak 日
923   \fi}}
924 \newcommand{\prepartname}{第}
925 \newcommand{\postpartname}{部}
926 \newcommand{\prechaptername}{第}
927 \newcommand{\postchaptername}{章}
928 \newcommand{\contentsname}{目 次}
929 \newcommand{\listfigurename}{図 目 次}
930 \newcommand{\listtablename}{表 目 次}
931 \newcommand{\bibname}{関連図書}
932 \newcommand{\indexname}{索 引}
933 \newcommand{\figurename}{図}
934 \newcommand{\tablename}{表}
935 \newcommand{\appendixname}{付 録}
936 \pagestyle{headings}
937 \pagenumbering{arabic}
938 \raggedbottom
939 \fnfixbottomtrue % 2017-02-19
940 \IfFileExists{stfloats.sty}{\RequirePackage{stfloats}\fnbelowfloat}{}
941 \if@twocolumn
942   \twocolumn
943   \sloppy
944 \else
945   \onecolumn
946 \fi
947 \if@twoside
948   \@mparswitchtrue
949 \else
950   \@mparswitchfalse
951 \fi
952 \AtBeginOfPackageFile*{ftnright}{\let\ltjt@orig@@makefntext=\@makefntext}
953 \AtEndOfPackageFile*{ftnright}{\let\@makefntext=\ltjt@orig@@makefntext}
954 \endinput
955 %%
956 %% End of file `ltjbook.cls'.