OSDN Git Service

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