OSDN Git Service

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