OSDN Git Service

check_box in tate direction
[luatex-ja/luatexja.git] / src / ltjclasses.dtx
1 % \iffalse meta-comment
2 %% File: ltjclasses.dtx
3 %  -----------------------------------------
4 %  Original: jclasses.dtx
5 %
6 %  Copyright 1995-2001 ASCII Corporation.
7 %
8 %  This file is part of the pLaTeX2e system.
9 %  -----------------------------------------
10 %
11 % \fi
12 %
13 % \CheckSum{4478}
14 %% \CharacterTable
15 %%  {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
16 %%   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
17 %%   Digits        \0\1\2\3\4\5\6\7\8\9
18 %%   Exclamation   \!     Double quote  \"     Hash (number) \#
19 %%   Dollar        \$     Percent       \%     Ampersand     \&
20 %%   Acute accent  \'     Left paren    \(     Right paren   \)
21 %%   Asterisk      \*     Plus          \+     Comma         \,
22 %%   Minus         \-     Point         \.     Solidus       \/
23 %%   Colon         \:     Semicolon     \;     Less than     \<
24 %%   Equals        \=     Greater than  \>     Question mark \?
25 %%   Commercial at \@     Left bracket  \[     Backslash     \\
26 %%   Right bracket \]     Circumflex    \^     Underscore    \_
27 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
28 %%   Right brace   \}     Tilde         \~}
29 %%
30 %
31 % \setcounter{StandardModuleDepth}{1}
32 % \StopEventually{}
33 %
34 % \iffalse
35 % \changes{v1.0}{1995/04/19}{first edition}
36 % \changes{v1.0a}{1995/08/30}{ページスタイル部分の調整}
37 % \changes{v1.0b}{1995/11/08}{ページスタイル部分の調整}
38 % \changes{v1.0c}{1996/01/30}{\LaTeX\ \texttt{!<1995/12/01!>}での修正を反映}
39 % \changes{v1.0d}{1996/02/29}{デフォルトページスタイルの修正}
40 % \changes{v1.0e}{1996/03/14}{itemize, enumerate環境の修正}
41 % \changes{v1.0f}{1996/07/10}{面付けオプションを追加}
42 % \changes{v1.0g}{1996/09/03}{トンボの横に作成日時を出力するようにした}
43 % \changes{v1.1}{1997/01/16}{\LaTeX\ \texttt{!<1996/06/01!>}版に対応}
44 % \changes{v1.1a}{1997/01/23}{\LaTeX\ \texttt{!<1996/12/01!>}版に対応}
45 % \changes{v1.1a}{1997/01/25}{互換モードでp\LaTeX~2.09のa4jなどの
46 %      用紙オプションに対応}
47 % \changes{v1.1b}{1997/01/28}{日本語ファミリの宣言を再度、実装}
48 % \changes{v1.1d}{1997/01/29}{2eモードでa4jなどのオプションに対応}
49 % \changes{v1.1e}{1997/04/08}{トップマージンの値を修正}
50 % \changes{v1.1f}{1997/07/08}{縦組クラスでベースラインがおかしいのを修正}
51 % \changes{v1.1g}{1997/08/25}{片面印刷のとき、sectionレベルが出力されない
52 %      のを修正}
53 % \changes{v1.1h}{1997/09/03}{landscape指定時の値を修正}
54 % \changes{v1.1i}{1997/12/12}{report, bookクラスで片面印刷時に、
55 %      bothstyleスタイルにすると、コンパイルエラーになるのを修正}
56 % \changes{v1.1j}{1998/02/03}{互換モード時のa5pのトップマージンを0.7in増加}
57 % \changes{v1.1k}{1998/03/23}{reportとbookクラスで番号を付けない見出しの
58 %   ペナルティが\cs{M@}だったのを\cs{@M}に修正}
59 % \changes{v1.1m}{1998/04/07}{\cs{today}の計算手順を変更}
60 % \changes{v1.1n}{1998/10/13}{report,bookクラスの表番号が
61 %   見出しレベルに関係なくchapter番号が出力されてしまうのを修正}
62 % \changes{v1.1n}{1998/10/13}{mentukeオプションがエラーになっていたのを修正}
63 % \changes{v1.1o}{1998/12/24}{secnumdepthカウンタを$-1$以下にすると、
64 %   見出し文字列も消えてしまうのを修正}
65 % \changes{v1.1p}{1999/1/6}{\cs{oddsidemargin}のポイントへの変換を後ろに}
66 % \changes{v1.1q}{1999/05/18}{縦組時のみに設定するようにした}
67 % \changes{v1.1r}{1999/08/09}{トップマージンの計算式を修正}
68 % \changes{v1.2}{2001/09/04}{\cs{chapter}の出力位置がアスタリスク形式と
69 %   そうでないときと違うのを修正(ありがとう、鈴木@津さん)}
70 % \changes{v1.3}{2001/10/04}{目次のページ番号の書体を\cs{rmfamily}から
71 %   \cs{normalfont}に変更(ありがとう、鈴木た@MILNさん)}
72 % \changes{v1.4}{2002/04/09}{縦組スタイルで\cs{flushbottom}しないようにした}
73 % \changes{v1.5}{2004/01/15}{\cs{part},\cs{chapter}の\cs{@afterindentfalse}を
74 %   \cs{@afterindenttrue}に変更。
75 %   \cs{section},\cs{subsection},\cs{subsubsection}の前後空きの伸縮幅を修正。
76 %   (ありがとうございます、鈴木た@MILNさん)}
77 % \changes{v1.6}{2006/06/27}{フォントコマンドを修正。ありがとう、ymtさん。}
78 % \changes{v1.6-ltj}{2011/09/27}{jclasses.dtx v1.6 をベースにLua\LaTeX-ja用に修正。}
79 % \changes{v1.6-ltj-2}{2013/06/06}{jclasses.dtx luatexja.cfgに対応.}
80 % \fi
81 %
82 % \iffalse
83 \NeedsTeXFormat{LaTeX2e}
84 %<*driver>
85 \ProvidesFile{ltjclasses.dtx}
86 %</driver>
87 %<*yoko>
88 %<article>\ProvidesClass{ltjarticle}
89 %<report>\ProvidesClass{ltjreport}
90 %<book>\ProvidesClass{ltjbook}
91 %<10pt&!bk>\ProvidesFile{ltjsize10.clo}
92 %<11pt&!bk>\ProvidesFile{ltjsize11.clo}
93 %<12pt&!bk>\ProvidesFile{ltjsize12.clo}
94 %<10pt&bk>\ProvidesFile{ltjbk10.clo}
95 %<11pt&bk>\ProvidesFile{ltjbk11.clo}
96 %<12pt&bk>\ProvidesFile{ltjbk12.clo}
97 %</yoko>
98 %<*tate>
99 %<article>\ProvidesClass{ltjtarticle}
100 %<report>\ProvidesClass{ltjtreport}
101 %<book>\ProvidesClass{ltjtbook}
102 %<10pt&!bk>\ProvidesFile{ltjtsize10.clo}
103 %<11pt&!bk>\ProvidesFile{ltjtsize11.clo}
104 %<12pt&!bk>\ProvidesFile{ltjtsize12.clo}
105 %<10pt&bk>\ProvidesFile{ltjtbk10.clo}
106 %<11pt&bk>\ProvidesFile{ltjtbk11.clo}
107 %<12pt&bk>\ProvidesFile{ltjtbk12.clo}
108 %</tate>
109   [2013/06/06 v1.6-ltj-2
110 %<article|report|book> Standard LuaLaTeX-ja class]
111 %<10pt|11pt|12pt>  Standard LuaLaTeX-ja file (size option)]
112 %<*driver>
113 ]
114 \documentclass{ltjltxdoc}
115 \GetFileInfo{ltjclasses.dtx}
116 \usepackage[kozuka-pr6n]{luatexja-preset}
117 \usepackage{unicode-math}
118 \setmathfont{Latin Modern Math}
119 \usepackage[unicode]{hyperref}
120 \title{Lua\LaTeX-ja用\texttt{jclasses}互換クラス}
121 \author{Lua\TeX-jaプロジェクト}
122 \date{\filedate}
123 \begin{document}
124   \maketitle
125   \tableofcontents
126   \DocInput{\filename}
127 \end{document}
128 %</driver>
129 % \fi
130 %
131 % \section{はじめに}
132 % このファイルは、Lua\LaTeX-ja用の|jclasses|互換クラスファイルです。
133 % v1.6をベースに作成しています。
134 % \dst{}プログラムによって、横組用のクラスファイルと縦組用のクラスファイル
135 % を作成することができます。
136 %
137 % 次に\dst{}プログラムのためのオプションを示します。
138 %
139 % \DeleteShortVerb{\|}
140 % \begin{center}
141 % \begin{tabular}{l|l}
142 % \emph{オプション} & \emph{意味}\\\hline
143 % article & articleクラスを生成\\
144 % report  & reportクラスを生成\\
145 % book    & bookクラスを生成\\
146 % 10pt    & 10ptサイズの設定を生成\\
147 % 11pt    & 11ptサイズの設定を生成\\
148 % 12pt    & 12ptサイズの設定を生成\\
149 % bk      & bookクラス用のサイズの設定を生成\\
150 % tate    & 縦組用の設定を生成\\
151 % yoko    & 横組用の設定を生成\\
152 % \end{tabular}
153 % \end{center}
154 % \MakeShortVerb{\|}
155 %
156 % \subsection{\texttt{jclasses.dtx} からの主な変更点}
157 % 全ての変更点を知りたい場合は、|jclasses.dtx|と|ltjclasses.dtx|で|diff|を
158 % とって下さい。
159 % \begin{itemize}
160 % \item |disablejfam|オプションを無効化。もし
161 % \begin{quotation}
162 %   |! LaTeX Error: Too many math alphabets used in version ****.|
163 % \end{quotation}
164 % のエラーが起こった場合は、|lualatex-math|パッケージを読み込んでみて下さい。
165 % \item 出力PDFの用紙サイズが自動的に設定されるようにしてあります。
166 % \end{itemize}
167 %
168 % \section{Lua\TeX-ja の読み込み}
169 % 最初に|luatexja|を読み込みます。
170 %    \begin{macrocode}
171 %<*article|report|book>
172 \RequirePackage{luatexja}
173 %    \end{macrocode}
174 %
175 % \section{オプションスイッチ}
176 % ここでは、後ほど使用するいくつかのコマンドやスイッチを定義しています。
177 %
178 % \begin{macro}{\c@@paper}
179 % 用紙サイズを示すために使います。
180 % A4, A5, B4, B5用紙はそれぞれ、1, 2, 3, 4として表されます。
181 %    \begin{macrocode}
182 \newcounter{@paper}
183 %    \end{macrocode}
184 % \end{macro}
185 %
186 % \begin{macro}{\if@landscape}
187 % 用紙を横向きにするかどうかのスイッチです。デフォルトは、縦向きです。
188 %    \begin{macrocode}
189 \newif\if@landscape \@landscapefalse
190 %    \end{macrocode}
191 % \end{macro}
192 %
193 % \begin{macro}{\@ptsize}
194 % 組版をするポイント数の一の位を保存するために使います。
195 % 0, 1, 2のいずれかです。
196 %    \begin{macrocode}
197 \newcommand{\@ptsize}{}
198 %    \end{macrocode}
199 % \end{macro}
200 %
201 % \begin{macro}{\if@restonecol}
202 % 二段組時に用いるテンポラリスイッチです。
203 %    \begin{macrocode}
204 \newif\if@restonecol
205 %    \end{macrocode}
206 % \end{macro}
207 %
208 % \begin{macro}{\if@titlepage}
209 % タイトルページやアブストラクト(概要)を
210 % 独立したページにするかどうかのスイッチです。
211 % reportとbookスタイルのデフォルトでは、独立したページになります。
212 %    \begin{macrocode}
213 \newif\if@titlepage
214 %<article>\@titlepagefalse
215 %<report|book>\@titlepagetrue
216 %    \end{macrocode}
217 % \end{macro}
218 %
219 % \begin{macro}{\if@openright}
220 % chapterレベルを奇数ページからはじめるかどうかのスイッチです。
221 % reportクラスのデフォルトは、``no''です。
222 % bookクラスのデフォルトは、``yes''です。
223 %    \begin{macrocode}
224 %<!article>\newif\if@openright
225 %    \end{macrocode}
226 % \end{macro}
227 %
228 % \changes{v1.0c}{1995/12/25}{Macro \cs{if@openbib} removed}
229 %
230 % \begin{macro}{\if@mainmatter}
231 % スイッチ|\@mainmatter|が真の場合、本文を処理しています。
232 % このスイッチが偽の場合は、|\chapter|コマンドは見出し番号を出力しません。
233 %    \begin{macrocode}
234 %<book>\newif\if@mainmatter \@mainmattertrue
235 %    \end{macrocode}
236 % \end{macro}
237 %
238 % \begin{macro}{\hour}
239 % \begin{macro}{\minute}
240 %    \begin{macrocode}
241 \hour\time \divide\hour by 60\relax
242 \@tempcnta\hour \multiply\@tempcnta 60\relax
243 \minute\time \advance\minute-\@tempcnta
244 %    \end{macrocode}
245 % \end{macro}
246 % \end{macro}
247 %
248 % \begin{macro}{\if@stysize}
249 % \changes{v1.1a}{1997/01/25}{Add \cs{if@stysize}.}
250 % \LaTeXe~2.09互換モードで、スタイルオプションにa4j, a5pなどが指定された
251 % ときの動作をエミュレートするためのフラグです。
252 %    \begin{macrocode}
253 \newif\if@stysize \@stysizefalse
254 %    \end{macrocode}
255 % \end{macro}
256 %
257 % \begin{macro}{\if@mathrmmc}
258 % 和欧文両対応の数式文字コマンドを有効にするときに用いるフラグです。
259 % マクロの展開順序が複雑になるのを避けるため、
260 % デフォルトではfalseとしてあります。
261 %    \begin{macrocode}
262 \newif\if@mathrmmc \@mathrmmcfalse
263 %    \end{macrocode}
264 % \end{macro}
265 %
266 % \section{オプションの宣言}
267 % ここでは、クラスオプションの宣言を行なっています。
268 %
269 % \subsection{用紙オプション}
270 % 用紙サイズを指定するオプションです。
271 %    \begin{macrocode}
272 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
273   \setlength\paperheight {297mm}%
274   \setlength\paperwidth  {210mm}}
275 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
276   \setlength\paperheight {210mm}
277   \setlength\paperwidth  {148mm}}
278 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
279   \setlength\paperheight {364mm}
280   \setlength\paperwidth  {257mm}}
281 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
282   \setlength\paperheight {257mm}
283   \setlength\paperwidth  {182mm}}
284 %    \end{macrocode}
285 % \changes{v1.0a}{1995/09/26}{Change b4paper width/height 352x250 to 364x257}
286 % \changes{v1.0a}{1995/09/26}{Change b5paper width/height 250x176 to 257x182}
287 % ドキュメントクラスに、以下のオプションを指定すると、通常よりもテキストを
288 % 組み立てる領域の広いスタイルとすることができます。
289 %    \begin{macrocode}
290 %
291 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
292   \setlength\paperheight {297mm}%
293   \setlength\paperwidth  {210mm}}
294 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
295   \setlength\paperheight {210mm}
296   \setlength\paperwidth  {148mm}}
297 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
298   \setlength\paperheight {364mm}
299   \setlength\paperwidth  {257mm}}
300 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
301   \setlength\paperheight {257mm}
302   \setlength\paperwidth  {182mm}}
303 %
304 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
305   \setlength\paperheight {297mm}%
306   \setlength\paperwidth  {210mm}}
307 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
308   \setlength\paperheight {210mm}
309   \setlength\paperwidth  {148mm}}
310 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
311   \setlength\paperheight {364mm}
312   \setlength\paperwidth  {257mm}}
313 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
314   \setlength\paperheight {257mm}
315   \setlength\paperwidth  {182mm}}
316 %    \end{macrocode}
317 %
318 % \subsection{サイズオプション}
319 % 基準となるフォントの大きさを指定するオプションです。
320 %    \begin{macrocode}
321 \if@compatibility
322   \renewcommand{\@ptsize}{0}
323 \else
324   \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
325 \fi
326 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
327 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
328 %    \end{macrocode}
329 %
330 % \subsection{横置きオプション}
331 % このオプションが指定されると、用紙の縦と横の長さを入れ換えます。
332 % \changes{v1.1h}{1997/09/03}{オプションの処理時に縦横の値を交換}
333 % \changes{v1.1h}{1997/09/03}{landscapeオプションを互換モードでも有効に}
334 %    \begin{macrocode}
335 \DeclareOption{landscape}{\@landscapetrue
336   \setlength\@tempdima{\paperheight}%
337   \setlength\paperheight{\paperwidth}%
338   \setlength\paperwidth{\@tempdima}}
339 %    \end{macrocode}
340 %
341 % \subsection{トンボオプション}
342 % |tombow|オプションが指定されると、用紙サイズに合わせてトンボを出力します。
343 % このとき、トンボの脇にPDFを作成した日付が出力されます。
344 % 作成日付の出力を抑制するには、|tombow|ではなく、|tombo|と指定をします。
345 % \changes{v1.0g}{1996/09/03}{Add to \cs{@bannertoken}.}
346 % \changes{v1.1a}{1997/01/23}{日付出力オプション}
347 %    \begin{macrocode}
348 \DeclareOption{tombow}{%
349   \tombowtrue \tombowdatetrue
350   \setlength{\@tombowwidth}{.1\p@}%
351   \@bannertoken{%
352      \jobname\space:\space\number\year/\number\month/\number\day
353       (\number\hour:\number\minute)}
354   \maketombowbox}
355 \DeclareOption{tombo}{%
356   \tombowtrue \tombowdatefalse
357   \setlength{\@tombowwidth}{.1\p@}%
358   \maketombowbox}
359 %    \end{macrocode}
360 %
361 % \subsection{面付けオプション}
362 % このオプションが指定されると、トンボオプションを指定したときと同じ
363 % 位置に文章を出力します。作成したPDFをフィルムに面付け出力する場合など
364 % に指定をします。
365 % \changes{v1.0f}{1996/07/10}{面付けオプションを追加}
366 % \changes{v1.1n}{1998/10/13}
367 %     {動作していなかったのを修正。ありがとう、刀祢さん}
368 %    \begin{macrocode}
369 \DeclareOption{mentuke}{%
370   \tombowtrue \tombowdatefalse
371   \setlength{\@tombowwidth}{\z@}%
372   \maketombowbox}
373 %    \end{macrocode}
374 %
375 % \subsection{組方向オプション}
376 % このオプションが指定されると、縦組で組版をします。
377 % しかしLua\TeX-jaではまだ縦組は未対応なのでコメントアウトします。
378 % \changes{v1.0g}{1997/01/25}{Insert \cs{hbox}, to switch tate-mode.}
379 % \changes{v1.1d}{1997/02/05}{開始ページがおかしくなるのを修正}
380 % \changes{v1.1f}{1997/07/08}{縦組時にベースラインがおかしくなるのを修正}
381 %    \begin{macrocode}
382 \DeclareOption{tate}{%
383   \AtBeginDocument{\tate\message{《縦組モード》}%
384                    \adjustbaseline}%
385 }
386 %    \end{macrocode}
387 %
388 % \subsection{両面、片面オプション}
389 % twosideオプションが指定されると、両面印字出力に適した整形を行ないます。
390 %    \begin{macrocode}
391 \DeclareOption{oneside}{\@twosidefalse}
392 \DeclareOption{twoside}{\@twosidetrue}
393 %    \end{macrocode}
394 %
395 % \subsection{二段組オプション}
396 % 二段組にするかどうかのオプションです。
397 %    \begin{macrocode}
398 \DeclareOption{onecolumn}{\@twocolumnfalse}
399 \DeclareOption{twocolumn}{\@twocolumntrue}
400 %    \end{macrocode}
401 %
402 % \subsection{表題ページオプション}
403 % |@titlepage|が真の場合、表題を独立したページに出力します。
404 %    \begin{macrocode}
405 \DeclareOption{titlepage}{\@titlepagetrue}
406 \DeclareOption{notitlepage}{\@titlepagefalse}
407 %    \end{macrocode}
408 %
409 % \subsection{右左起こしオプション}
410 % chapterを右ページあるいは左ページから
411 % はじめるかどうかを指定するオプションです。
412 %    \begin{macrocode}
413 %<!article>\if@compatibility
414 %<book>\@openrighttrue
415 %<!article>\else
416 %<!article>\DeclareOption{openright}{\@openrighttrue}
417 %<!article>\DeclareOption{openany}{\@openrightfalse}
418 %<!article>\fi
419 %    \end{macrocode}
420 %
421 % \subsection{数式のオプション}
422 % \Lopt{leqno}を指定すると、数式番号を数式の左側に出力します。
423 % \Lopt{fleqn}を指定するとディスプレイ数式を左揃えで出力します。
424 %    \begin{macrocode}
425 \DeclareOption{leqno}{\input{leqno.clo}}
426 \DeclareOption{fleqn}{\input{fleqn.clo}}
427 %    \end{macrocode}
428 %
429 % \subsection{参考文献のオプション}
430 % 参考文献一覧を``オープンスタイル''の書式で出力します。
431 % これは各ブロックが改行で区切られ、|\bibindent|のインデントが付く書式です。
432 % \changes{v1.0c}{1995/12/25}{openbibオプションを再実装}
433 %    \begin{macrocode}
434 \DeclareOption{openbib}{%
435 %    \end{macrocode}
436 % 参考文献環境内の最初のいくつかのフックを満たします。
437 %    \begin{macrocode}
438   \AtEndOfPackage{%
439    \renewcommand\@openbib@code{%
440       \advance\leftmargin\bibindent
441       \itemindent -\bibindent
442       \listparindent \itemindent
443       \parsep \z@
444       }%
445 %    \end{macrocode}
446 % そして、|\newblock|を再定義します。
447 %    \begin{macrocode}
448    \renewcommand\newblock{\par}}}
449 %    \end{macrocode}
450 %
451 % \subsection{日本語ファミリ宣言の抑制、和欧文両対応の数式文字}
452 % p\TeX では数式ファミリの数が16個だったので日本語ファミリ宣言を抑制する
453 % |disablejfam|オプションが用意されていましたが、Lua\TeX ではOmega拡張が
454 % 取り込まれて数式ファミリは256個まで使用できるため、このオプションは必要ありません。
455 % ただし、\LaTeXe カーネルでは未だに数式ファミリの数は16個に制限されているので、
456 % 実際に使用可能な数式ファミリの数を増やすためには|lualatex-math|パッケージを
457 % 読み込む必要があることに注意が必要です。
458 %
459 % |mathrmmc|オプションは、
460 % |\mathrm|と|\mathbf|を和欧文両対応にするためのクラスオプションです。
461 % \changes{v1.1d}{1992/02/04}{disablejfamの判断を間違えてたのを修正}
462 %    \begin{macrocode}
463 \if@compatibility
464   \@mathrmmctrue
465 \else
466   \DeclareOption{disablejfam}{%
467     \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
468   \DeclareOption{mathrmmc}{\@mathrmmctrue}
469 \fi
470 %    \end{macrocode}
471 %
472 %
473 % \subsection{ドラフトオプション}
474 % |draft|オプションを指定すると、オーバフルボックスの起きた箇所に、
475 % 5ptの罫線が引かれます。
476 %    \begin{macrocode}
477 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
478 \DeclareOption{final}{\setlength\overfullrule{0pt}}
479 %</article|report|book>
480 %    \end{macrocode}
481 %
482 % \subsection{オプションの実行}
483 % オプションの実行、およびサイズクラスのロードを行ないます。
484 %    \begin{macrocode}
485 %<*article|report|book>
486 %<*article>
487 %<tate>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,tate}
488 %<yoko>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final}
489 %</article>
490 %<*report>
491 %<tate>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany,tate}
492 %<yoko>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany}
493 %</report>
494 %<*book>
495 %<tate>\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright,tate}
496 %<yoko>\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright}
497 %</book>
498 \ProcessOptions\relax
499 %<book&tate>\input{ltjtbk1\@ptsize.clo}
500 %<!book&tate>\input{ltjtsize1\@ptsize.clo}
501 %<book&yoko>\input{ltjbk1\@ptsize.clo}
502 %<!book&yoko>\input{ltjsize1\@ptsize.clo}
503 %    \end{macrocode}
504 % 縦組用クラスファイルの場合は、ここで\file{plext.sty}が読み込まれていました。
505 % Lua\TeX-jaでどうなるかは未定です。
506 % \changes{v1.0e}{1996/03/21}{\cs{usepackage} to \cs{RequirePackage}}
507 %    \begin{macrocode}
508 %<tate>%\RequirePackage{plext}
509 %</article|report|book>
510 %    \end{macrocode}
511 %
512 % \section{フォント}
513 %
514 % Lua\LaTeX-jaの標準では、OTFパッケージ由来のメトリックが使われるようになっています。
515 % 本クラスでは、「p\TeX の組版と互換性をできるだけ持たせる」例を提示するため、
516 % \begin{itemize}
517 % \item メトリックを\texttt{min10.tfm}ベースの\texttt{jfm-min.lua}に変更。
518 % \item 明朝とゴシックは両方とも\texttt{jfm-min.lua}を用いるが、
519 %   和文処理用グルー挿入時には「違うメトリックを使用」として思わせる。
520 % \item p\TeX と同様に、「異なるメトリックの2つの和文文字」の間には、両者から定める
521 %   グルーを両方挿入する。
522 % \item calllbackを利用し、標準で用いる\texttt{jfm-min.lua}を、段落始めの括弧が全角二分下がりになるように内部で変更している。
523 %
524 % \end{itemize}
525 %
526 % |\ltj@stdmcfont|,~|\ltj@stdgtfont| による、デフォルトで使われ明朝・ゴシックのフォントの
527 % 設定に対応しました。この2つの命令の値はユーザが日々の利用でその都度指定するものではなく、
528 % 何らかの理由で非埋め込みフォントが正しく利用できない場合にのみ |luatexja.cfg| によって
529 % セットされるものです。
530 %
531 %
532 %    \begin{macrocode}
533 %<*article|report|book>
534 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
535   function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
536   'ltj.jclasses_load_jfm', 1)}
537 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
538 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
539 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
540 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
541 \ltjglobalsetparameter{differentjfm=both}
542 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
543 %</article|report|book>
544 %    \end{macrocode}
545 %
546 % ここでは、\LaTeX{}のフォントサイズコマンドの定義をしています。
547 % フォントサイズコマンドの定義は、次のコマンドを用います。
548 %
549 % |\@setfontsize||\size|\meta{font-size}\meta{baselineskip}
550 %
551 % \begin{description}
552 % \item[\meta{font-size}] これから使用する、フォントの実際の大きさです。
553 % \item[\meta{baselineskip}] 選択されるフォントサイズ用の通常の
554 %    |\baselineskip|の値です(実際は、|\baselinestretch| * \meta{baselineskip}
555 %    の値です)。
556 % \end{description}
557 %
558 % 数値コマンドは、次のように\LaTeX{}カーネルで定義されています。
559 % \begin{center}
560 % \begin{tabular}{ll@{\qquad}ll@{\qquad}ll}
561 %  \verb=\@vpt= & 5 & \verb=\@vipt= & 6 & \verb=\@viipt= & 7 \\
562 %  \verb=\@viiipt= & 8 & \verb=\@ixpt= & 9 & \verb=\@xpt= & 10 \\
563 %  \verb=\@xipt= & 10.95 & \verb=\@xiipt= & 12 & \verb=\@xivpt= & 14.4\\
564 %  ...
565 %  \end{tabular}
566 %  \end{center}
567 %
568 % \begin{macro}{\normalsize}
569 % \begin{macro}{\@normalsize}
570 % 基本サイズとするユーザレベルのコマンドは|\normalsize|です。
571 % \LaTeX{}の内部では|\@normalsize|を使用します。
572 %
573 % |\normalsize|マクロは、|\abovedisplayskip|と
574 % |\abovedisplayshortskip|、および|\belowdisplayshortskip|の値も設定をします。
575 % |\belowdisplayskip|は、つねに|\abovedisplayskip|と同値です。
576 %
577 % また、リスト環境のトップレベルのパラメータは、つねに|\@listI|で与えられます。
578 %    \begin{macrocode}
579 %<*10pt|11pt|12pt>
580 \renewcommand{\normalsize}{%
581 %<10pt&yoko>    \@setfontsize\normalsize\@xpt{15}%
582 %<11pt&yoko>    \@setfontsize\normalsize\@xipt{15.5}%
583 %<12pt&yoko>    \@setfontsize\normalsize\@xiipt{16.5}%
584 %<10pt&tate>    \@setfontsize\normalsize\@xpt{17}%
585 %<11pt&tate>    \@setfontsize\normalsize\@xipt{17}%
586 %<12pt&tate>    \@setfontsize\normalsize\@xiipt{18}%
587 %<*10pt>
588   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
589   \abovedisplayshortskip \z@ \@plus3\p@
590   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
591 %</10pt>
592 %<*11pt>
593   \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
594   \abovedisplayshortskip \z@ \@plus3\p@
595   \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
596 %</11pt>
597 %<*12pt>
598   \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
599   \abovedisplayshortskip \z@ \@plus3\p@
600   \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
601 %</12pt>
602    \belowdisplayskip \abovedisplayskip
603    \let\@listi\@listI}
604 %    \end{macrocode}
605 %
606 % ここで、ノーマルフォントを選択し、初期化をします。
607 % このとき、縦組モードならば、デフォルトのエンコードを変更します。
608 %    \begin{macrocode}
609 %<tate>\def\kanjiencodingdefault{JT3}%
610 %<tate>\kanjiencoding{\kanjiencodingdefault}%
611 \normalsize
612 %    \end{macrocode}
613 % \end{macro}
614 % \end{macro}
615 %
616 % \begin{macro}{\Cht}
617 % \begin{macro}{\Cdp}
618 % \begin{macro}{\Cwd}
619 % \begin{macro}{\Cvs}
620 % \begin{macro}{\Chs}
621 % 基準となる長さの設定をします。これらのパラメータは\file{lltjfont.sty}で定義
622 % されています。
623 %    \begin{macrocode}
624 \setbox0\hbox{\char"3000}% 全角スペース
625 \setlength\Cht{\ht0}
626 \setlength\Cdp{\dp0}
627 \setlength\Cwd{\wd0}
628 \setlength\Cvs{\baselineskip}
629 \setlength\Chs{\wd0}
630 %    \end{macrocode}
631 % \end{macro}
632 % \end{macro}
633 % \end{macro}
634 % \end{macro}
635 % \end{macro}
636 %
637 % \begin{macro}{\small}
638 % |\small|コマンドの定義は、|\normalsize|に似ています。
639 %    \begin{macrocode}
640 \newcommand{\small}{%
641 %<*10pt>
642   \@setfontsize\small\@ixpt{11}%
643   \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
644   \abovedisplayshortskip \z@ \@plus2\p@
645   \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
646   \def\@listi{\leftmargin\leftmargini
647               \topsep 4\p@ \@plus2\p@ \@minus2\p@
648               \parsep 2\p@ \@plus\p@ \@minus\p@
649               \itemsep \parsep}%
650 %</10pt>
651 %<*11pt>
652   \@setfontsize\small\@xpt\@xiipt
653   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
654   \abovedisplayshortskip \z@ \@plus3\p@
655   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
656   \def\@listi{\leftmargin\leftmargini
657               \topsep 6\p@ \@plus2\p@ \@minus2\p@
658               \parsep 3\p@ \@plus2\p@ \@minus\p@
659               \itemsep \parsep}%
660 %</11pt>
661 %<*12pt>
662   \@setfontsize\small\@xipt{13.6}%
663   \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
664   \abovedisplayshortskip \z@ \@plus3\p@
665   \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
666   \def\@listi{\leftmargin\leftmargini
667               \topsep 9\p@ \@plus3\p@ \@minus5\p@
668               \parsep 4.5\p@ \@plus2\p@ \@minus\p@
669               \itemsep \parsep}%
670 %</12pt>
671   \belowdisplayskip \abovedisplayskip}
672 %    \end{macrocode}
673 % \end{macro}
674 %
675 % \begin{macro}{\footnotesize}
676 % |\footnotesize|コマンドの定義は、|\normalsize|に似ています。
677 %    \begin{macrocode}
678 \newcommand{\footnotesize}{%
679 %<*10pt>
680   \@setfontsize\footnotesize\@viiipt{9.5}%
681   \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
682   \abovedisplayshortskip \z@ \@plus\p@
683   \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
684   \def\@listi{\leftmargin\leftmargini
685               \topsep 3\p@ \@plus\p@ \@minus\p@
686               \parsep 2\p@ \@plus\p@ \@minus\p@
687               \itemsep \parsep}%
688 %</10pt>
689 %<*11pt>
690   \@setfontsize\footnotesize\@ixpt{11}%
691   \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@
692   \abovedisplayshortskip \z@ \@plus\p@
693   \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
694   \def\@listi{\leftmargin\leftmargini
695               \topsep 4\p@ \@plus2\p@ \@minus2\p@
696               \parsep 2\p@ \@plus\p@ \@minus\p@
697               \itemsep \parsep}%
698 %</11pt>
699 %<*12pt>
700   \@setfontsize\footnotesize\@xpt\@xiipt
701   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
702   \abovedisplayshortskip \z@ \@plus3\p@
703   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
704   \def\@listi{\leftmargin\leftmargini
705               \topsep 6\p@ \@plus2\p@ \@minus2\p@
706               \parsep 3\p@ \@plus2\p@ \@minus\p@
707               \itemsep \parsep}%
708 %</12pt>
709   \belowdisplayskip \abovedisplayskip}
710 %    \end{macrocode}
711 % \end{macro}
712 %
713 % \begin{macro}{\scriptsize}
714 % \begin{macro}{\tiny}
715 % \begin{macro}{\large}
716 % \begin{macro}{\Large}
717 % \begin{macro}{\LARGE}
718 % \begin{macro}{\huge}
719 % \begin{macro}{\Huge}
720 % これらは先ほどのマクロよりも簡単です。これらはフォントサイズを変更する
721 % だけで、リスト環境とディスプレイ数式のパラメータは変更しません。
722 %    \begin{macrocode}
723 %<*10pt>
724 \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
725 \newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt}
726 \newcommand{\large}{\@setfontsize\large\@xiipt{17}}
727 \newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
728 \newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
729 \newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
730 \newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
731 %</10pt>
732 %<*11pt>
733 \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
734 \newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
735 \newcommand{\large}{\@setfontsize\large\@xiipt{17}}
736 \newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
737 \newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
738 \newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
739 \newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
740 %</11pt>
741 %<*12pt>
742 \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
743 \newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
744 \newcommand{\large}{\@setfontsize\large\@xivpt{21}}
745 \newcommand{\Large}{\@setfontsize\Large\@xviipt{25}}
746 \newcommand{\LARGE}{\@setfontsize\LARGE\@xxpt{28}}
747 \newcommand{\huge}{\@setfontsize\huge\@xxvpt{33}}
748 \let\Huge=\huge
749 %</12pt>
750 %</10pt|11pt|12pt>
751 %    \end{macrocode}
752 % \end{macro}
753 % \end{macro}
754 % \end{macro}
755 % \end{macro}
756 % \end{macro}
757 % \end{macro}
758 % \end{macro}
759 %
760 %
761 %
762 % \section{レイアウト}
763 %
764 % \subsection{用紙サイズの決定}
765 %
766 % \begin{macro}{\columnsep}
767 % \begin{macro}{\columnseprule}
768 % |\columnsep|は、二段組のときの、左右(あるいは上下)の段間の幅です。
769 % このスペースの中央に|\columnseprule|の幅の罫線が引かれます。
770 % \changes{v1.0g}{1997/01/25}{\cs{columnsep}: 10pt to 3\cs{Cwd} or 2\cs{Cwd}.}
771 %    \begin{macrocode}
772 %<*article|report|book>
773 \if@stysize
774 %<tate>  \setlength\columnsep{3\Cwd}
775 %<yoko>  \setlength\columnsep{2\Cwd}
776 \else
777   \setlength\columnsep{10\p@}
778 \fi
779 \setlength\columnseprule{0\p@}
780 %    \end{macrocode}
781 % \end{macro}
782 % \end{macro}
783 %
784 % \begin{macro}{\pdfpagewidth}
785 % \begin{macro}{\pdfpageheight}
786 % 出力のPDFの用紙サイズをここで設定しておきます。
787 % |tombow|が真のときは2インチ足しておきます。
788 %    \begin{macrocode}
789 \setlength{\@tempdima}{\paperwidth}
790 \setlength{\@tempdimb}{\paperheight}
791 \iftombow
792   \advance \@tempdima 2in
793   \advance \@tempdimb 2in
794 \fi
795 \setlength{\pdfpagewidth}{\@tempdima}
796 \setlength{\pdfpageheight}{\@tempdimb}
797 %    \end{macrocode}
798 % \end{macro}
799 % \end{macro}
800 %
801 % \subsection{段落の形}
802 %
803 % \begin{macro}{\lineskip}
804 % \begin{macro}{\normallineskip}
805 % これらの値は、行が近付き過ぎたときの\TeX の動作を制御します。
806 %    \begin{macrocode}
807 \setlength\lineskip{1\p@}
808 \setlength\normallineskip{1\p@}
809 %    \end{macrocode}
810 % \end{macro}
811 % \end{macro}
812 %
813 % \begin{macro}{\baselinestretch}
814 % これは、|\baselineskip|の倍率を示すために使います。
815 % デフォルトでは、\emph{何もしません}。このコマンドが``empty''でない場合、
816 % |\baselineskip|の指定の\texttt{plus}や\texttt{minus}部分は無視される
817 % ことに注意してください。
818 %    \begin{macrocode}
819 \renewcommand{\baselinestretch}{}
820 %    \end{macrocode}
821 % \end{macro}
822 %
823 % \begin{macro}{\parskip}
824 % \begin{macro}{\parindent}
825 % |\parskip|は段落間に挿入される、縦方向の追加スペースです。
826 % |\parindent|は段落の先頭の字下げ幅です。
827 %    \begin{macrocode}
828 \setlength\parskip{0\p@ \@plus \p@}
829 \setlength\parindent{1\Cwd}
830 %    \end{macrocode}
831 % \end{macro}
832 % \end{macro}
833 %
834 %  \begin{macro}{\smallskipamount}
835 %  \begin{macro}{\medskipamount}
836 %  \begin{macro}{\bigskipamount}
837 % これら3つのパラメータの値は、\LaTeX{}カーネルの中で設定されています。
838 % これらはおそらく、サイズオプションの指定によって変えるべきです。
839 % しかし、\LaTeX~2.09や\LaTeXe{}の以前のリリースの両方との互換性を保つために、
840 % これらはまだ同じ値としています。
841 %    \begin{macrocode}
842 %<*10pt|11pt|12pt>
843 \setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}
844 \setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}
845 \setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}
846 %</10pt|11pt|12pt>
847 %    \end{macrocode}
848 %  \end{macro}
849 %  \end{macro}
850 %  \end{macro}
851 %
852 % \begin{macro}{\@lowpenalty}
853 % \begin{macro}{\@medpenalty}
854 % \begin{macro}{\@highpenalty}
855 % |\nopagebreak|と|\nolinebreak|コマンドは、これらのコマンドが置かれた場所に、
856 % ペナルティを起いて、分割を制御します。
857 % 置かれるペナルティは、コマンドの引数によって、
858 % |\@lowpenalty|, |\@medpenalty|, |\@highpenalty|のいずれかが使われます。
859 %    \begin{macrocode}
860 \@lowpenalty   51
861 \@medpenalty  151
862 \@highpenalty 301
863 %</article|report|book>
864 %    \end{macrocode}
865 % \end{macro}
866 % \end{macro}
867 % \end{macro}
868 %
869 % \subsection{ページレイアウト}
870 %
871 % \subsubsection{縦方向のスペース}
872 %
873 % \begin{macro}{\headheight}
874 % \begin{macro}{\headsep}
875 % \begin{macro}{\topskip}
876 % |\headheight|は、ヘッダが入るボックスの高さです。
877 % |\headsep|は、ヘッダの下端と本文領域との間の距離です。
878 % |\topskip|は、本文領域の上端と1行目のテキストのベースラインとの距離です。
879 %    \begin{macrocode}
880 %<*10pt|11pt|12pt>
881 \setlength\headheight{12\p@}
882 %<*tate>
883 \if@stysize
884   \ifnum\c@@paper=2 % A5
885     \setlength\headsep{6mm}
886   \else % A4, B4, B5 and other
887     \setlength\headsep{8mm}
888   \fi
889 \else
890     \setlength\headsep{8mm}
891 \fi
892 %</tate>
893 %<*yoko>
894 %<!bk>\setlength\headsep{25\p@}
895 %<10pt&bk>\setlength\headsep{.25in}
896 %<11pt&bk>\setlength\headsep{.275in}
897 %<12pt&bk>\setlength\headsep{.275in}
898 %</yoko>
899 \setlength\topskip{1\Cht}
900 %    \end{macrocode}
901 % \end{macro}
902 % \end{macro}
903 % \end{macro}
904 %
905 % \begin{macro}{\footskip}
906 % |\footskip|は、本文領域の下端とフッタの下端との距離です。
907 % フッタのボックスの高さを示す、|\footheight|は削除されました。
908 %    \begin{macrocode}
909 %<tate>\setlength\footskip{14mm}
910 %<*yoko>
911 %<!bk>\setlength\footskip{30\p@}
912 %<10pt&bk>\setlength\footskip{.35in}
913 %<11pt&bk>\setlength\footskip{.38in}
914 %<12pt&bk>\setlength\footskip{30\p@}
915 %</yoko>
916 %    \end{macrocode}
917 % \end{macro}
918 %
919 % \begin{macro}{\maxdepth}
920 % \changes{v1.1c}{1995/12/25}{\cs{@maxdepth}の設定を除外した}
921 % \TeX のプリミティブレジスタ|\maxdepth|は、|\topskip|と同じような
922 % 働きをします。|\@maxdepth|レジスタは、つねに|\maxdepth|のコピーでなくては
923 % いけません。これは|\begin{document}|の内部で設定されます。
924 % \TeX{}と\LaTeX~2.09では、|\maxdepth|は\texttt{4pt}に固定です。
925 % \LaTeXe{}では、|\maxdepth|$+$|\topskip|を基本サイズの1.5倍にしたいので、
926 % |\maxdepth|を|\topskip|の半分の値で設定します。
927 %    \begin{macrocode}
928 \if@compatibility
929   \setlength\maxdepth{4\p@}
930 \else
931   \setlength\maxdepth{.5\topskip}
932 \fi
933 %    \end{macrocode}
934 % \end{macro}
935 %
936 % \subsubsection{本文領域}
937 % |\textheight|と|\textwidth|は、本文領域の通常の高さと幅を示します。
938 % 縦組でも横組でも、``高さ''は行数を、``幅''は字詰めを意味します。
939 % 後ほど、これらの長さに|\topskip|の値が加えられます。
940 %
941 % \begin{macro}{\textwidth}
942 % 基本組の字詰めです。
943 %
944 % 互換モードの場合:
945 %    \begin{macrocode}
946 \if@compatibility
947 %    \end{macrocode}
948 % \changes{v1.1a}{1997/01/25}{Add paper option with compatibility mode.}
949 % \changes{v1.1h}{1997/09/03}{landscapeでの指定を追加}
950 % 互換モード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
951 %    \begin{macrocode}
952   \if@stysize
953     \ifnum\c@@paper=2 % A5
954       \if@landscape
955 %<10pt&yoko>        \setlength\textwidth{47\Cwd}
956 %<11pt&yoko>        \setlength\textwidth{42\Cwd}
957 %<12pt&yoko>        \setlength\textwidth{40\Cwd}
958 %<10pt&tate>        \setlength\textwidth{27\Cwd}
959 %<11pt&tate>        \setlength\textwidth{25\Cwd}
960 %<12pt&tate>        \setlength\textwidth{23\Cwd}
961       \else
962 %<10pt&yoko>        \setlength\textwidth{28\Cwd}
963 %<11pt&yoko>        \setlength\textwidth{25\Cwd}
964 %<12pt&yoko>        \setlength\textwidth{24\Cwd}
965 %<10pt&tate>        \setlength\textwidth{46\Cwd}
966 %<11pt&tate>        \setlength\textwidth{42\Cwd}
967 %<12pt&tate>        \setlength\textwidth{38\Cwd}
968       \fi
969     \else\ifnum\c@@paper=3 % B4
970       \if@landscape
971 %<10pt&yoko>        \setlength\textwidth{75\Cwd}
972 %<11pt&yoko>        \setlength\textwidth{69\Cwd}
973 %<12pt&yoko>        \setlength\textwidth{63\Cwd}
974 %<10pt&tate>        \setlength\textwidth{53\Cwd}
975 %<11pt&tate>        \setlength\textwidth{49\Cwd}
976 %<12pt&tate>        \setlength\textwidth{44\Cwd}
977       \else
978 %<10pt&yoko>        \setlength\textwidth{60\Cwd}
979 %<11pt&yoko>        \setlength\textwidth{55\Cwd}
980 %<12pt&yoko>        \setlength\textwidth{50\Cwd}
981 %<10pt&tate>        \setlength\textwidth{85\Cwd}
982 %<11pt&tate>        \setlength\textwidth{76\Cwd}
983 %<12pt&tate>        \setlength\textwidth{69\Cwd}
984       \fi
985     \else\ifnum\c@@paper=4 % B5
986       \if@landscape
987 %<10pt&yoko>        \setlength\textwidth{60\Cwd}
988 %<11pt&yoko>        \setlength\textwidth{55\Cwd}
989 %<12pt&yoko>        \setlength\textwidth{50\Cwd}
990 %<10pt&tate>        \setlength\textwidth{34\Cwd}
991 %<11pt&tate>        \setlength\textwidth{31\Cwd}
992 %<12pt&tate>        \setlength\textwidth{28\Cwd}
993       \else
994 %<10pt&yoko>        \setlength\textwidth{37\Cwd}
995 %<11pt&yoko>        \setlength\textwidth{34\Cwd}
996 %<12pt&yoko>        \setlength\textwidth{31\Cwd}
997 %<10pt&tate>        \setlength\textwidth{55\Cwd}
998 %<11pt&tate>        \setlength\textwidth{51\Cwd}
999 %<12pt&tate>        \setlength\textwidth{47\Cwd}
1000       \fi
1001     \else % A4 ant other
1002       \if@landscape
1003 %<10pt&yoko>        \setlength\textwidth{73\Cwd}
1004 %<11pt&yoko>        \setlength\textwidth{68\Cwd}
1005 %<12pt&yoko>        \setlength\textwidth{61\Cwd}
1006 %<10pt&tate>        \setlength\textwidth{41\Cwd}
1007 %<11pt&tate>        \setlength\textwidth{38\Cwd}
1008 %<12pt&tate>        \setlength\textwidth{35\Cwd}
1009       \else
1010 %<10pt&yoko>        \setlength\textwidth{47\Cwd}
1011 %<11pt&yoko>        \setlength\textwidth{43\Cwd}
1012 %<12pt&yoko>        \setlength\textwidth{40\Cwd}
1013 %<10pt&tate>        \setlength\textwidth{67\Cwd}
1014 %<11pt&tate>        \setlength\textwidth{61\Cwd}
1015 %<12pt&tate>        \setlength\textwidth{57\Cwd}
1016       \fi
1017     \fi\fi\fi
1018   \else
1019 %    \end{macrocode}
1020 % 互換モード:デフォルト設定
1021 %    \begin{macrocode}
1022     \if@twocolumn
1023       \setlength\textwidth{52\Cwd}
1024     \else
1025 %<10pt&!bk&yoko>      \setlength\textwidth{327\p@}
1026 %<11pt&!bk&yoko>      \setlength\textwidth{342\p@}
1027 %<12pt&!bk&yoko>      \setlength\textwidth{372\p@}
1028 %<10pt&bk&yoko>      \setlength\textwidth{4.3in}
1029 %<11pt&bk&yoko>      \setlength\textwidth{4.8in}
1030 %<12pt&bk&yoko>      \setlength\textwidth{4.8in}
1031 %<10pt&tate>      \setlength\textwidth{67\Cwd}
1032 %<11pt&tate>      \setlength\textwidth{61\Cwd}
1033 %<12pt&tate>      \setlength\textwidth{57\Cwd}
1034     \fi
1035   \fi
1036 %    \end{macrocode}
1037 % 2eモードの場合:
1038 %    \begin{macrocode}
1039 \else
1040 %    \end{macrocode}
1041 % 2eモード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
1042 % 二段組では用紙サイズの8割、一段組では用紙サイズの7割を版面の幅として
1043 % 設定します。
1044 %    \begin{macrocode}
1045   \if@stysize
1046     \if@twocolumn
1047 %<yoko>      \setlength\textwidth{.8\paperwidth}
1048 %<tate>      \setlength\textwidth{.8\paperheight}
1049     \else
1050 %<yoko>      \setlength\textwidth{.7\paperwidth}
1051 %<tate>      \setlength\textwidth{.7\paperheight}
1052     \fi
1053   \else
1054 %    \end{macrocode}
1055 % 2eモード:デフォルト設定
1056 %    \begin{macrocode}
1057 %<tate>    \setlength\@tempdima{\paperheight}
1058 %<yoko>    \setlength\@tempdima{\paperwidth}
1059     \addtolength\@tempdima{-2in}
1060 %<tate>    \addtolength\@tempdima{-1.3in}
1061 %<yoko&10pt>    \setlength\@tempdimb{327\p@}
1062 %<yoko&11pt>    \setlength\@tempdimb{342\p@}
1063 %<yoko&12pt>    \setlength\@tempdimb{372\p@}
1064 %<tate&10pt>    \setlength\@tempdimb{67\Cwd}
1065 %<tate&11pt>    \setlength\@tempdimb{61\Cwd}
1066 %<tate&12pt>    \setlength\@tempdimb{57\Cwd}
1067     \if@twocolumn
1068       \ifdim\@tempdima>2\@tempdimb\relax
1069         \setlength\textwidth{2\@tempdimb}
1070       \else
1071         \setlength\textwidth{\@tempdima}
1072       \fi
1073     \else
1074       \ifdim\@tempdima>\@tempdimb\relax
1075         \setlength\textwidth{\@tempdimb}
1076       \else
1077         \setlength\textwidth{\@tempdima}
1078       \fi
1079     \fi
1080   \fi
1081 \fi
1082 \@settopoint\textwidth
1083 %    \end{macrocode}
1084 % \end{macro}
1085 %
1086 % \begin{macro}{\textheight}
1087 % 基本組の行数です。
1088 %
1089 % 互換モードの場合:
1090 %    \begin{macrocode}
1091 \if@compatibility
1092 %    \end{macrocode}
1093 % \changes{v1.1a}{1997/01/25}{Add paper option with compatibility mode.}
1094 % \changes{v1.1f}{1997/09/03}{landscapeでの指定を追加}
1095 % 互換モード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
1096 %    \begin{macrocode}
1097   \if@stysize
1098     \ifnum\c@@paper=2 % A5
1099       \if@landscape
1100 %<10pt&yoko>        \setlength\textheight{17\Cvs}
1101 %<11pt&yoko>        \setlength\textheight{17\Cvs}
1102 %<12pt&yoko>        \setlength\textheight{16\Cvs}
1103 %<10pt&tate>        \setlength\textheight{26\Cvs}
1104 %<11pt&tate>        \setlength\textheight{26\Cvs}
1105 %<12pt&tate>        \setlength\textheight{25\Cvs}
1106       \else
1107 %<10pt&yoko>        \setlength\textheight{28\Cvs}
1108 %<11pt&yoko>        \setlength\textheight{25\Cvs}
1109 %<12pt&yoko>        \setlength\textheight{24\Cvs}
1110 %<10pt&tate>        \setlength\textheight{16\Cvs}
1111 %<11pt&tate>        \setlength\textheight{16\Cvs}
1112 %<12pt&tate>        \setlength\textheight{15\Cvs}
1113       \fi
1114     \else\ifnum\c@@paper=3 % B4
1115       \if@landscape
1116 %<10pt&yoko>        \setlength\textheight{38\Cvs}
1117 %<11pt&yoko>        \setlength\textheight{36\Cvs}
1118 %<12pt&yoko>        \setlength\textheight{34\Cvs}
1119 %<10pt&tate>        \setlength\textheight{48\Cvs}
1120 %<11pt&tate>        \setlength\textheight{48\Cvs}
1121 %<12pt&tate>        \setlength\textheight{45\Cvs}
1122       \else
1123 %<10pt&yoko>        \setlength\textheight{57\Cvs}
1124 %<11pt&yoko>        \setlength\textheight{55\Cvs}
1125 %<12pt&yoko>        \setlength\textheight{52\Cvs}
1126 %<10pt&tate>        \setlength\textheight{33\Cvs}
1127 %<11pt&tate>        \setlength\textheight{33\Cvs}
1128 %<12pt&tate>        \setlength\textheight{31\Cvs}
1129       \fi
1130     \else\ifnum\c@@paper=4 % B5
1131       \if@landscape
1132 %<10pt&yoko>        \setlength\textheight{22\Cvs}
1133 %<11pt&yoko>        \setlength\textheight{21\Cvs}
1134 %<12pt&yoko>        \setlength\textheight{20\Cvs}
1135 %<10pt&tate>        \setlength\textheight{34\Cvs}
1136 %<11pt&tate>        \setlength\textheight{34\Cvs}
1137 %<12pt&tate>        \setlength\textheight{32\Cvs}
1138       \else
1139 %<10pt&yoko>        \setlength\textheight{35\Cvs}
1140 %<11pt&yoko>        \setlength\textheight{34\Cvs}
1141 %<12pt&yoko>        \setlength\textheight{32\Cvs}
1142 %<10pt&tate>        \setlength\textheight{21\Cvs}
1143 %<11pt&tate>        \setlength\textheight{21\Cvs}
1144 %<12pt&tate>        \setlength\textheight{20\Cvs}
1145       \fi
1146     \else % A4 and other
1147       \if@landscape
1148 %<10pt&yoko>        \setlength\textheight{27\Cvs}
1149 %<11pt&yoko>        \setlength\textheight{26\Cvs}
1150 %<12pt&yoko>        \setlength\textheight{25\Cvs}
1151 %<10pt&tate>        \setlength\textheight{41\Cvs}
1152 %<11pt&tate>        \setlength\textheight{41\Cvs}
1153 %<12pt&tate>        \setlength\textheight{38\Cvs}
1154       \else
1155 %<10pt&yoko>        \setlength\textheight{43\Cvs}
1156 %<11pt&yoko>        \setlength\textheight{42\Cvs}
1157 %<12pt&yoko>        \setlength\textheight{39\Cvs}
1158 %<10pt&tate>        \setlength\textheight{26\Cvs}
1159 %<11pt&tate>        \setlength\textheight{26\Cvs}
1160 %<12pt&tate>        \setlength\textheight{22\Cvs}
1161       \fi
1162     \fi\fi\fi
1163 %<yoko>    \addtolength\textheight{\topskip}
1164 %<bk&yoko>    \addtolength\textheight{\baselineskip}
1165 %<tate>    \addtolength\textheight{\Cht}
1166 %<tate>    \addtolength\textheight{\Cdp}
1167 %    \end{macrocode}
1168 % 互換モード:デフォルト設定
1169 %    \begin{macrocode}
1170   \else
1171 %<10pt&!bk&yoko>  \setlength\textheight{578\p@}
1172 %<10pt&bk&yoko>  \setlength\textheight{554\p@}
1173 %<11pt&yoko>  \setlength\textheight{580.4\p@}
1174 %<12pt&yoko>  \setlength\textheight{586.5\p@}
1175 %<10pt&tate>  \setlength\textheight{26\Cvs}
1176 %<11pt&tate>  \setlength\textheight{25\Cvs}
1177 %<12pt&tate>  \setlength\textheight{24\Cvs}
1178   \fi
1179 %    \end{macrocode}
1180 % 2eモードの場合:
1181 %    \begin{macrocode}
1182 \else
1183 %    \end{macrocode}
1184 % 2eモード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
1185 % 縦組では用紙サイズの70\%(book)か78\%(ariticle,report)、
1186 % 横組では70\%(book)か75\%(article,report)を版面の高さに設定します。
1187 %    \begin{macrocode}
1188   \if@stysize
1189 %<tate&bk>    \setlength\textheight{.75\paperwidth}
1190 %<tate&!bk>    \setlength\textheight{.78\paperwidth}
1191 %<yoko&bk>    \setlength\textheight{.70\paperheight}
1192 %<yoko&!bk>    \setlength\textheight{.75\paperheight}
1193 %    \end{macrocode}
1194 % 2eモード:デフォルト値
1195 %    \begin{macrocode}
1196   \else
1197 %<tate>    \setlength\@tempdima{\paperwidth}
1198 %<yoko>    \setlength\@tempdima{\paperheight}
1199     \addtolength\@tempdima{-2in}
1200 %<yoko>    \addtolength\@tempdima{-1.5in}
1201     \divide\@tempdima\baselineskip
1202     \@tempcnta\@tempdima
1203     \setlength\textheight{\@tempcnta\baselineskip}
1204   \fi
1205 \fi
1206 %    \end{macrocode}
1207 % 最後に、|\textheight|に|\topskip|の値を加えます。
1208 %    \begin{macrocode}
1209 \addtolength\textheight{\topskip}
1210 \@settopoint\textheight
1211 %    \end{macrocode}
1212 % \end{macro}
1213 %
1214 % \subsubsection{マージン}
1215 %
1216 % \begin{macro}{\topmargin}
1217 % |\topmargin|は、``印字可能領域''---用紙の上端から1インチ内側---%
1218 % の上端からヘッダ部分の上端までの距離です。
1219 %
1220 % 2.09互換モードの場合:
1221 %    \begin{macrocode}
1222 \if@compatibility
1223 %<*yoko>
1224   \if@stysize
1225     \setlength\topmargin{-.3in}
1226   \else
1227 %<!bk>    \setlength\topmargin{27\p@}
1228 %<10pt&bk>    \setlength\topmargin{.75in}
1229 %<11pt&bk>    \setlength\topmargin{.73in}
1230 %<12pt&bk>    \setlength\topmargin{.73in}
1231   \fi
1232 %</yoko>
1233 %<*tate>
1234   \if@stysize
1235     \ifnum\c@@paper=2 % A5
1236       \setlength\topmargin{.8in}
1237     \else % A4, B4, B5 and other
1238       \setlength\topmargin{32mm}
1239     \fi
1240   \else
1241     \setlength\topmargin{32mm}
1242   \fi
1243   \addtolength\topmargin{-1in}
1244   \addtolength\topmargin{-\headheight}
1245   \addtolength\topmargin{-\headsep}
1246 %</tate>
1247 %    \end{macrocode}
1248 % 2eモードの場合:
1249 %    \begin{macrocode}
1250 \else
1251   \setlength\topmargin{\paperheight}
1252   \addtolength\topmargin{-\headheight}
1253   \addtolength\topmargin{-\headsep}
1254 %<tate>  \addtolength\topmargin{-\textwidth}
1255 %<yoko>  \addtolength\topmargin{-\textheight}
1256   \addtolength\topmargin{-\footskip}
1257 %    \end{macrocode}
1258 % \changes{v1.1e}{1997/04/08}{横組クラスでの調整量を
1259 %      -2.4インチから-2.0インチにした。}
1260 % \changes{v1.1j}{1998/02/03}{互換モード時のa5pのトップマージンを0.7in増加}
1261 %    \begin{macrocode}
1262   \if@stysize
1263     \ifnum\c@@paper=2 % A5
1264       \addtolength\topmargin{-1.3in}
1265     \else
1266       \addtolength\topmargin{-2.0in}
1267     \fi
1268   \else
1269 %<yoko>    \addtolength\topmargin{-2.0in}
1270 %<tate>    \addtolength\topmargin{-2.8in}
1271   \fi
1272 %    \end{macrocode}
1273 % \changes{v1.1d}{1997/02/05}{\cs{tompargin}を半分にするのはアキ領域の計算後}
1274 % \changes{v1.1r}{1999/08/09}{\cs{if@stysize}フラグに限らず半分にする}
1275 %    \begin{macrocode}
1276   \addtolength\topmargin{-.5\topmargin}
1277 \fi
1278 \@settopoint\topmargin
1279 %    \end{macrocode}
1280 % \end{macro}
1281 %
1282 % \begin{macro}{\marginparsep}
1283 % \begin{macro}{\marginparpush}
1284 % |\marginparsep|は、本文と傍注の間にあけるスペースの幅です。
1285 % 横組では本文の左(右)端と傍注、
1286 % 縦組では本文の下(上)端と傍注の間になります。
1287 % |\marginparpush|は、傍注と傍注との間のスペースの幅です。
1288 %    \begin{macrocode}
1289 \if@twocolumn
1290   \setlength\marginparsep{10\p@}
1291 \else
1292 %<tate>  \setlength\marginparsep{15\p@}
1293 %<yoko>  \setlength\marginparsep{10\p@}
1294 \fi
1295 %<tate>\setlength\marginparpush{7\p@}
1296 %<*yoko>
1297 %<10pt>\setlength\marginparpush{5\p@}
1298 %<11pt>\setlength\marginparpush{5\p@}
1299 %<12pt>\setlength\marginparpush{7\p@}
1300 %</yoko>
1301 %    \end{macrocode}
1302 % \end{macro}
1303 % \end{macro}
1304 %
1305 % \begin{macro}{\oddsidemargin}
1306 % \begin{macro}{\evensidemargin}
1307 % \begin{macro}{\marginparwidth}
1308 % まず、互換モードでの長さを示します。
1309 %
1310 % 互換モード、縦組の場合:
1311 %    \begin{macrocode}
1312 \if@compatibility
1313 %<tate>   \setlength\oddsidemargin{0\p@}
1314 %<tate>   \setlength\evensidemargin{0\p@}
1315 %    \end{macrocode}
1316 % 互換モード、横組、bookクラスの場合:
1317 %    \begin{macrocode}
1318 %<*yoko>
1319 %<*bk>
1320 %<10pt>    \setlength\oddsidemargin   {.5in}
1321 %<11pt>    \setlength\oddsidemargin   {.25in}
1322 %<12pt>    \setlength\oddsidemargin   {.25in}
1323 %<10pt>    \setlength\evensidemargin  {1.5in}
1324 %<11pt>    \setlength\evensidemargin  {1.25in}
1325 %<12pt>    \setlength\evensidemargin  {1.25in}
1326 %<10pt>    \setlength\marginparwidth {.75in}
1327 %<11pt>    \setlength\marginparwidth {1in}
1328 %<12pt>    \setlength\marginparwidth {1in}
1329 %</bk>
1330 %    \end{macrocode}
1331 % 互換モード、横組、reportとarticleクラスの場合:
1332 %    \begin{macrocode}
1333 %<*!bk>
1334     \if@twoside
1335 %<10pt>      \setlength\oddsidemargin   {44\p@}
1336 %<11pt>      \setlength\oddsidemargin   {36\p@}
1337 %<12pt>      \setlength\oddsidemargin   {21\p@}
1338 %<10pt>      \setlength\evensidemargin  {82\p@}
1339 %<11pt>      \setlength\evensidemargin  {74\p@}
1340 %<12pt>      \setlength\evensidemargin  {59\p@}
1341 %<10pt>      \setlength\marginparwidth {107\p@}
1342 %<11pt>      \setlength\marginparwidth {100\p@}
1343 %<12pt>      \setlength\marginparwidth {85\p@}
1344     \else
1345 %<10pt>     \setlength\oddsidemargin   {60\p@}
1346 %<11pt>     \setlength\oddsidemargin   {54\p@}
1347 %<12pt>     \setlength\oddsidemargin   {39.5\p@}
1348 %<10pt>     \setlength\evensidemargin  {60\p@}
1349 %<11pt>     \setlength\evensidemargin  {54\p@}
1350 %<12pt>     \setlength\evensidemargin  {39.5\p@}
1351 %<10pt>     \setlength\marginparwidth  {90\p@}
1352 %<11pt>     \setlength\marginparwidth  {83\p@}
1353 %<12pt>     \setlength\marginparwidth  {68\p@}
1354   \fi
1355 %</!bk>
1356 %    \end{macrocode}
1357 % 互換モード、横組、二段組の場合:
1358 %    \begin{macrocode}
1359   \if@twocolumn
1360      \setlength\oddsidemargin  {30\p@}
1361      \setlength\evensidemargin {30\p@}
1362      \setlength\marginparwidth {48\p@}
1363   \fi
1364 %</yoko>
1365 %    \end{macrocode}
1366 % 縦組、横組にかかわらず、スタイルオプション設定ではゼロです。
1367 % \changes{v1.0g}{1997/01/25}{\cs{oddsidemargin}, \cs{evensidemagin}:
1368 %    0pt if specified papersize at \cs{documentstyle} option.}
1369 %    \begin{macrocode}
1370   \if@stysize
1371     \if@twocolumn\else
1372       \setlength\oddsidemargin{0\p@}
1373       \setlength\evensidemargin{0\p@}
1374     \fi
1375   \fi
1376 %    \end{macrocode}
1377 %
1378 % 互換モードでない場合:
1379 %    \begin{macrocode}
1380 \else
1381   \setlength\@tempdima{\paperwidth}
1382 %<tate>  \addtolength\@tempdima{-\textheight}
1383 %<yoko>  \addtolength\@tempdima{-\textwidth}
1384 %    \end{macrocode}
1385 %
1386 % |\oddsidemargin|を計算します。
1387 %    \begin{macrocode}
1388   \if@twoside
1389 %<tate>    \setlength\oddsidemargin{.6\@tempdima}
1390 %<yoko>    \setlength\oddsidemargin{.4\@tempdima}
1391   \else
1392     \setlength\oddsidemargin{.5\@tempdima}
1393   \fi
1394   \addtolength\oddsidemargin{-1in}
1395 %    \end{macrocode}
1396 % \changes{v1.1p}{1999/1/6}{\cs{oddsidemargin}のポイントへの変換を後ろに}
1397 % |\evensidemargin|を計算します。
1398 %    \begin{macrocode}
1399   \setlength\evensidemargin{\paperwidth}
1400   \addtolength\evensidemargin{-2in}
1401 %<tate>  \addtolength\evensidemargin{-\textheight}
1402 %<yoko>  \addtolength\evensidemargin{-\textwidth}
1403   \addtolength\evensidemargin{-\oddsidemargin}
1404   \@settopoint\oddsidemargin % 1999.1.6
1405   \@settopoint\evensidemargin
1406 %    \end{macrocode}
1407 % |\marginparwidth|を計算します。
1408 % ここで、|\@tempdima|の値は、\linebreak
1409 % |\paperwidth| $-$ |\textwidth|です。
1410 % \changes{v1.1d}{1995/11/24}{typo: \cs{marginmarwidth} to \cs{marginparwidth}}
1411 %    \begin{macrocode}
1412 %<*yoko>
1413   \if@twoside
1414     \setlength\marginparwidth{.6\@tempdima}
1415     \addtolength\marginparwidth{-.4in}
1416   \else
1417     \setlength\marginparwidth{.5\@tempdima}
1418     \addtolength\marginparwidth{-.4in}
1419   \fi
1420   \ifdim \marginparwidth >2in
1421     \setlength\marginparwidth{2in}
1422   \fi
1423 %</yoko>
1424 %    \end{macrocode}
1425 %
1426 % 縦組の場合は、少し複雑です。
1427 %    \begin{macrocode}
1428 %<*tate>
1429   \setlength\@tempdima{\paperheight}
1430   \addtolength\@tempdima{-\textwidth}
1431   \addtolength\@tempdima{-\topmargin}
1432   \addtolength\@tempdima{-\headheight}
1433   \addtolength\@tempdima{-\headsep}
1434   \addtolength\@tempdima{-\footskip}
1435   \setlength\marginparwidth{.5\@tempdima}
1436 %</tate>
1437   \@settopoint\marginparwidth
1438 \fi
1439 %    \end{macrocode}
1440 % \end{macro}
1441 % \end{macro}
1442 % \end{macro}
1443 %
1444 %
1445 % \subsection{脚注}
1446 %
1447 % \begin{macro}{\footnotesep}
1448 % |\footnotesep|は、それぞれの脚注の先頭に置かれる``支柱''の高さです。
1449 % このクラスでは、通常の|\footnotesize|の支柱と同じ長さですので、
1450 % 脚注間に余計な空白は入りません。
1451 %    \begin{macrocode}
1452 %<10pt>\setlength\footnotesep{6.65\p@}
1453 %<11pt>\setlength\footnotesep{7.7\p@}
1454 %<12pt>\setlength\footnotesep{8.4\p@}
1455 %    \end{macrocode}
1456 % \end{macro}
1457 %
1458 % \begin{macro}{\footins}
1459 % |\skip\footins|は、本文の最終行と最初の脚注との間の距離です。
1460 %    \begin{macrocode}
1461 %<10pt>\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
1462 %<11pt>\setlength{\skip\footins}{10\p@ \@plus 4\p@ \@minus 2\p@}
1463 %<12pt>\setlength{\skip\footins}{10.8\p@ \@plus 4\p@ \@minus 2\p@}
1464 %    \end{macrocode}
1465 % \end{macro}
1466 %
1467 % \subsection{フロート}
1468 % すべてのフロートパラメータは、\LaTeX{}のカーネルでデフォルトが定義
1469 % されています。そのため、カウンタ以外のパラメータは|\renewcommand|で
1470 % 設定する必要があります。
1471 %
1472 % \subsubsection{フロートパラメータ}
1473 %
1474 % \begin{macro}{\floatsep}
1475 % \begin{macro}{\textfloatsep}
1476 % \begin{macro}{\intextsep}
1477 % フロートオブジェクトが本文のあるページに置かれるとき、
1478 % フロートとそのページにある別のオブジェクトの距離は、
1479 % これらのパラメータで制御されます。これらのパラメータは、一段組モードと
1480 % 二段組モードの段抜きでないフロートの両方で使われます。
1481 %
1482 % |\floatsep|は、ページ上部あるいは下部のフロート間の距離です。
1483 %
1484 % |\textfloatsep|は、ページ上部あるいは下部のフロートと本文との距離です。
1485 %
1486 % |\intextsep|は、本文の途中に出力されるフロートと本文との距離です。
1487 %    \begin{macrocode}
1488 %<*10pt>
1489 \setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
1490 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1491 \setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
1492 %</10pt>
1493 %<*11pt>
1494 \setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
1495 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1496 \setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
1497 %</11pt>
1498 %<*12pt>
1499 \setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 4\p@}
1500 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1501 \setlength\intextsep   {14\p@ \@plus 4\p@ \@minus 4\p@}
1502 %</12pt>
1503 %    \end{macrocode}
1504 % \end{macro}
1505 % \end{macro}
1506 % \end{macro}
1507 %
1508 % \begin{macro}{\dblfloatsep}
1509 % \begin{macro}{\dbltextfloatsep}
1510 % 二段組モードで、|\textwidth|の幅を持つ、段抜きのフロートオブジェクトが
1511 % 本文と同じページに置かれるとき、本文とフロートとの距離は、
1512 % |\dblfloatsep|と|\dbltextfloatsep|によって制御されます。
1513 %
1514 % |\dblfloatsep|は、ページ上部あるいは下部のフロートと本文との距離です。
1515 %
1516 % |\dbltextfloatsep|は、ページ上部あるいは下部のフロート間の距離です。
1517 %    \begin{macrocode}
1518 %<*10pt>
1519 \setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
1520 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1521 %</10pt>
1522 %<*11pt>
1523 \setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
1524 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1525 %</11pt>
1526 %<*12pt>
1527 \setlength\dblfloatsep    {14\p@ \@plus 2\p@ \@minus 4\p@}
1528 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1529 %</12pt>
1530 %    \end{macrocode}
1531 % \end{macro}
1532 % \end{macro}
1533 %
1534 % \begin{macro}{\@fptop}
1535 % \begin{macro}{\@fpsep}
1536 % \begin{macro}{\@fpbot}
1537 % フロートオブジェクトが、独立したページに置かれるとき、
1538 % このページのレイアウトは、次のパラメータで制御されます。
1539 % これらのパラメータは、一段組モードか、二段組モードでの一段出力の
1540 % フロートオブジェクトに対して使われます。
1541 %
1542 % ページ上部では、|\@fptop|の伸縮長が挿入されます。
1543 % ページ下部では、|\@fpbot|の伸縮長が挿入されます。
1544 % フロート間には|\@fpsep|が挿入されます。
1545 %
1546 % なお、そのページを空白で満たすために、|\@fptop|と|\@fpbot|の
1547 % 少なくともどちらか一方に、|plus ...fil|を含めてください。
1548 %    \begin{macrocode}
1549 %<*10pt>
1550 \setlength\@fptop{0\p@ \@plus 1fil}
1551 \setlength\@fpsep{8\p@ \@plus 2fil}
1552 \setlength\@fpbot{0\p@ \@plus 1fil}
1553 %</10pt>
1554 %<*11pt>
1555 \setlength\@fptop{0\p@ \@plus 1fil}
1556 \setlength\@fpsep{8\p@ \@plus 2fil}
1557 \setlength\@fpbot{0\p@ \@plus 1fil}
1558 %</11pt>
1559 %<*12pt>
1560 \setlength\@fptop{0\p@ \@plus 1fil}
1561 \setlength\@fpsep{10\p@ \@plus 2fil}
1562 \setlength\@fpbot{0\p@ \@plus 1fil}
1563 %</12pt>
1564 %    \end{macrocode}
1565 % \end{macro}
1566 % \end{macro}
1567 % \end{macro}
1568 %
1569 % \begin{macro}{\@dblfptop}
1570 % \begin{macro}{\@dblfpsep}
1571 % \begin{macro}{\@dblfpbot}
1572 % 二段組モードでの二段抜きのフロートに対しては、
1573 % これらのパラメータが使われます。
1574 %    \begin{macrocode}
1575 %<*10pt>
1576 \setlength\@dblfptop{0\p@ \@plus 1fil}
1577 \setlength\@dblfpsep{8\p@ \@plus 2fil}
1578 \setlength\@dblfpbot{0\p@ \@plus 1fil}
1579 %</10pt>
1580 %<*11pt>
1581 \setlength\@dblfptop{0\p@ \@plus 1fil}
1582 \setlength\@dblfpsep{8\p@ \@plus 2fil}
1583 \setlength\@dblfpbot{0\p@ \@plus 1fil}
1584 %</11pt>
1585 %<*12pt>
1586 \setlength\@dblfptop{0\p@ \@plus 1fil}
1587 \setlength\@dblfpsep{10\p@ \@plus 2fil}
1588 \setlength\@dblfpbot{0\p@ \@plus 1fil}
1589 %</12pt>
1590 %</10pt|11pt|12pt>
1591 %    \end{macrocode}
1592 % \end{macro}
1593 % \end{macro}
1594 % \end{macro}
1595 %
1596 % \subsubsection{フロートオブジェクトの上限値}
1597 %
1598 % \begin{macro}{\c@topnumber}
1599 % \Lcount{topnumber}は、本文ページの上部に出力できるフロートの最大数です。
1600 %    \begin{macrocode}
1601 %<*article|report|book>
1602 \setcounter{topnumber}{2}
1603 %    \end{macrocode}
1604 % \end{macro}
1605 %
1606 % \begin{macro}{\c@bottomnumber}
1607 % \Lcount{bottomnumber}は、本文ページの下部に出力できるフロートの最大数です。
1608 %    \begin{macrocode}
1609 \setcounter{bottomnumber}{1}
1610 %    \end{macrocode}
1611 % \end{macro}
1612 %
1613 % \begin{macro}{\c@totalnumber}
1614 % \Lcount{totalnumber}は、本文ページに出力できるフロートの最大数です。
1615 %    \begin{macrocode}
1616 \setcounter{totalnumber}{3}
1617 %    \end{macrocode}
1618 % \end{macro}
1619 %
1620 % \begin{macro}{\c@dbltopnumber}
1621 % \Lcount{dbltopnumber}は、二段組時における、本文ページの上部に出力できる
1622 % 段抜きのフロートの最大数です。
1623 %    \begin{macrocode}
1624 \setcounter{dbltopnumber}{2}
1625 %    \end{macrocode}
1626 % \end{macro}
1627 %
1628 % \begin{macro}{\topfraction}
1629 % これは、本文ページの上部に出力されるフロートが占有できる最大の割り合いです。
1630 %    \begin{macrocode}
1631 \renewcommand{\topfraction}{.7}
1632 %    \end{macrocode}
1633 % \end{macro}
1634 %
1635 % \begin{macro}{\bottomfraction}
1636 % これは、本文ページの下部に出力されるフロートが占有できる最大の割り合いです。
1637 %    \begin{macrocode}
1638 \renewcommand{\bottomfraction}{.3}
1639 %    \end{macrocode}
1640 % \end{macro}
1641 %
1642 % \begin{macro}{\textfraction}
1643 % これは、本文ページに最低限、入らなくてはならない本文の割り合いです。
1644 %    \begin{macrocode}
1645 \renewcommand{\textfraction}{.2}
1646 %    \end{macrocode}
1647 % \end{macro}
1648 %
1649 % \begin{macro}{\floatpagefraction}
1650 % これは、フロートだけのページで最低限、入らなくてはならない
1651 % フロートの割り合いです。
1652 %    \begin{macrocode}
1653 \renewcommand{\floatpagefraction}{.5}
1654 %    \end{macrocode}
1655 % \end{macro}
1656 %
1657 % \begin{macro}{\dbltopfraction}
1658 % これは、2段組時における本文ページに、
1659 % 2段抜きのフロートが占めることができる最大の割り合いです。
1660 %    \begin{macrocode}
1661 \renewcommand{\dbltopfraction}{.7}
1662 %    \end{macrocode}
1663 % \end{macro}
1664 %
1665 % \begin{macro}{\dblfloatpagefraction}
1666 % これは、2段組時におけるフロートだけのページに最低限、
1667 % 入らなくてはならない2段抜きのフロートの割り合いです。
1668 %    \begin{macrocode}
1669 \renewcommand{\dblfloatpagefraction}{.5}
1670 %    \end{macrocode}
1671 % \end{macro}
1672 %
1673 %
1674 %
1675 % \section{ページスタイル}\label{sec:pagestyle}
1676 % つぎの6種類のページスタイルを使用できます。
1677 % \pstyle{empty}は\file{latex.dtx}で定義されています。
1678 %
1679 % \begin{tabular}{ll}
1680 % empty      & ヘッダにもフッタにも出力しない\\
1681 % plain      & フッタにページ番号のみを出力する\\
1682 % headnombre & ヘッダにページ番号のみを出力する\\
1683 % footnombre & フッタにページ番号のみを出力する\\
1684 % headings   & ヘッダに見出しとページ番号を出力する\\
1685 % bothstyle  & ヘッダに見出し、フッタにページ番号を出力する\\
1686 % \end{tabular}
1687 %
1688 % ページスタイル\pstyle{foo}は、|\ps@foo|コマンドとして定義されます。
1689 %
1690 % \begin{macro}{\@evenhead}
1691 % \begin{macro}{\@oddhead}
1692 % \begin{macro}{\@evenfoot}
1693 % \begin{macro}{\@oddfoot}
1694 % これらは|\ps@...|から呼び出され、ヘッダとフッタを出力するマクロです。
1695 %
1696 % \DeleteShortVerb{\|}
1697 % \begin{tabular}{ll}
1698 % |\@oddhead| & 奇数ページのヘッダを出力\\
1699 % |\@oddfoot| & 奇数ページのフッタを出力\\
1700 % |\@evenhead| & 偶数ページのヘッダを出力\\
1701 % |\@evenfoot| & 偶数ページのフッタを出力\\
1702 % \end{tabular}
1703 % \MakeShortVerb{\|}
1704 %
1705 % これらの内容は、横組の場合は|\textwidth|の幅を持つ|\hbox|に入れられ、
1706 % 縦組の場合は|\textheight|の幅を持つ|\hbox|に入れられます。
1707 % \end{macro}
1708 % \end{macro}
1709 % \end{macro}
1710 % \end{macro}
1711 %
1712 % \subsection{マークについて}
1713 % ヘッダに入る章番号や章見出しは、見出しコマンドで実行されるマークコマンドで
1714 % 決定されます。ここでは、実行されるマークコマンドの定義を行なっています。
1715 % これらのマークコマンドは、\TeX{}の|\mark|機能を用いて、
1716 % `left'と`right'の2種類のマークを生成するように定義しています。
1717 %
1718 % \begin{flushleft}
1719 % |\markboth{|\meta{LEFT}|}{|\meta{RIGHT}|}|: 両方のマークに追加します。
1720 %
1721 % |\markright{|\meta{RIGHT}|}|: `右'マークに追加します。
1722 %
1723 % |\leftmark|: |\@oddhead|, |\@oddfoot|, |\@evenhead|, |\@evenfoot|マクロで
1724 %     使われ、現在の``左''マークを出力します。
1725 %     |\leftmark|は\TeX{}の|\botmark|コマンドのような働きをします。
1726 %     初期値は空でなくてはいけません。
1727 %
1728 % |\rightmark|: |\@oddhead|, |\@oddfoot|, |\@evenhead|, |\@evenfoot|マクロで
1729 %     使われ、現在の``右''マークを出力します。
1730 %     |\rightmark|は\TeX{}の|\firstmark|コマンドのような働きをします。
1731 %     初期値は空でなくてはいけません。
1732 % \end{flushleft}
1733 %
1734 % マークコマンドの動作は、左マークの`範囲内の'右マークのために
1735 % 合理的になっています。たとえば、左マークは|\chapter|コマンドによって
1736 % 変更されます。そして右マークは|\section|コマンドによって変更されます。
1737 % しかし、同一ページに複数の|\markboth|コマンドが現れたとき、
1738 % おかしな結果となることがあります。
1739 %
1740 % |\tableofcontents|のようなコマンドは、|\@mkboth|コマンドを用いて、
1741 % あるページスタイルの中でマークを設定しなくてはなりません。
1742 % |\@mkboth|は、|\ps@...|コマンドによって、|\markboth|(ヘッダを設定する)か、
1743 % |\@gobbletwo|(何もしない)に|\let|されます。
1744 %
1745 % \changes{v1.0a}{1995/08/30}{柱の書体がノンブルに影響するバグの修正}
1746 %
1747 % \subsection{plainページスタイル}
1748 % \pstyle{jpl@in}に|\let|するために、ここで定義をします。
1749 %
1750 % \begin{macro}{\ps@plain}
1751 %    \begin{macrocode}
1752 \def\ps@plain{\let\@mkboth\@gobbletwo
1753    \let\ps@jpl@in\ps@plain
1754    \let\@oddhead\@empty
1755    \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
1756    \let\@evenhead\@empty
1757    \let\@evenfoot\@oddfoot}
1758 %    \end{macrocode}
1759 % \end{macro}
1760 %
1761 % \subsection{jpl@inページスタイル}
1762 % \changes{v1.0d}{1996/02/29}{\pstyle{jpl@in}の初期値を定義}
1763 %
1764 % \pstyle{jpl@in}スタイルは、クラスファイル内部で使用するものです。
1765 % \LaTeX{}では、bookクラスを\pstyle{headings}としています。
1766 % しかし、\cs{tableofcontnts}コマンドの内部では\pstyle{plain}として
1767 % 設定されるため、一つの文書でのページ番号の位置が上下に出力される
1768 % ことになります。
1769 %
1770 % そこで、ここでは\cs{tableofcontents}や\cs{theindex}のページスタイル
1771 % を\pstyle{jpl@in}にし、実際に出力される形式は、ほかのページスタイル
1772 % で|\let|をしています。したがって、\pstyle{headings}のとき、目次ページの
1773 % ページ番号はヘッダ位置に出力され、\pstyle{plain}のときには、フッタ位置に
1774 % 出力されます。
1775 %
1776 % ここで、定義をしているのは、その初期値です。
1777 %
1778 % \begin{macro}{\ps@jpl@in}
1779 %    \begin{macrocode}
1780 \let\ps@jpl@in\ps@plain
1781 %    \end{macrocode}
1782 % \end{macro}
1783 %
1784 % \subsection{headnombreページスタイル}
1785 %
1786 % \begin{macro}{\ps@headnombre}
1787 % \pstyle{headnombre}スタイルは、ヘッダにページ番号のみを出力します。
1788 %    \begin{macrocode}
1789 \def\ps@headnombre{\let\@mkboth\@gobbletwo
1790     \let\ps@jpl@in\ps@headnombre
1791 %<yoko>  \def\@evenhead{\thepage\hfil}%
1792 %<yoko>  \def\@oddhead{\hfil\thepage}%
1793 %<tate>  \def\@evenhead{\hfil\thepage}%
1794 %<tate>  \def\@oddhead{\thepage\hfil}%
1795   \let\@oddfoot\@empty\let\@evenfoot\@empty}
1796 %    \end{macrocode}
1797 % \end{macro}
1798 %
1799 % \subsection{footnombreページスタイル}
1800 %
1801 % \begin{macro}{\ps@footnombre}
1802 % \pstyle{footnombre}スタイルは、フッタにページ番号のみを出力します。
1803 %    \begin{macrocode}
1804 \def\ps@footnombre{\let\@mkboth\@gobbletwo
1805     \let\ps@jpl@in\ps@footnombre
1806 %<yoko>  \def\@evenfoot{\thepage\hfil}%
1807 %<yoko>  \def\@oddfoot{\hfil\thepage}%
1808 %<tate>  \def\@evenfoot{\hfil\thepage}%
1809 %<tate>  \def\@oddfoot{\thepage\hfil}%
1810   \let\@oddhead\@empty\let\@evenhead\@empty}
1811 %    \end{macrocode}
1812 % \end{macro}
1813 %
1814 % \subsection{headingsスタイル}
1815 % \pstyle{headings}スタイルは、ヘッダに見出しとページ番号を出力します。
1816 %
1817 % \begin{macro}{\ps@headings}
1818 % このスタイルは、両面印刷と片面印刷とで形式が異なります。
1819 %    \begin{macrocode}
1820 \if@twoside
1821 %    \end{macrocode}
1822 % 横組の場合は、奇数ページが右に、偶数ページが左にきます。
1823 % 縦組の場合は、奇数ページが左に、偶数ページが右にきます。
1824 %    \begin{macrocode}
1825   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
1826     \let\@oddfoot\@empty\let\@evenfoot\@empty
1827 %<yoko>    \def\@evenhead{\thepage\hfil\leftmark}%
1828 %<yoko>    \def\@oddhead{{\rightmark}\hfil\thepage}%
1829 %<tate>    \def\@evenhead{{\leftmark}\hfil\thepage}%
1830 %<tate>    \def\@oddhead{\thepage\hfil\rightmark}%
1831     \let\@mkboth\markboth
1832 %<*article>
1833     \def\sectionmark##1{\markboth{%
1834        \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1835        ##1}{}}%
1836     \def\subsectionmark##1{\markright{%
1837        \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1\zw\fi
1838        ##1}}%
1839 %</article>
1840 %<*report|book>
1841   \def\chaptermark##1{\markboth{%
1842      \ifnum \c@secnumdepth >\m@ne
1843 %<book>         \if@mainmatter
1844          \@chapapp\thechapter\@chappos\hskip1\zw
1845 %<book>         \fi
1846      \fi
1847      ##1}{}}%
1848   \def\sectionmark##1{\markright{%
1849      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1850      ##1}}%
1851 %</report|book>
1852   }
1853 %    \end{macrocode}
1854 % 片面印刷の場合:
1855 % \changes{v1.1g}{1997/08/25}{片面印刷のとき、sectionレベルが出力されない
1856 %      のを修正}
1857 %    \begin{macrocode}
1858 \else % if not twoside
1859   \def\ps@headings{\let\ps@jpl@in\ps@headnombre
1860     \let\@oddfoot\@empty
1861 %<yoko>    \def\@oddhead{{\rightmark}\hfil\thepage}%
1862 %<tate>    \def\@oddhead{\thepage\hfil\rightmark}%
1863     \let\@mkboth\markboth
1864 %<*article>
1865   \def\sectionmark##1{\markright{%
1866      \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1\zw\fi
1867      ##1}}%
1868 %</article>
1869 %<*report|book>
1870 \def\chaptermark##1{\markright{%
1871    \ifnum \c@secnumdepth >\m@ne
1872 %<book>         \if@mainmatter
1873        \@chapapp\thechapter\@chappos\hskip1\zw
1874 %<book>         \fi
1875    \fi
1876    ##1}}%
1877 %</report|book>
1878   }
1879 \fi
1880 %    \end{macrocode}
1881 % \end{macro}
1882 %
1883 % \subsection{bothstyleスタイル}
1884 %
1885 % \begin{macro}{\ps@bothstyle}
1886 % \pstyle{bothstyle}スタイルは、
1887 % ヘッダに見出しを、フッタにページ番号を出力します。
1888 %
1889 % このスタイルは、両面印刷と片面印刷とで形式が異なります。
1890 % \changes{v1.0d}{1995/08/23}{横組のevenfootが中央揃えになっていたのを修正}
1891 % \changes{v1.0d}{1996/03/05}{横組で偶数ページと奇数ページの設定が逆なのを修正}
1892 %    \begin{macrocode}
1893 \if@twoside
1894   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
1895 %<*yoko>
1896     \def\@evenhead{\leftmark\hfil}% right page
1897     \def\@evenfoot{\thepage\hfil}% right page
1898     \def\@oddhead{\hfil\rightmark}% left page
1899     \def\@oddfoot{\hfil\thepage}% left page
1900 %</yoko>
1901 %<*tate>
1902     \def\@evenhead{\hfil\leftmark}% right page
1903     \def\@evenfoot{\hfil\thepage}% right page
1904     \def\@oddhead{\rightmark\hfil}% left page
1905     \def\@oddfoot{\thepage\hfil}% left page
1906 %</tate>
1907   \let\@mkboth\markboth
1908 %<*article>
1909   \def\sectionmark##1{\markboth{%
1910      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1911      ##1}{}}%
1912   \def\subsectionmark##1{\markright{%
1913      \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1\zw\fi
1914      ##1}}%
1915 %</article>
1916 %<*report|book>
1917 \def\chaptermark##1{\markboth{%
1918      \ifnum \c@secnumdepth >\m@ne
1919 %<book>         \if@mainmatter
1920          \@chapapp\thechapter\@chappos\hskip1\zw
1921 %<book>         \fi
1922      \fi
1923      ##1}{}}%
1924   \def\sectionmark##1{\markright{%
1925      \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1926      ##1}}%
1927 %</report|book>
1928   }
1929 %    \end{macrocode}
1930 % \changes{v1.1g}{1997/08/25}{片面印刷のとき、sectionレベルが出力されない
1931 %      のを修正}
1932 % \changes{v1.1i}{1997/12/12}{report, bookクラスで片面印刷時に、
1933 %      bothstyleスタイルにすると、コンパイルエラーになるのを修正}
1934 %    \begin{macrocode}
1935 \else % if one column
1936   \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
1937 %<yoko>    \def\@oddhead{\hfil\rightmark}%
1938 %<yoko>    \def\@oddfoot{\hfil\thepage}%
1939 %<tate>    \def\@oddhead{\rightmark\hfil}%
1940 %<tate>    \def\@oddfoot{\thepage\hfil}%
1941     \let\@mkboth\markboth
1942 %<*article>
1943   \def\sectionmark##1{\markright{%
1944      \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1\zw\fi
1945      ##1}}%
1946 %</article>
1947 %<*report|book>
1948   \def\chaptermark##1{\markright{%
1949      \ifnum \c@secnumdepth >\m@ne
1950 %<book>         \if@mainmatter
1951          \@chapapp\thechapter\@chappos\hskip1\zw
1952 %<book>         \fi
1953      \fi
1954      ##1}}%
1955 %</report|book>
1956   }
1957 \fi
1958 %    \end{macrocode}
1959 % \end{macro}
1960 %
1961 % \subsection{myheadingスタイル}
1962 %
1963 % \begin{macro}{\ps@myheadings}
1964 % \changes{v1.0d}{1995/08/23}{横組モードの左右が逆であったのを修正}
1965 % \pstyle{myheadings}ページスタイルは簡潔に定義されています。
1966 % ユーザがページスタイルを設計するときのヒナ型として使用することができます。
1967 %    \begin{macrocode}
1968 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
1969   \let\@oddfoot\@empty\let\@evenfoot\@empty
1970 %<yoko>  \def\@evenhead{\thepage\hfil\leftmark}%
1971 %<yoko>  \def\@oddhead{{\rightmark}\hfil\thepage}%
1972 %<tate>  \def\@evenhead{{\leftmark}\hfil\thepage}%
1973 %<tate>  \def\@oddhead{\thepage\hfil\rightmark}%
1974   \let\@mkboth\@gobbletwo
1975 %<!article>  \let\chaptermark\@gobble
1976   \let\sectionmark\@gobble
1977 %<article>  \let\subsectionmark\@gobble
1978 }
1979 %    \end{macrocode}
1980 % \end{macro}
1981 %
1982 %
1983 % \section{文書コマンド}
1984 %
1985 % \subsubsection{表題}
1986 %
1987 % \begin{macro}{\title}
1988 % \begin{macro}{\autor}
1989 % \begin{macro}{\date}
1990 % 文書のタイトル、著者、日付の情報のための、
1991 % これらの3つのコマンドは\file{latex.dtx}で提供されています。
1992 % これらのコマンドは次のように定義されています。
1993 %    \begin{macrocode}
1994 %\newcommand*{\title}[1]{\gdef\@title{#1}}
1995 %\newcommand*{\author}[1]{\gdef\@author{#1}}
1996 %\newcommand*{\date}[1]{\gdef\@date{#1}}
1997 %    \end{macrocode}
1998 % |\date|マクロのデフォルトは、今日の日付です。
1999 %    \begin{macrocode}
2000 %\date{\today}
2001 %    \end{macrocode}
2002 % \end{macro}
2003 % \end{macro}
2004 % \end{macro}
2005 %
2006 % \begin{environment}{titlepage}
2007 % 通常の環境では、ページの最初と最後を除き、タイトルページ環境は何もしません。
2008 % また、ページ番号の出力を抑制します。レポートスタイルでは、
2009 % ページ番号を1にリセットし、そして最後で1に戻します。
2010 % 互換モードでは、ページ番号はゼロに設定されますが、
2011 % 右起こしページ用のページパラメータでは誤った結果になります。
2012 % 二段組スタイルでも一段組のページが作られます。
2013 %
2014 % 最初に互換モードの定義を作ります。
2015 %    \begin{macrocode}
2016 \if@compatibility
2017 \newenvironment{titlepage}
2018     {%
2019 %<book>      \cleardoublepage
2020      \if@twocolumn\@restonecoltrue\onecolumn
2021      \else\@restonecolfalse\newpage\fi
2022      \thispagestyle{empty}%
2023      \setcounter{page}\z@
2024     }%
2025     {\if@restonecol\twocolumn\else\newpage\fi
2026     }
2027 %   \end{macrocode}
2028 %
2029 % そして、\LaTeX{}ネイティブのための定義です。
2030 %   \begin{macrocode}
2031 \else
2032 \newenvironment{titlepage}
2033     {%
2034 %<book>      \cleardoublepage
2035       \if@twocolumn
2036         \@restonecoltrue\onecolumn
2037       \else
2038         \@restonecolfalse\newpage
2039       \fi
2040       \thispagestyle{empty}%
2041       \setcounter{page}\@ne
2042     }%
2043     {\if@restonecol\twocolumn \else \newpage \fi
2044 %    \end{macrocode}
2045 % 二段組モードでなければ、タイトルページの直後のページのページ番号も1に
2046 % します。
2047 %    \begin{macrocode}
2048      \if@twoside\else
2049         \setcounter{page}\@ne
2050      \fi
2051     }
2052 \fi
2053 %    \end{macrocode}
2054 % \end{environment}
2055 %
2056 % \begin{macro}{\maketitle}
2057 % このコマンドは、表題を作成し、出力します。
2058 % 表題ページを独立させるかどうかによって定義が異なります。
2059 % reportとbookクラスのデフォルトは独立した表題です。
2060 % articleクラスはオプションで独立させることができます。
2061 %
2062 % \begin{macro}{\p@thanks}
2063 % 縦組のときは、|\thanks|コマンドを|\p@thanks|に|\let|します。
2064 % このコマンドは|\footnotetext|を使わず、直接、文字を|\@thanks|に格納
2065 % していきます。
2066 %    \begin{macrocode}
2067 \def\p@thanks#1{\footnotemark
2068   \protected@xdef\@thanks{\@thanks
2069     \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
2070 %    \end{macrocode}
2071 % \end{macro}
2072 %
2073 %    \begin{macrocode}
2074 \if@titlepage
2075   \newcommand{\maketitle}{\begin{titlepage}%
2076   \let\footnotesize\small
2077   \let\footnoterule\relax
2078 %<tate>  \let\thanks\p@thanks
2079   \let\footnote\thanks
2080 %    \end{macrocode}
2081 % \changes{v1.1d}{1997/02/12}{縦組クラスの表紙を縦書きにするようにした}
2082 %    \begin{macrocode}
2083 %<tate>  \vbox to\textheight\bgroup\tate\hsize\textwidth
2084   \null\vfil
2085   \vskip 60\p@
2086   \begin{center}%
2087     {\LARGE \@title \par}%
2088     \vskip 3em%
2089     {\Large
2090      \lineskip .75em%
2091       \begin{tabular}[t]{c}%
2092         \@author
2093       \end{tabular}\par}%
2094       \vskip 1.5em%
2095     {\large \@date \par}%       % Set date in \large size.
2096   \end{center}\par
2097 %<tate>  \vfil{\centering\@thanks}\vfil\null
2098 %<tate>  \egroup
2099 %<yoko>  \@thanks\vfil\null
2100   \end{titlepage}%
2101 %    \end{macrocode}
2102 % \Lcount{footnote}カウンタをリセットし、|\thanks|と|\maketitle|コマンドを
2103 % 無効にし、いくつかの内部マクロを空にして格納領域を節約します。
2104 %    \begin{macrocode}
2105   \setcounter{footnote}{0}%
2106   \global\let\thanks\relax
2107   \global\let\maketitle\relax
2108   \global\let\p@thanks\relax
2109   \global\let\@thanks\@empty
2110   \global\let\@author\@empty
2111   \global\let\@date\@empty
2112   \global\let\@title\@empty
2113 %    \end{macrocode}
2114 % タイトルが組版されたら、|\title|コマンドなどの宣言を無効にできます。
2115 % |\and|の定義は、|\author|の引数でのみ使用しますので、破棄します。
2116 %    \begin{macrocode}
2117   \global\let\title\relax
2118   \global\let\author\relax
2119   \global\let\date\relax
2120   \global\let\and\relax
2121   }%
2122 \else
2123   \newcommand{\maketitle}{\par
2124   \begingroup
2125     \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
2126     \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
2127       \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
2128 %<*tate>
2129     \long\def\@makefntext##1{\parindent 1\zw\noindent
2130        \hbox to 2\zw{\hss\@makefnmark}##1}%
2131 %</tate>
2132 %<*yoko>
2133      \long\def\@makefntext##1{\parindent 1em\noindent
2134        \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
2135 %</yoko>
2136     \if@twocolumn
2137       \ifnum \col@number=\@ne \@maketitle
2138       \else \twocolumn[\@maketitle]%
2139       \fi
2140     \else
2141       \newpage
2142       \global\@topnum\z@   % Prevents figures from going at top of page.
2143       \@maketitle
2144     \fi
2145      \thispagestyle{jpl@in}\@thanks
2146 %    \end{macrocode}
2147 % ここでグループを閉じ、\Lcount{footnote}カウンタをリセットし、
2148 % |\thanks|, |\maketitle|, |\@maketitle|を無効にし、
2149 % いくつかの内部マクロを空にして格納領域を節約します。
2150 %    \begin{macrocode}
2151   \endgroup
2152   \setcounter{footnote}{0}%
2153   \global\let\thanks\relax
2154   \global\let\maketitle\relax
2155   \global\let\p@thanks\relax
2156   \global\let\@thanks\@empty
2157   \global\let\@author\@empty
2158   \global\let\@date\@empty
2159   \global\let\@title\@empty
2160   \global\let\title\relax
2161   \global\let\author\relax
2162   \global\let\date\relax
2163   \global\let\and\relax
2164   }
2165 %    \end{macrocode}
2166 % \end{macro}
2167 %
2168 % \begin{macro}{\@maketitle}
2169 % 独立した表題ページを作らない場合の、表題の出力形式です。
2170 %    \begin{macrocode}
2171   \def\@maketitle{%
2172   \newpage\null
2173   \vskip 2em%
2174   \begin{center}%
2175 %<yoko>  \let\footnote\thanks
2176 %<tate>  \let\footnote\p@thanks
2177     {\LARGE \@title \par}%
2178     \vskip 1.5em%
2179     {\large
2180       \lineskip .5em%
2181       \begin{tabular}[t]{c}%
2182         \@author
2183       \end{tabular}\par}%
2184     \vskip 1em%
2185     {\large \@date}%
2186   \end{center}%
2187   \par\vskip 1.5em}
2188 \fi
2189 %    \end{macrocode}
2190 % \end{macro}
2191 %
2192 % \subsubsection{概要}
2193 %
2194 % \begin{environment}{abstract}
2195 % 要約文のための環境です。bookクラスでは使えません。
2196 % reportスタイルと、|titlepage|オプションを指定したarticleスタイルでは、
2197 % 独立したページに出力されます。
2198 %    \begin{macrocode}
2199 %<*article|report>
2200 \if@titlepage
2201   \newenvironment{abstract}{%
2202       \titlepage
2203       \null\vfil
2204       \@beginparpenalty\@lowpenalty
2205       \begin{center}%
2206         {\bfseries\abstractname}%
2207         \@endparpenalty\@M
2208       \end{center}}%
2209       {\par\vfil\null\endtitlepage}
2210 \else
2211   \newenvironment{abstract}{%
2212     \if@twocolumn
2213       \section*{\abstractname}%
2214     \else
2215       \small
2216       \begin{center}%
2217         {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
2218       \end{center}%
2219       \quotation
2220     \fi}{\if@twocolumn\else\endquotation\fi}
2221 \fi
2222 %</article|report>
2223 %    \end{macrocode}
2224 % \end{environment}
2225 %
2226 %
2227 % \subsection{章見出し}
2228 %
2229 % \subsection{マークコマンド}
2230 %
2231 % \begin{macro}{\chaptermark}
2232 % \begin{macro}{\sectionmark}
2233 % \begin{macro}{\subsectionmark}
2234 % \begin{macro}{\subsubsectionmark}
2235 % \begin{macro}{\paragraphmark}
2236 % \begin{macro}{\subparagraphmark}
2237 % |\...mark|コマンドを初期化します。これらのコマンドはページスタイルの
2238 % 定義で使われます(第\ref{sec:pagestyle}節参照)。
2239 % これらのたいていのコマンドは\file{latex.dtx}ですでに定義されています。
2240 %    \begin{macrocode}
2241 %<!article>\newcommand*{\chaptermark}[1]{}
2242 %\newcommand*{\sectionmark}[1]{}
2243 %\newcommand*{\subsectionmark}[1]{}
2244 %\newcommand*{\subsubsectionmark}[1]{}
2245 %\newcommand*{\paragraph}[1]{}
2246 %\newcommand*{\subparagraph}[1]{}
2247 %    \end{macrocode}
2248 % \end{macro}
2249 % \end{macro}
2250 % \end{macro}
2251 % \end{macro}
2252 % \end{macro}
2253 % \end{macro}
2254 %
2255 % \subsubsection{カウンタの定義}
2256 %
2257 % \begin{macro}{\c@secnumdepth}
2258 % \Lcount{secnumdepth}には、番号を付ける、見出しコマンドのレベルを設定します。
2259 %    \begin{macrocode}
2260 %<article>\setcounter{secnumdepth}{3}
2261 %<!article>\setcounter{secnumdepth}{2}
2262 %    \end{macrocode}
2263 % \end{macro}
2264 %
2265 % \begin{macro}{\c@chapter}
2266 % \begin{macro}{\c@section}
2267 % \begin{macro}{\c@subsection}
2268 % \begin{macro}{\c@subsubsection}
2269 % \begin{macro}{\c@paragraph}
2270 % \begin{macro}{\c@subparagraph}
2271 % これらのカウンタは見出し番号に使われます。
2272 % 最初の引数は、二番目の引数が増加するたびにリセットされます。
2273 % 二番目のカウンタはすでに定義されているものでなくてはいけません。
2274 %    \begin{macrocode}
2275 \newcounter{part}
2276 %<*book|report>
2277 \newcounter{chapter}
2278 \newcounter{section}[chapter]
2279 %</book|report>
2280 %<article>\newcounter{section}
2281 \newcounter{subsection}[section]
2282 \newcounter{subsubsection}[subsection]
2283 \newcounter{paragraph}[subsubsection]
2284 \newcounter{subparagraph}[paragraph]
2285 %    \end{macrocode}
2286 % \end{macro}
2287 % \end{macro}
2288 % \end{macro}
2289 % \end{macro}
2290 % \end{macro}
2291 % \end{macro}
2292 %
2293 % \begin{macro}{\thepart}
2294 % \begin{macro}{\thechapter}
2295 % \begin{macro}{\thesection}
2296 % \begin{macro}{\thesubsection}
2297 % \begin{macro}{\thesubsubsection}
2298 % \begin{macro}{\theparagraph}
2299 % \begin{macro}{\thesubparagraph}
2300 % |\theCTR|が実際に出力される形式の定義です。
2301 %
2302 % |\arabic{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2303 % 算用数字で出力します。
2304 %
2305 % |\roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2306 % 小文字のローマ数字で出力します。
2307 %
2308 % |\Roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2309 % 大文字のローマ数字で出力します。
2310 %
2311 % |\alph{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2312 % $1=$~a, $2=$~b のようにして出力します。
2313 %
2314 % |\Roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2315 % $1=$~A, $2=$~B のようにして出力します。
2316 %
2317 % |\kansuji{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2318 % 漢数字で出力します。
2319 %
2320 % |\rensuji{|\meta{obj}|}|は、\meta{obj}を横に並べて出力します。
2321 % したがって、横組のときには、何も影響しません。
2322 %
2323 %    \begin{macrocode}
2324 %<*tate>
2325 \renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
2326 %<article>\renewcommand{\thesection}{\rensuji{\@arabic\c@section}}
2327 %<*report|book>
2328 \renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
2329 \renewcommand{\thesection}{\thechapter・\rensuji{\@arabic\c@section}}
2330 %</report|book>
2331 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
2332 \renewcommand{\thesubsubsection}{%
2333    \thesubsection・\rensuji{\@arabic\c@subsubsection}}
2334 \renewcommand{\theparagraph}{%
2335    \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
2336 \renewcommand{\thesubparagraph}{%
2337    \theparagraph・\rensuji{\@arabic\c@subparagraph}}
2338 %</tate>
2339 %<*yoko>
2340 \renewcommand{\thepart}{\@Roman\c@part}
2341 %<article>\renewcommand{\thesection}{\@arabic\c@section}
2342 %<*report|book>
2343 \renewcommand{\thechapter}{\@arabic\c@chapter}
2344 \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
2345 %</report|book>
2346 \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
2347 \renewcommand{\thesubsubsection}{%
2348    \thesubsection.\@arabic\c@subsubsection}
2349 \renewcommand{\theparagraph}{%
2350    \thesubsubsection.\@arabic\c@paragraph}
2351 \renewcommand{\thesubparagraph}{%
2352    \theparagraph.\@arabic\c@subparagraph}
2353 %</yoko>
2354 %    \end{macrocode}
2355 % \end{macro}
2356 % \end{macro}
2357 % \end{macro}
2358 % \end{macro}
2359 % \end{macro}
2360 % \end{macro}
2361 % \end{macro}
2362 %
2363 % \begin{macro}{\@chapapp}
2364 % \begin{macro}{\@chappos}
2365 % |\@chapapp|の初期値は`|\prechaptername|'です。
2366 %
2367 % |\@chappos|の初期値は`|\postchaptername|'です。
2368 %
2369 % |\appendix|コマンドは|\@chapapp|を`|\appendixname|'に、
2370 % |\@chappos|を空に再定義します。
2371 %    \begin{macrocode}
2372 %<*report|book>
2373 \newcommand{\@chapapp}{\prechaptername}
2374 \newcommand{\@chappos}{\postchaptername}
2375 %</report|book>
2376 %    \end{macrocode}
2377 % \end{macro}
2378 % \end{macro}
2379 %
2380 % \subsubsection{前付け、本文、後付け}
2381 %
2382 % \begin{macro}{\frontmatter}
2383 % \begin{macro}{\mainmatter}
2384 % \begin{macro}{\backmatter}
2385 % \changes{v1.1}{1997/01/15}{\cs{frontmatter}, \cs{mainmatter}, \cs{backmatter}
2386 %   を\LaTeX\ の定義に修正}
2387 % 一冊の本は論理的に3つに分割されます。
2388 % 表題や目次や「はじめに」あるいは権利などの前付け、
2389 % そして本文、それから用語集や索引や奥付けなどの後付けです。
2390 %    \begin{macrocode}
2391 %<*book>
2392 \newcommand\frontmatter{%
2393   \if@openright \cleardoublepage \else \clearpage \fi
2394   \@mainmatterfalse\pagenumbering{roman}}
2395 \newcommand{\mainmatter}{%
2396   \if@openright \cleardoublepage \else \clearpage \fi
2397   \@mainmattertrue\pagenumbering{arabic}}
2398 \newcommand{\backmatter}{%
2399   \if@openright \cleardoublepage \else \clearpage \fi
2400   \@mainmatterfalse}
2401 %</book>
2402 %    \end{macrocode}
2403 % \end{macro}
2404 % \end{macro}
2405 % \end{macro}
2406 %
2407 % \subsubsection{ボックスの組み立て}
2408 % クラスファイル定義の、この部分では、|\@startsection|と|\secdef|の
2409 % 二つの内部マクロを使います。これらの構文を次に示します。
2410 %
2411 % |\@startsection|マクロは6つの引数と1つのオプション引数`*'を取ります。
2412 %
2413 %    |\@startsection|\meta{name}\meta{level}\meta{indent}^^A
2414 %                    \meta{beforeskip}\meta{afterskip}\meta{style}
2415 %            optional *\\
2416 %    \null\hphantom{\bslash @startsection}^^A
2417 %            |[|\meta{altheading}|]|\meta{heading}
2418 %
2419 % それぞれの引数の意味は、次のとおりです。
2420 %
2421 % \begin{description}
2422 % \item[\meta{name}] レベルコマンドの名前です(例:section)。
2423 % \item[\meta{level}] 見出しの深さを示す数値です(chapter=1, section=2,
2424 %    $\ldots$)。``\meta{level}$<=$カウンタ\Lcount{secnumdepth}の値''のとき、
2425 %    見出し番号が出力されます。
2426 % \item[\meta{indent}] 見出しに対する、左マージンからのインデント量です。
2427 % \item[\meta{beforeskip}] 見出しの上に置かれる空白の絶対値です。
2428 %    負の場合は、見出しに続くテキストのインデントを抑制します。
2429 % \item[\meta{afterskip}] 正のとき、見出しの後の垂直方向のスペースとなります。
2430 %    負の場合は、見出しの後の水平方向のスペースとなります。
2431 % \item[\meta{style}] 見出しのスタイルを設定するコマンドです。
2432 % \item[\meta{$*$}] 見出し番号を付けないとき、対応するカウンタは増加します。
2433 % \item[\meta{heading}] 新しい見出しの文字列です。
2434 % \end{description}
2435 %
2436 % 見出しコマンドは通常、|\@startsection|と6つの引数で定義されています。
2437 %
2438 % |\secdef|マクロは、
2439 % 見出しコマンドを|\@startsection|を用いないで定義するときに使います。
2440 % このマクロは、2つの引数を持ちます。
2441 %
2442 % |\secdef|\meta{unstarcmds}\meta{starcmds}
2443 %
2444 % \begin{description}
2445 % \item[\meta{unstarcmds}] 見出しコマンドの普通の形式で使われます。
2446 % \item[\meta{starcmds}] $*$形式の見出しコマンドで使われます。
2447 % \end{description}
2448 %
2449 % |\secdef|は次のようにして使うことができます。
2450 % \begin{verbatim}
2451 %    \def\chapter {... \secdef \CMDA \CMDB }
2452 %    \def\CMDA    [#1]#2{....} % \chapter[...]{...} の定義
2453 %    \def\CMDB    #1{....}     % \chapter*{...} の定義
2454 % \end{verbatim}
2455 %
2456 %
2457 % \subsubsection{partレベル}
2458 %
2459 % \begin{macro}{\part}
2460 % このコマンドは、新しいパート(部)をはじめます。
2461 %
2462 % articleクラスの場合は、簡単です。
2463 %
2464 % 新しい段落を開始し、小さな空白を入れ、段落後のインデントをしないようにし、
2465 % |\secdef|で作成します。
2466 %    \begin{macrocode}
2467 %<*article>
2468 \newcommand{\part}{\par\addvspace{4ex}%
2469   \@afterindenttrue
2470   \secdef\@part\@spart}
2471 %</article>
2472 %    \end{macrocode}
2473 % reportとbookスタイルの場合は、少し複雑です。
2474 %
2475 % まず、右ページからはじまるように改ページをします。
2476 % そして、部扉のページスタイルを\pstyle{empty}にします。
2477 % 2段組の場合でも、1段組で作成しますが、後ほど2段組に戻すために、
2478 % |\@restonecol|スイッチを使います。
2479 % \changes{v1.1}{1997/01/15}{\cs{part}を\LaTeX\ の定義に修正}
2480 %    \begin{macrocode}
2481 %<*report|book>
2482 \newcommand{\part}{%
2483   \if@openright \cleardoublepage \else \clearpage \fi
2484   \thispagestyle{empty}%
2485   \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
2486   \null\vfil
2487   \secdef\@part\@spart}
2488 %</report|book>
2489 %    \end{macrocode}
2490 % \end{macro}
2491 %
2492 % \begin{macro}{\@part}
2493 % このマクロが実際に部レベルの見出しを作成します。
2494 % このマクロも文書クラスによって定義が異なります。
2495 %
2496 % articleクラスの場合は、\Lcount{secnumdepth}が$-1$よりも大きいとき、
2497 % 見出し番号を付けます。このカウンタが$-1$以下の場合には付けません。
2498 %    \begin{macrocode}
2499 %<*article>
2500 \def\@part[#1]#2{%
2501   \ifnum \c@secnumdepth >\m@ne
2502     \refstepcounter{part}%
2503     \addcontentsline{toc}{part}{%
2504        \prepartname\thepart\postpartname\hspace{1\zw}#1}%
2505   \else
2506     \addcontentsline{toc}{part}{#1}%
2507   \fi
2508   \markboth{}{}%
2509   {\parindent\z@\raggedright
2510    \interlinepenalty\@M\reset@font
2511    \ifnum \c@secnumdepth >\m@ne
2512      \Large\bfseries\prepartname\thepart\postpartname
2513      \par\nobreak
2514    \fi
2515    \huge\bfseries#2\par}%
2516   \nobreak\vskip3ex\@afterheading}
2517 %</article>
2518 %    \end{macrocode}
2519 %
2520 % reportとbookクラスの場合は、\Lcount{secnumdepth}が$-2$よりも大きいときに、
2521 % 見出し番号を付けます。$-2$以下では付けません。
2522 %
2523 %    \begin{macrocode}
2524 %<*report|book>
2525 \def\@part[#1]#2{%
2526   \ifnum \c@secnumdepth >-2\relax
2527     \refstepcounter{part}%
2528     \addcontentsline{toc}{part}{%
2529        \prepartname\thepart\postpartname\hspace{1em}#1}%
2530   \else
2531     \addcontentsline{toc}{part}{#1}%
2532   \fi
2533   \markboth{}{}%
2534   {\centering
2535    \interlinepenalty\@M\reset@font
2536    \ifnum \c@secnumdepth >-2\relax
2537      \huge\bfseries\prepartname\thepart\postpartname
2538      \par\vskip20\p@
2539    \fi
2540    \Huge\bfseries#2\par}%
2541    \@endpart}
2542 %</report|book>
2543 %    \end{macrocode}
2544 % \end{macro}
2545 %
2546 % \begin{macro}{\@spart}
2547 % このマクロは、番号を付けないときの体裁です。
2548 %    \begin{macrocode}
2549 %<*article>
2550 \def\@spart#1{{%
2551   \parindent\z@\raggedright
2552   \interlinepenalty\@M\reset@font
2553   \huge\bfseries#1\par}%
2554   \nobreak\vskip3ex\@afterheading}
2555 %</article>
2556 %    \end{macrocode}
2557 % \changes{v1.1k}{1998/03/23}{reportとbookクラスで番号を付けない見出しの
2558 %   ペナルティが\cs{M@}だったのを\cs{@M}に修正}
2559 %    \begin{macrocode}
2560 %<*report|book>
2561 \def\@spart#1{{%
2562   \centering
2563   \interlinepenalty\@M\reset@font
2564   \Huge\bfseries#1\par}%
2565   \@endpart}
2566 %</report|book>
2567 %    \end{macrocode}
2568 % \end{macro}
2569 %
2570 % \begin{macro}{\@endpart}
2571 % |\@part|と|\@spart|の最後で実行されるマクロです。
2572 % 両面印刷モードのときは、白ページを追加します。
2573 % 二段組モードのときには、これ以降のページを二段組に戻します。
2574 %    \begin{macrocode}
2575 %<*report|book>
2576 \def\@endpart{\vfil\newpage
2577    \if@twoside\null\thispagestyle{empty}\newpage\fi
2578 %    \end{macrocode}
2579 % 二段組文書のとき、スイッチを二段組モードに戻す必要があります。
2580 %    \begin{macrocode}
2581    \if@tempswa\twocolumn\fi}
2582 %</report|book>
2583 %    \end{macrocode}
2584 % \end{macro}
2585 %
2586 % \subsubsection{chapterレベル}
2587 %
2588 % \begin{macro}{chapter}
2589 % 章レベルは、必ずページの先頭から開始します。
2590 % |openright|オプションが指定されている場合は、右ページからはじまる
2591 % ように|\cleardoublepage|を呼び出します。
2592 % そうでなければ、|\clearpage|を呼び出します。
2593 % なお、縦組の場合でも右ページからはじまるように、
2594 % フォーマットファイルで|\clerdoublepage|が定義されています。
2595 %
2596 % 章見出しが出力されるページのスタイルは、\pstyle{jpl@in}になります。
2597 % \pstyle{jpl@in}は、\pstyle{headnomble}か\pstyle{footnomble}のいずれかです。
2598 % 詳細は、第\ref{sec:pagestyle}節を参照してください。
2599 %
2600 % また、|\@topnum|をゼロにして、
2601 % 章見出しの上にトップフロートが置かれないようにしています。
2602 %    \begin{macrocode}
2603 %<*report|book>
2604 \newcommand{\chapter}{%
2605   \if@openright\cleardoublepage\else\clearpage\fi
2606   \thispagestyle{jpl@in}%
2607   \global\@topnum\z@
2608   \@afterindenttrue
2609   \secdef\@chapter\@schapter}
2610 %    \end{macrocode}
2611 % \end{macro}
2612 %
2613 % \begin{macro}{\@chapter}
2614 % このマクロは、章見出しに番号を付けるときに呼び出されます。
2615 % \Lcount{secnumdepth}が$-1$よりも大きく、
2616 % |\@mainmatter|が真(bookクラスの場合)のときに、番号を出力します。
2617 %    \begin{macrocode}
2618 \def\@chapter[#1]#2{%
2619   \ifnum \c@secnumdepth >\m@ne
2620 %<book>    \if@mainmatter
2621     \refstepcounter{chapter}%
2622     \typeout{\@chapapp\space\thechapter\space\@chappos}%
2623     \addcontentsline{toc}{chapter}%
2624       {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
2625 %<book>    \else\addcontentsline{toc}{chapter}{#1}\fi
2626   \else
2627     \addcontentsline{toc}{chapter}{#1}%
2628   \fi
2629   \chaptermark{#1}%
2630   \addtocontents{lof}{\protect\addvspace{10\p@}}%
2631   \addtocontents{lot}{\protect\addvspace{10\p@}}%
2632   \@makechapterhead{#2}\@afterheading}
2633 %    \end{macrocode}
2634 % \end{macro}
2635 %
2636 % \begin{macro}{\@makechapterhead}
2637 % このマクロが実際に章見出しを組み立てます。
2638 % \changes{v1.1o}{1998/12/24}{secnumdepthカウンタを$-1$以下にすると、
2639 %   見出し文字列も消えてしまうのを修正}
2640 % \changes{v1.2}{2001/09/04}{\cs{chapter}の出力位置がアスタリスク形式と
2641 %   そうでないときと違うのを修正(ありがとう、鈴木@津さん)}
2642 %    \begin{macrocode}
2643 \def\@makechapterhead#1{\hbox{}%
2644   \vskip2\Cvs
2645   {\parindent\z@
2646    \raggedright
2647    \reset@font\huge\bfseries
2648    \leavevmode
2649    \ifnum \c@secnumdepth >\m@ne
2650      \setlength\@tempdima{\linewidth}%
2651 %<book>    \if@mainmatter
2652      \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
2653      \addtolength\@tempdima{-\wd\z@}%
2654      \unhbox\z@\nobreak
2655 %<book>    \fi
2656      \vtop{\hsize\@tempdima#1}%
2657    \else
2658      #1\relax
2659    \fi}\nobreak\vskip3\Cvs}
2660 %    \end{macrocode}
2661 % \end{macro}
2662 %
2663 % \begin{macro}{\@schapter}
2664 % このマクロは、章見出しに番号を付けないときに呼び出されます。
2665 %    \begin{macrocode}
2666 \def\@schapter#1{%
2667 %<article>  \if@twocolumn\@topnewpage[\@makeschapterhead{#1}]\else
2668   \@makeschapterhead{#1}\@afterheading
2669 %<article>  \fi
2670 }
2671 %    \end{macrocode}
2672 % \end{macro}
2673 %
2674 % \begin{macro}{\@makeschapterhead}
2675 % 番号を付けない場合の形式です。
2676 % \changes{v1.2}{2001/09/04}{\cs{chapter}の出力位置がアスタリスク形式と
2677 %   そうでないときと違うのを修正(ありがとう、鈴木@津さん)}
2678 %    \begin{macrocode}
2679 \def\@makeschapterhead#1{\hbox{}%
2680   \vskip2\Cvs
2681   {\parindent\z@
2682    \raggedright
2683    \reset@font\huge\bfseries
2684    \leavevmode
2685    \setlength\@tempdima{\linewidth}%
2686    \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
2687 %</report|book>
2688 %    \end{macrocode}
2689 % \end{macro}
2690 %
2691 % \subsubsection{下位レベルの見出し}
2692 %
2693 % \begin{macro}{\section}
2694 % 見出しの前後に空白を付け、|\Large\bfseries|で出力をします。
2695 %    \begin{macrocode}
2696 \newcommand{\section}{\@startsection{section}{1}{\z@}%
2697    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
2698    {.5\Cvs \@plus.3\Cvs}%
2699    {\reset@font\Large\bfseries}}
2700 %    \end{macrocode}
2701 % \end{macro}
2702 %
2703 % \begin{macro}{\subsection}
2704 % 見出しの前後に空白を付け、|\large\bfseries|で出力をします。
2705 %    \begin{macrocode}
2706 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
2707    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
2708    {.5\Cvs \@plus.3\Cvs}%
2709    {\reset@font\large\bfseries}}
2710 %    \end{macrocode}
2711 % \end{macro}
2712 %
2713 % \begin{macro}{\subsubsection}
2714 % 見出しの前後に空白を付け、|\normalsize\bfseries|で出力をします。
2715 %    \begin{macrocode}
2716 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
2717    {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
2718    {.5\Cvs \@plus.3\Cvs}%
2719    {\reset@font\normalsize\bfseries}}
2720 %    \end{macrocode}
2721 % \end{macro}
2722 %
2723 % \begin{macro}{\paragraph}
2724 % 見出しの前に空白を付け、|\normalsize\bfseries|で出力をします。
2725 % 見出しの後ろで改行されません。
2726 %    \begin{macrocode}
2727 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
2728    {3.25ex \@plus 1ex \@minus .2ex}%
2729    {-1em}%
2730    {\reset@font\normalsize\bfseries}}
2731 %    \end{macrocode}
2732 % \end{macro}
2733 %
2734 % \begin{macro}{\subparagraph}
2735 % 見出しの前に空白を付け、|\normalsize\bfseries|で出力をします。
2736 % 見出しの後ろで改行されません。
2737 %    \begin{macrocode}
2738 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
2739    {3.25ex \@plus 1ex \@minus .2ex}%
2740    {-1em}%
2741    {\reset@font\normalsize\bfseries}}
2742 %    \end{macrocode}
2743 % \end{macro}
2744 %
2745 %
2746 % \subsubsection{付録}
2747 %
2748 % \begin{macro}{\appendix}
2749 % articleクラスの場合、|\appendix|コマンドは次のことを行ないます。
2750 %
2751 % \begin{itemize}
2752 % \item \Lcount{section}と\Lcount{subsection}カウンタをリセットする。
2753 % \item |\thesection|を英小文字で出力するように再定義する。
2754 % \end{itemize}
2755 %
2756 %    \begin{macrocode}
2757 %<*article>
2758 \newcommand{\appendix}{\par
2759   \setcounter{section}{0}%
2760   \setcounter{subsection}{0}%
2761 %<tate>  \renewcommand{\thesection}{\rensuji{\@Alph\c@section}}}
2762 %<yoko>  \renewcommand{\thesection}{\@Alph\c@section}}
2763 %</article>
2764 %    \end{macrocode}
2765 %
2766 % reportとbookクラスの場合、|\appendix|コマンドは次のことを行ないます。
2767 %
2768 % \begin{itemize}
2769 % \item \Lcount{chapter}と\Lcount{section}カウンタをリセットする。
2770 % \item |\@chapapp|を|\appendixname|に設定する。
2771 % \item |\@chappos|を空にする。
2772 % \item |\thechapter|を英小文字で出力するように再定義する。
2773 % \end{itemize}
2774 %
2775 %    \begin{macrocode}
2776 %<*report|book>
2777 \newcommand{\appendix}{\par
2778   \setcounter{chapter}{0}%
2779   \setcounter{section}{0}%
2780   \renewcommand{\@chapapp}{\appendixname}%
2781   \renewcommand{\@chappos}\space%
2782 %<tate>  \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
2783 %<yoko>  \renewcommand{\thechapter}{\@Alph\c@chapter}}
2784 %</report|book>
2785 %    \end{macrocode}
2786 % \end{macro}
2787 %
2788 %
2789 %
2790 % \subsection{リスト環境}
2791 % ここではリスト環境について説明をしています。
2792 %
2793 % リスト環境のデフォルトは次のように設定されます。
2794 %
2795 % まず、|\rigtmargin|, |\listparindent|, |\itemindent|をゼロにします。
2796 % そして、K番目のレベルのリストは|\@listK|で示されるマクロが呼び出されます。
2797 % ここで`K'は小文字のローマ数字で示されます。たとえば、3番目のレベルのリスト
2798 % として|\@listiii|が呼び出されます。
2799 % |\@listK|は|\leftmargin|を|\leftmarginK|に設定します。
2800 %
2801 % \begin{macro}{\leftmargin}
2802 % \begin{macro}{\leftmargini}
2803 % \begin{macro}{\leftmarginii}
2804 % \begin{macro}{\leftmarginiii}
2805 % \begin{macro}{\leftmarginiv}
2806 % \begin{macro}{\leftmarginv}
2807 % \begin{macro}{\leftmarginvi}
2808 % 二段組モードのマージンは少しだけ小さく設定してあります。
2809 %    \begin{macrocode}
2810 \if@twocolumn
2811   \setlength\leftmargini {2em}
2812 \else
2813   \setlength\leftmargini {2.5em}
2814 \fi
2815 %    \end{macrocode}
2816 % 次の3つの値は、|\labelsep|とデフォルトラベル(`(m)', `vii.', `M.')の
2817 % 幅の合計よりも大きくしてあります。
2818 %    \begin{macrocode}
2819 \setlength\leftmarginii  {2.2em}
2820 \setlength\leftmarginiii {1.87em}
2821 \setlength\leftmarginiv  {1.7em}
2822 \if@twocolumn
2823   \setlength\leftmarginv {.5em}
2824   \setlength\leftmarginvi{.5em}
2825 \else
2826   \setlength\leftmarginv {1em}
2827   \setlength\leftmarginvi{1em}
2828 \fi
2829 %    \end{macrocode}
2830 % \end{macro}
2831 % \end{macro}
2832 % \end{macro}
2833 % \end{macro}
2834 % \end{macro}
2835 % \end{macro}
2836 % \end{macro}
2837 %
2838 % \begin{macro}{\labelsep}
2839 % \begin{macro}{\labelwidth}
2840 % |\labelsep|はラベルとテキストの項目の間の距離です。
2841 % |\labelwidth|はラベルの幅です。
2842 %    \begin{macrocode}
2843 \setlength  \labelsep  {.5em}
2844 \setlength  \labelwidth{\leftmargini}
2845 \addtolength\labelwidth{-\labelsep}
2846 %    \end{macrocode}
2847 % \end{macro}
2848 % \end{macro}
2849 %
2850 % \begin{macro}{\@beginparpenalty}
2851 % \begin{macro}{\@endparpenalty}
2852 % これらのペナルティは、リストや段落環境の前後に挿入されます。
2853 % \begin{macro}{\@itempenalty}
2854 % このペナルティは、リスト項目の間に挿入されます。
2855 %    \begin{macrocode}
2856 \@beginparpenalty -\@lowpenalty
2857 \@endparpenalty   -\@lowpenalty
2858 \@itempenalty     -\@lowpenalty
2859 %</article|report|book>
2860 %    \end{macrocode}
2861 % \end{macro}
2862 % \end{macro}
2863 % \end{macro}
2864 %
2865 % \begin{macro}{\partopsep}
2866 % リスト環境の前に空行がある場合、|\parskip|と|\topsep|に|\partopsep|が
2867 % 加えられた値の縦方向の空白が取られます。
2868 %    \begin{macrocode}
2869 %<10pt>\setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
2870 %<11pt>\setlength\partopsep{3\p@ \@plus 1\p@ \@minus 1\p@}
2871 %<12pt>\setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
2872 %    \end{macrocode}
2873 % \end{macro}
2874 %
2875 % \begin{macro}{\@listi}
2876 % \begin{macro}{\@listI}
2877 % |\@listi|は、|\leftmargin|, |\parsep|, |\topsep|, |\itemsep|などの
2878 % トップレベルの定義をします。
2879 % この定義は、フォントサイズコマンドによって変更されます(たとえば、
2880 % |\small|の中では``小さい''リストパラメータになります)。
2881 %
2882 % このため、|\normalsize|がすべてのパラメータを戻せるように、
2883 % |\@listI|は|\@listi|のコピーを保存するように定義されています。
2884 %    \begin{macrocode}
2885 %<*10pt|11pt|12pt>
2886 \def\@listi{\leftmargin\leftmargini
2887 %<*10pt>
2888   \parsep 4\p@ \@plus2\p@ \@minus\p@
2889   \topsep 8\p@ \@plus2\p@ \@minus4\p@
2890   \itemsep4\p@ \@plus2\p@ \@minus\p@}
2891 %</10pt>
2892 %<*11pt>
2893   \parsep 4.5\p@ \@plus2\p@ \@minus\p@
2894   \topsep 9\p@   \@plus3\p@ \@minus5\p@
2895   \itemsep4.5\p@ \@plus2\p@ \@minus\p@}
2896 %</11pt>
2897 %<*12pt>
2898   \parsep 5\p@  \@plus2.5\p@ \@minus\p@
2899   \topsep 10\p@ \@plus4\p@   \@minus6\p@
2900   \itemsep5\p@  \@plus2.5\p@ \@minus\p@}
2901 %</12pt>
2902 \let\@listI\@listi
2903 %    \end{macrocode}
2904 % ここで、パラメータを初期化しますが、厳密には必要ありません。
2905 %    \begin{macrocode}
2906 \@listi
2907 %    \end{macrocode}
2908 % \end{macro}
2909 % \end{macro}
2910 %
2911 % \begin{macro}{\@listii}
2912 % \begin{macro}{\@listiii}
2913 % \begin{macro}{\@listiv}
2914 % \begin{macro}{\@listv}
2915 % \begin{macro}{\@listvi}
2916 % 下位レベルのリスト環境のパラメータの設定です。
2917 % これらは保存用のバージョンを持たないことと、
2918 % フォントサイズコマンドによって変更されないことに注意をしてください。
2919 % 言い換えれば、このクラスは、本文サイズが
2920 % |\normalsize|で現れるリストの入れ子についてだけ考えています。
2921 %    \begin{macrocode}
2922 \def\@listii{\leftmargin\leftmarginii
2923    \labelwidth\leftmarginii \advance\labelwidth-\labelsep
2924 %<*10pt>
2925    \topsep  4\p@ \@plus2\p@ \@minus\p@
2926    \parsep  2\p@ \@plus\p@  \@minus\p@
2927 %</10pt>
2928 %<*11pt>
2929    \topsep  4.5\p@ \@plus2\p@ \@minus\p@
2930    \parsep  2\p@   \@plus\p@  \@minus\p@
2931 %</11pt>
2932 %<*12pt>
2933    \topsep  5\p@   \@plus2.5\p@ \@minus\p@
2934    \parsep  2.5\p@ \@plus\p@  \@minus\p@
2935 %</12pt>
2936    \itemsep\parsep}
2937 \def\@listiii{\leftmargin\leftmarginiii
2938    \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
2939 %<10pt>   \topsep 2\p@  \@plus\p@\@minus\p@
2940 %<11pt>   \topsep 2\p@  \@plus\p@\@minus\p@
2941 %<12pt>   \topsep 2.5\p@\@plus\p@\@minus\p@
2942    \parsep\z@
2943    \partopsep \p@ \@plus\z@ \@minus\p@
2944    \itemsep\topsep}
2945 \def\@listiv {\leftmargin\leftmarginiv
2946               \labelwidth\leftmarginiv
2947               \advance\labelwidth-\labelsep}
2948 \def\@listv  {\leftmargin\leftmarginv
2949               \labelwidth\leftmarginv
2950               \advance\labelwidth-\labelsep}
2951 \def\@listvi {\leftmargin\leftmarginvi
2952               \labelwidth\leftmarginvi
2953               \advance\labelwidth-\labelsep}
2954 %</10pt|11pt|12pt>
2955 %    \end{macrocode}
2956 % \end{macro}
2957 % \end{macro}
2958 % \end{macro}
2959 % \end{macro}
2960 % \end{macro}
2961 %
2962 %
2963 % \subsubsection{enumerate環境}
2964 % enumerate環境は、カウンタ\Lcount{enumi}, \Lcount{enumii}, \Lcount{enumiii},
2965 % \Lcount{enumiv}を使います。\Lcount{enumN}はN番目のレベルの番号を制御します。
2966 %
2967 % \begin{macro}{\theenumi}
2968 % \begin{macro}{\theenumii}
2969 % \begin{macro}{\theenumiii}
2970 % \begin{macro}{\theenumiv}
2971 % 出力する番号の書式を設定します。
2972 % これらは、すでに\file{ltlists.dtx}で定義されています。
2973 %    \begin{macrocode}
2974 %<*article|report|book>
2975 %<*tate>
2976 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
2977 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
2978 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
2979 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
2980 %</tate>
2981 %<*yoko>
2982 \renewcommand{\theenumi}{\@arabic\c@enumi}
2983 \renewcommand{\theenumii}{\@alph\c@enumii}
2984 \renewcommand{\theenumiii}{\@roman\c@enumiii}
2985 \renewcommand{\theenumiv}{\@Alph\c@enumiv}
2986 %</yoko>
2987 %    \end{macrocode}
2988 % \end{macro}
2989 % \end{macro}
2990 % \end{macro}
2991 % \end{macro}
2992 %
2993 % \begin{macro}{\labelenumi}
2994 % \begin{macro}{\labelenumii}
2995 % \begin{macro}{\labelenumiii}
2996 % \begin{macro}{\labelenumiv}
2997 % enumerate環境のそれぞれの項目のラベルは、
2998 % |\labelenumi| \ldots\ |\labelenumiv|で生成されます。
2999 %    \begin{macrocode}
3000 %<*tate>
3001 \newcommand{\labelenumi}{\theenumi}
3002 \newcommand{\labelenumii}{\theenumii}
3003 \newcommand{\labelenumiii}{\theenumiii}
3004 \newcommand{\labelenumiv}{\theenumiv}
3005 %</tate>
3006 %<*yoko>
3007 \newcommand{\labelenumi}{\theenumi.}
3008 \newcommand{\labelenumii}{(\theenumii)}
3009 \newcommand{\labelenumiii}{\theenumiii.}
3010 \newcommand{\labelenumiv}{\theenumiv.}
3011 %</yoko>
3012 %    \end{macrocode}
3013 % \end{macro}
3014 % \end{macro}
3015 % \end{macro}
3016 % \end{macro}
3017 %
3018 % \begin{macro}{\p@enumii}
3019 % \begin{macro}{\p@enumiii}
3020 % \begin{macro}{\p@enumiv}
3021 % |\ref|コマンドによって、
3022 % enumerate環境のN番目のリスト項目が参照されるときの書式です。
3023 %    \begin{macrocode}
3024 \renewcommand{\p@enumii}{\theenumi}
3025 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
3026 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
3027 %    \end{macrocode}
3028 % \end{macro}
3029 % \end{macro}
3030 % \end{macro}
3031 %
3032 % \begin{environment}{enumerate}
3033 % \changes{v1.1q}{1999/05/18}{縦組時のみに設定するようにした}
3034 % トップレベルで使われたときに、最初と最後に半行分のスペースを開けるように、
3035 % 変更します。この環境は、\file{ltlists.dtx}で定義されています。
3036 %
3037 %    \begin{macrocode}
3038 \renewenvironment{enumerate}
3039   {\ifnum \@enumdepth >\thr@@\@toodeep\else
3040    \advance\@enumdepth\@ne
3041    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
3042    \list{\csname label\@enumctr\endcsname}{%
3043       \iftdir
3044          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
3045            \else\topsep\z@\fi
3046          \parskip\z@ \itemsep\z@ \parsep\z@
3047          \labelwidth1\zw \labelsep.3\zw
3048          \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
3049            \else\leftmargin\leftskip\fi
3050          \advance\leftmargin 1\zw
3051       \fi
3052          \usecounter{\@enumctr}%
3053          \def\makelabel##1{\hss\llap{##1}}}%
3054    \fi}{\endlist}
3055 %    \end{macrocode}
3056 % \end{environment}
3057 %
3058 %
3059 % \subsubsection{itemize環境}
3060 %
3061 % \begin{macro}{\labelitemi}
3062 % \begin{macro}{\labelitemii}
3063 % \begin{macro}{\labelitemiii}
3064 % \begin{macro}{\labelitemiv}
3065 % itemize環境のそれぞれの項目のラベルは、
3066 % |\labelenumi| \ldots\ |\labelenumiv|で生成されます。
3067 % \changes{v1.1a}{1997/01/28}{Bug fix: \cs{labelitemii}.}
3068 %    \begin{macrocode}
3069 \newcommand{\labelitemi}{\textbullet}
3070 \newcommand{\labelitemii}{%
3071   \iftdir
3072      {\textcircled{~}}
3073   \else
3074      {\normalfont\bfseries\textendash}
3075   \fi
3076 }
3077 \newcommand{\labelitemiii}{\textasteriskcentered}
3078 \newcommand{\labelitemiv}{\textperiodcentered}
3079 %    \end{macrocode}
3080 % \end{macro}
3081 % \end{macro}
3082 % \end{macro}
3083 % \end{macro}
3084 %
3085 % \begin{environment}{itemize}
3086 % \changes{v1.0e}{1996/03/14}{縦組時のみに設定するようにした}
3087 % トップレベルで使われたときに、最初と最後に半行分のスペースを開けるように、
3088 % 変更します。この環境は、\file{ltlists.dtx}で定義されています。
3089 %    \begin{macrocode}
3090 \renewenvironment{itemize}
3091   {\ifnum \@itemdepth >\thr@@\@toodeep\else
3092    \advance\@itemdepth\@ne
3093    \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
3094    \expandafter
3095    \list{\csname \@itemitem\endcsname}{%
3096       \iftdir
3097          \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
3098            \else\topsep\z@\fi
3099          \parskip\z@ \itemsep\z@ \parsep\z@
3100          \labelwidth1\zw \labelsep.3\zw
3101          \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
3102            \else\leftmargin\leftskip\fi
3103          \advance\leftmargin 1\zw
3104       \fi
3105          \def\makelabel##1{\hss\llap{##1}}}%
3106    \fi}{\endlist}
3107 %    \end{macrocode}
3108 % \end{environment}
3109 %
3110 %
3111 % \subsubsection{description環境}
3112 %
3113 % \begin{environment}{description}
3114 % \changes{v1.0e}{1996/03/14}{\cs{topskip}や\cs{parkip}などの値を縦組時のみに
3115 %        設定するようにした}
3116 % description環境を定義します。
3117 % 縦組時には、インデントが3字分だけ深くなります。
3118 %    \begin{macrocode}
3119 \newenvironment{description}
3120   {\list{}{\labelwidth\z@ \itemindent-\leftmargin
3121    \iftdir
3122      \leftmargin\leftskip \advance\leftmargin3\Cwd
3123      \rightmargin\rightskip
3124      \labelsep=1\zw \itemsep\z@
3125      \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
3126    \fi
3127            \let\makelabel\descriptionlabel}}{\endlist}
3128 %    \end{macrocode}
3129 % \end{environment}
3130 %
3131 % \begin{macro}{\descriptionlabel}
3132 % ラベルの形式を変更する必要がある場合は、|\descriptionlabel|を
3133 % 再定義してください。
3134 %    \begin{macrocode}
3135 \newcommand{\descriptionlabel}[1]{%
3136    \hspace\labelsep\normalfont\bfseries #1}
3137 %    \end{macrocode}
3138 % \end{macro}
3139 %
3140 %
3141 % \subsubsection{verse環境}
3142 %
3143 % \begin{environment}{verse}
3144 % verse環境は、リスト環境のパラメータを使って定義されています。
3145 % 改行をするには|\\|を用います。|\\|は|\@centercr|に|\let|されています。
3146 %    \begin{macrocode}
3147 \newenvironment{verse}
3148   {\let\\\@centercr
3149    \list{}{\itemsep\z@ \itemindent -1.5em%
3150            \listparindent\itemindent
3151            \rightmargin\leftmargin \advance\leftmargin 1.5em}%
3152            \item\relax}{\endlist}
3153 %    \end{macrocode}
3154 % \end{environment}
3155 %
3156 % \subsubsection{quotation環境}
3157 %
3158 % \begin{environment}{quotation}
3159 % quotation環境もまた、list環境のパラメータを使用して定義されています。
3160 % この環境の各行は、|\textwidth|よりも小さく設定されています。
3161 % この環境における、段落の最初の行はインデントされます。
3162 %    \begin{macrocode}
3163 \newenvironment{quotation}
3164   {\list{}{\listparindent 1.5em%
3165            \itemindent\listparindent
3166            \rightmargin\leftmargin
3167            \parsep\z@ \@plus\p@}%
3168            \item\relax}{\endlist}
3169 %    \end{macrocode}
3170 % \end{environment}
3171 %
3172 % \subsubsection{quote環境}
3173 %
3174 % \begin{environment}{quote}
3175 % quote環境は、段落がインデントされないことを除き、quotation環境と同じです。
3176 %    \begin{macrocode}
3177 \newenvironment{quote}
3178   {\list{}{\rightmargin\leftmargin}%
3179            \item\relax}{\endlist}
3180 %    \end{macrocode}
3181 % \end{environment}
3182 %
3183 %
3184 %
3185 % \subsection{フロート}
3186 %
3187 % \file{ltfloat.dtx}では、フロートオブジェクトを操作するためのツールしか
3188 % 定義していません。タイプが\texttt{TYPE}のフロートオブジェクトを
3189 % 扱うマクロを定義するには、次の変数が必要です。
3190 %
3191 % \begin{description}
3192 % \item[\texttt{\bslash fps@TYPE}]
3193 %   タイプ\texttt{TYPE}のフロートを置くデフォルトの位置です。
3194 %
3195 % \item[\texttt{\bslash ftype@TYPE}]
3196 %   タイプ\texttt{TYPE}のフロートの番号です。
3197 %   各\texttt{TYPE}には、一意な、2の倍数の\texttt{TYPE}番号を割り当てます。
3198 %   たとえば、図が番号1ならば、表は2です。次のタイプは4となります。
3199 %
3200 % \item[\texttt{\bslash ext@TYPE}]
3201 %   タイプ\texttt{TYPE}のフロートの目次を出力するファイルの拡張子です。
3202 %   たとえば、|\ext@figure|は`lot'です。
3203 %
3204 % \item[\texttt{\bslash fnum@TYPE}]
3205 %   キャプション用の図番号を生成するマクロです。
3206 %   たとえば、|\fnum@figure|は`図|\thefigure|'を作ります。
3207 % \end{description}
3208 %
3209 % \subsubsection{figure環境}
3210 % ここでは、figure環境を実装しています。
3211 %
3212 % \begin{macro}{\c@figure}
3213 % \begin{macro}{\thefigure}
3214 % 図番号です。
3215 %    \begin{macrocode}
3216 %<article>\newcounter{figure}
3217 %<report|book>\newcounter{figure}[chapter]
3218 %<*tate>
3219 %<article>\renewcommand{\thefigure}{\rensuji{\@arabic\c@figure}}
3220 %    \end{macrocode}
3221 % \changes{v1.1d}{1997/02/14}{\cs{ifnum}文の構文エラーを訂正。}
3222 %    \begin{macrocode}
3223 %<*report|book>
3224 \renewcommand{\thefigure}{%
3225   \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
3226 %</report|book>
3227 %</tate>
3228 %<*yoko>
3229 %<article>\renewcommand{\thefigure}{\@arabic\c@figure}
3230 %<*report|book>
3231 \renewcommand{\thefigure}{%
3232   \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
3233 %</report|book>
3234 %</yoko>
3235 %    \end{macrocode}
3236 % \end{macro}
3237 % \end{macro}
3238 %
3239 % \begin{macro}{\fps@figure}
3240 % \begin{macro}{\ftype@figure}
3241 % \begin{macro}{\ext@figure}
3242 % \begin{macro}{\fnum@figure}
3243 % フロートオブジェクトタイプ``figure''のためのパラメータです。
3244 %    \begin{macrocode}
3245 \def\fps@figure{tbp}
3246 \def\ftype@figure{1}
3247 \def\ext@figure{lof}
3248 %<tate>\def\fnum@figure{\figurename\thefigure}
3249 %<yoko>\def\fnum@figure{\figurename~\thefigure}
3250 %    \end{macrocode}
3251 % \end{macro}
3252 % \end{macro}
3253 % \end{macro}
3254 % \end{macro}
3255 %
3256 % \begin{environment}{figure}
3257 % \begin{environment}{figure*}
3258 % |*|形式は2段抜きのフロートとなります。
3259 %    \begin{macrocode}
3260 \newenvironment{figure}
3261                {\@float{figure}}
3262                {\end@float}
3263 \newenvironment{figure*}
3264                {\@dblfloat{figure}}
3265                {\end@dblfloat}
3266 %    \end{macrocode}
3267 % \end{environment}
3268 % \end{environment}
3269 %
3270 % \subsubsection{table環境}
3271 % ここでは、table環境を実装しています。
3272 %
3273 % \begin{macro}{\c@table}
3274 % \begin{macro}{\thetable}
3275 % \changes{v1.1n}{1998/10/13}
3276 %    {report, bookクラスでchapterカウンタを考慮していなかったのを修正。
3277 %     ありがとう、平川@慶應大さん。}
3278 % 表番号です。
3279 %    \begin{macrocode}
3280 %<article>\newcounter{table}
3281 %<report|book>\newcounter{table}[chapter]
3282 %<*tate>
3283 %<article>\renewcommand{\thetable}{\rensuji{\@arabic\c@table}}
3284 %<*report|book>
3285 \renewcommand{\thetable}{%
3286   \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
3287 %</report|book>
3288 %</tate>
3289 %<*yoko>
3290 %<article>\renewcommand{\thetable}{\@arabic\c@table}
3291 %<*report|book>
3292 \renewcommand{\thetable}{%
3293   \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
3294 %</report|book>
3295 %</yoko>
3296 %    \end{macrocode}
3297 % \end{macro}
3298 % \end{macro}
3299 %
3300 % \begin{macro}{\fps@table}
3301 % \begin{macro}{\ftype@table}
3302 % \begin{macro}{\ext@table}
3303 % \begin{macro}{\fnum@table}
3304 % フロートオブジェクトタイプ``table''のためのパラメータです。
3305 %    \begin{macrocode}
3306 \def\fps@table{tbp}
3307 \def\ftype@table{2}
3308 \def\ext@table{lot}
3309 %<tate>\def\fnum@table{\tablename\thetable}
3310 %<yoko>\def\fnum@table{\tablename~\thetable}
3311 %    \end{macrocode}
3312 % \end{macro}
3313 % \end{macro}
3314 % \end{macro}
3315 % \end{macro}
3316 %
3317 % \begin{environment}{table}
3318 % \begin{environment}{table*}
3319 % |*|形式は2段抜きのフロートとなります。
3320 %    \begin{macrocode}
3321 \newenvironment{table}
3322                {\@float{table}}
3323                {\end@float}
3324 \newenvironment{table*}
3325                {\@dblfloat{table}}
3326                {\end@dblfloat}
3327 %    \end{macrocode}
3328 % \end{environment}
3329 % \end{environment}
3330 %
3331 % \subsection{キャプション}
3332 %
3333 % \begin{macro}{\@makecaption}
3334 % |\caption|コマンドは、キャプションを組み立てるために|\@mkcaption|を呼出ます。
3335 % このコマンドは二つの引数を取ります。
3336 % 一つは、\meta{number}で、フロートオブジェクトの番号です。
3337 % もう一つは、\meta{text}でキャプション文字列です。
3338 % \meta{number}には通常、`図 3.2'のような文字列が入っています。
3339 % このマクロは、|\parbox|の中で呼び出されます。書体は|\normalsize|です。
3340 %
3341 % \begin{macro}{\abovecaptionskip}
3342 % \begin{macro}{\belowcaptionskip}
3343 % これらの長さはキャプションの前後に挿入されるスペースです。
3344 %    \begin{macrocode}
3345 \newlength\abovecaptionskip
3346 \newlength\belowcaptionskip
3347 \setlength\abovecaptionskip{10\p@}
3348 \setlength\belowcaptionskip{0\p@}
3349 %    \end{macrocode}
3350 % \end{macro}
3351 % \end{macro}
3352 %
3353 % キャプション内で複数の段落を作成することができるように、
3354 % このマクロは|\long|で定義をします。
3355 %    \begin{macrocode}
3356 \long\def\@makecaption#1#2{%
3357   \vskip\abovecaptionskip
3358   \iftdir\sbox\@tempboxa{#1\hskip1\zw#2}%
3359     \else\sbox\@tempboxa{#1: #2}%
3360   \fi
3361   \ifdim \wd\@tempboxa >\hsize
3362     \iftdir #1\hskip1\zw#2\relax\par
3363       \else #1: #2\relax\par\fi
3364   \else
3365     \global \@minipagefalse
3366     \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
3367   \fi
3368   \vskip\belowcaptionskip}
3369 %    \end{macrocode}
3370 % \end{macro}
3371 %
3372 % \subsection{コマンドパラメータの設定}
3373 %
3374 % \subsubsection{arrayとtabular環境}
3375 %
3376 % \begin{macro}{\arraycolsep}
3377 % array環境のカラムは2|\arraycolsep|で分離されます。
3378 %    \begin{macrocode}
3379 \setlength\arraycolsep{5\p@}
3380 %    \end{macrocode}
3381 % \end{macro}
3382 %
3383 % \begin{macro}{\tabcolsep}
3384 % tabular環境のカラムは2|\tabcolsep|で分離されます。
3385 %    \begin{macrocode}
3386 \setlength\tabcolsep{6\p@}
3387 %    \end{macrocode}
3388 % \end{macro}
3389 %
3390 % \begin{macro}{\arrayrulewidth}
3391 % arrayとtabular環境内の罫線の幅です。
3392 %    \begin{macrocode}
3393 \setlength\arrayrulewidth{.4\p@}
3394 %    \end{macrocode}
3395 % \end{macro}
3396 %
3397 % \begin{macro}{\doublerulesep}
3398 % arrayとtabular環境内の罫線間を調整する空白です。
3399 %    \begin{macrocode}
3400 \setlength\doublerulesep{2\p@}
3401 %    \end{macrocode}
3402 % \end{macro}
3403 %
3404 % \subsubsection{tabbing環境}
3405 %
3406 % \begin{macro}{\tabbingsep}
3407 % |\'|コマンドで置かれるスペースを制御します。
3408 %    \begin{macrocode}
3409 \setlength\tabbingsep{\labelsep}
3410 %    \end{macrocode}
3411 % \end{macro}
3412 %
3413 % \subsubsection{minipage環境}
3414 %
3415 % \begin{macro}{\@mpfootins}
3416 % minipageにも脚注を付けることができます。
3417 % |\skip||\@mpfootins|は、通常の|\skip||\footins|と同じような動作をします。
3418 %    \begin{macrocode}
3419 \skip\@mpfootins = \skip\footins
3420 %    \end{macrocode}
3421 % \end{macro}
3422 %
3423 % \subsubsection{framebox環境}
3424 %
3425 % \begin{macro}{\fboxsep}
3426 % \begin{macro}{\fboxrule}
3427 % |\fboxsep|は、|\fbox|と|\framebox|での、
3428 % テキストとボックスの間に入る空白です。
3429 % |\fboxrule|は|\fbox|と|\framebox|で作成される罫線の幅です。
3430 %    \begin{macrocode}
3431 \setlength\fboxsep{3\p@}
3432 \setlength\fboxrule{.4\p@}
3433 %    \end{macrocode}
3434 % \end{macro}
3435 % \end{macro}
3436 %
3437 % \subsubsection{equationとeqnarray環境}
3438 %
3439 % \begin{macro}{\theequation}
3440 % equationカウンタは、新しい章の開始でリセットされます。
3441 % また、equation番号には、章番号が付きます。
3442 %
3443 % このコードは|\chapter|定義の後、より正確にはchapterカウンタの定義の後、
3444 % でなくてはいけません。
3445 %    \begin{macrocode}
3446 %<article>\renewcommand{\theequation}{\@arabic\c@equation}
3447 %<*report|book>
3448 \@addtoreset{equation}{chapter}
3449 \renewcommand{\theequation}{%
3450   \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
3451 %</report|book>
3452 %    \end{macrocode}
3453 % \end{macro}
3454 %
3455 %
3456 % \section{フォントコマンド}
3457 % まず、数式内に日本語を直接、記述するために数式記号用文字に
3458 % ``JY3/mc/m/n''を登録します。数式バージョンがboldの場合は、
3459 % ``JY3/gt/m/n''を用います。
3460 % これらは、|\mathmc|, |\mathgt|として登録されます。
3461 % また、日本語数式ファミリとして|\symmincho|がこの段階で設定されます。
3462 % |mathrmmc|オプションが指定されていた場合には、これに引き続き
3463 % |\mathrm|と|\mathbf|を和欧文両対応にするための作業がなされます。この際、
3464 % 他のマクロとの衝突を避けるため|\AtBeginDocument|
3465 % を用いて展開順序を遅らせる必要があります。
3466 %
3467 %   \textbf{変更}
3468 %
3469 % \changes{v1.6}{2006/06/27}{フォントコマンドを修正。ありがとう、ymtさん。}
3470 %    \LaTeX{} 2.09
3471 %    compatibility mode では和文数式フォントfamが2重定義されていた
3472 %    ので、その部分を変更しました。
3473 %    \begin{macrocode}
3474 \if@compatibility\else
3475   \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
3476   \DeclareSymbolFontAlphabet{\mathmc}{mincho}
3477   \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
3478   \jfam\symmincho
3479   \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
3480 \fi
3481 \if@mathrmmc
3482   \AtBeginDocument{%
3483   \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
3484   \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
3485 }%
3486 \fi
3487 %    \end{macrocode}
3488 %
3489 % ここでは\LaTeX~2.09で一般的に使われていたコマンドを定義しています。
3490 % これらのコマンドはテキストモードと数式モードの\emph{どちらでも}動作します。
3491 % これらは互換性のために提供をしますが、できるだけ|\text...|と|\math...|を
3492 % 使うようにしてください。
3493 %
3494 % \begin{macro}{\mc}
3495 % \begin{macro}{\gt}
3496 % \begin{macro}{\rm}
3497 % \begin{macro}{\sf}
3498 % \begin{macro}{\tt}
3499 % これらのコマンドはフォントファミリを変更します。
3500 % 互換モードの同名コマンドと異なり、すべてのコマンドがデフォルトフォントに
3501 % リセットしてから、対応する属性を変更することに注意してください。
3502 %    \begin{macrocode}
3503 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
3504 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
3505 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
3506 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
3507 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
3508 %    \end{macrocode}
3509 % \end{macro}
3510 % \end{macro}
3511 % \end{macro}
3512 % \end{macro}
3513 % \end{macro}
3514 %
3515 % \begin{macro}{\bf}
3516 % このコマンドはボールド書体にします。ノーマル書体に変更するには、
3517 % |\mdseries|と指定をします。
3518 %    \begin{macrocode}
3519 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
3520 %    \end{macrocode}
3521 % \end{macro}
3522 %
3523 % \begin{macro}{\it}
3524 % \begin{macro}{\sl}
3525 % \begin{macro}{\sc}
3526 % これらのコマンドはフォントシェイプを切替えます。
3527 % スラント体とスモールキャップの数式アルファベットはありませんので、
3528 % 数式モードでは何もしませんが、警告メッセージを出力します。
3529 % |\upshape|コマンドで通常のシェイプにすることができます。
3530 %    \begin{macrocode}
3531 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
3532 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
3533 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
3534 %    \end{macrocode}
3535 % \end{macro}
3536 % \end{macro}
3537 % \end{macro}
3538 %
3539 % \begin{macro}{\cal}
3540 % \begin{macro}{\mit}
3541 % これらのコマンドは数式モードでだけ使うことができます。
3542 % 数式モード以外では何もしません。
3543 % 現在のNFSSは、これらのコマンドが警告を生成するように定義していますので、
3544 % `手ずから'定義する必要があります。
3545 %    \begin{macrocode}
3546 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
3547 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
3548 %    \end{macrocode}
3549 % \end{macro}
3550 % \end{macro}
3551 %
3552 %
3553 %
3554 % \section{相互参照}
3555 %
3556 % \subsection{目次}
3557 % |\section|コマンドは、\file{.toc}ファイルに、次のような行を出力します。
3558 %
3559 % |\contentsline{section}{|\meta{title}|}{|\meta{page}|}|
3560 %
3561 % \meta{title}には項目が、\meta{page}にはページ番号が入ります。
3562 % |\section|に見出し番号が付く場合は、\meta{title}は、
3563 % |\numberline{|\meta{num}|}{|\meta{heading}|}|となります。
3564 % \meta{num}は|\thesection|コマンドで生成された見出し番号です。
3565 % \meta{heading}は見出し文字列です。この他の見出しコマンドも同様です。
3566 %
3567 % figure環境での|\caption|コマンドは、\file{.lof}ファイルに、
3568 % 次のような行を出力します。
3569 %
3570 % |\contentsline{figure}{\numberline{|\meta{num}|}{|%
3571 %                              \meta{caption}|}}{|\meta{page}|}|
3572 %
3573 % \meta{num}は、|\thefigure|コマンドで生成された図番号です。
3574 % \meta{caption}は、キャプション文字列です。table環境も同様です。
3575 %
3576 % |\contentsline{|\meta{name}|}|コマンドは、|\l@|\meta{name}に展開されます。
3577 % したがって、目次の体裁を記述するには、|\l@chapter|, |\l@section|などを
3578 % 定義します。図目次のためには|\l@figure|です。
3579 % これらの多くのコマンドは|\@dottedtocline|コマンドで定義されています。
3580 % このコマンドは次のような書式となっています。
3581 %
3582 % |\@dottedtocline{|\meta{level}|}{|\meta{indent}|}{|^^A
3583 %        \meta{numwidth}|}{|\meta{title}|}{|\meta{page}|}|
3584 %
3585 % \begin{description}
3586 % \item[\meta{level}] ``\meta{level} $<=$ \Lcount{tocdepth}''のときにだけ、
3587 %   生成されます。|\chapter|はレベル0、|\section|はレベル1、$\ldots$ です。
3588 % \item[\meta{indent}] 一番外側からの左マージンです。
3589 % \item[\meta{numwidth}] 見出し番号(|\numberline|コマンドの\meta{num})が
3590 %   入るボックスの幅です。
3591 % \end{description}
3592 %
3593 % \begin{macro}{\c@tocdepth}
3594 % \Lcount{tocdepth}は、目次ページに出力をする見出しレベルです。
3595 %    \begin{macrocode}
3596 %<article>\setcounter{tocdepth}{3}
3597 %<!article>\setcounter{tocdepth}{2}
3598 %    \end{macrocode}
3599 % \end{macro}
3600 %
3601 % また、目次を生成するために次のパラメータも使います。
3602 %
3603 % \begin{macro}{\@pnumwidth}
3604 % ページ番号の入るボックスの幅です。
3605 %    \begin{macrocode}
3606 \newcommand{\@pnumwidth}{1.55em}
3607 %    \end{macrocode}
3608 % \end{macro}
3609 %
3610 % \begin{macro}{\@tocmarg}
3611 % 複数行にわたる場合の右マージンです。
3612 %    \begin{macrocode}
3613 \newcommand{\@tocrmarg}{2.55em}
3614 %    \end{macrocode}
3615 % \end{macro}
3616 %
3617 % \begin{macro}{\@dotsep}
3618 % ドットの間隔(mu単位)です。2や1.7のように指定をします。
3619 %    \begin{macrocode}
3620 \newcommand{\@dotsep}{4.5}
3621 %    \end{macrocode}
3622 % \end{macro}
3623 %
3624 % \begin{macro}{\toclineskip}
3625 % この長さ変数は、目次項目の間に入るスペースの長さです。
3626 % デフォルトはゼロとなっています。縦組のとき、スペースを少し広げます。
3627 %    \begin{macrocode}
3628 \newdimen\toclineskip
3629 %<yoko>\setlength\toclineskip{\z@}
3630 %<tate>\setlength\toclineskip{2\p@}
3631 %    \end{macrocode}
3632 % \end{macro}
3633 %
3634 % \begin{macro}{\numberline}
3635 % \begin{macro}{\@lnumwidth}
3636 % |\numberline|マクロの定義を示します。オリジナルの定義では、ボックスの幅を
3637 % |\@tempdima|にしていますが、この変数はいろいろな箇所で使われますので、
3638 % 期待した値が入らない場合があります。
3639 %
3640 % たとえば、|lltjfont.sty|での|\selectfont|は、和欧文のベースラインを調整する
3641 % ために|\@tempdima|変数を用いています。そのため、|\l@...|マクロの中で
3642 % フォントを切替えると、|\numberline|マクロのボックス
3643 % の幅が、ベースラインを調整するときに計算した値になってしまいます。
3644 %
3645 % フォント選択コマンドの後、あるいは|\numberline|マクロの中でフォントを
3646 % 切替えてもよいのですが、一時変数を意識したくないので、
3647 % 見出し番号の入るボックスを|\@lnumwidth|変数を用いて組み立てるように
3648 % |\numberline|マクロを再定義します。
3649 %    \begin{macrocode}
3650 \newdimen\@lnumwidth
3651 \def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
3652 %    \end{macrocode}
3653 % \end{macro}
3654 % \end{macro}
3655 %
3656 % \begin{macro}{\@dottedtocline}
3657 % 目次の各行間に|\toclineskip|を入れるように変更します。
3658 % このマクロは\file{ltsect.dtx}で定義されています。
3659 % \changes{v1.3}{2001/10/04}{第5引数の書体を\cs{rmfamily}から\cs{normalfont}に変更}
3660 %    \begin{macrocode}
3661 \def\@dottedtocline#1#2#3#4#5{%
3662   \ifnum #1>\c@tocdepth \else
3663     \vskip\toclineskip \@plus.2\p@
3664     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
3665      \parindent #2\relax\@afterindenttrue
3666      \interlinepenalty\@M
3667      \leavevmode
3668      \@lnumwidth #3\relax
3669      \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
3670      {#4}\nobreak
3671      \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
3672      \hfill\nobreak
3673      \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
3674      \par}%
3675   \fi}
3676 %    \end{macrocode}
3677 % \end{macro}
3678 %
3679 % \begin{macro}{\addcontentsline}
3680 % ページ番号を|\rensuji|で囲むように変更します。
3681 % 横組のときにも`|\rensuji|'コマンドが出力されますが、
3682 % このコマンドによる影響はありません。
3683 %
3684 % このマクロは\file{ltsect.dtx}で定義されています。
3685 %    \begin{macrocode}
3686 \def\addcontentsline#1#2#3{%
3687   \protected@write\@auxout
3688     {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
3689 %<tate>\@temptokena{\rensuji{\thepage}}}%
3690 %<yoko>\@temptokena{\thepage}}%
3691     {\string\@writefile{#1}%
3692        {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
3693 }
3694 %    \end{macrocode}
3695 % \end{macro}
3696 %
3697 %
3698 % \subsubsection{本文目次}
3699 %
3700 % \begin{macro}{\tableofcontents}
3701 % 目次を生成します。
3702 %    \begin{macrocode}
3703 \newcommand{\tableofcontents}{%
3704 %<*report|book>
3705   \if@twocolumn\@restonecoltrue\onecolumn
3706   \else\@restonecolfalse\fi
3707 %</report|book>
3708 %<article>  \section*{\contentsname
3709 %<!article>  \chapter*{\contentsname
3710     \@mkboth{\contentsname}{\contentsname}%
3711   }\@starttoc{toc}%
3712 %<report|book>  \if@restonecol\twocolumn\fi
3713 }
3714 %    \end{macrocode}
3715 % \end{macro}
3716 %
3717 % \begin{macro}{\l@part}
3718 % partレベルの目次です。
3719 %    \begin{macrocode}
3720 \newcommand*{\l@part}[2]{%
3721   \ifnum \c@tocdepth >-2\relax
3722 %<article>    \addpenalty{\@secpenalty}%
3723 %<!article>    \addpenalty{-\@highpenalty}%
3724     \addvspace{2.25em \@plus\p@}%
3725     \begingroup
3726     \parindent\z@\rightskip\@pnumwidth
3727     \parfillskip-\@pnumwidth
3728     {\leavevmode\large\bfseries
3729      \setlength\@lnumwidth{4\zw}%
3730      #1\hfil\nobreak
3731      \hbox to\@pnumwidth{\hss#2}}\par
3732     \nobreak
3733 %<article>    \if@compatibility
3734     \global\@nobreaktrue
3735     \everypar{\global\@nobreakfalse\everypar{}}%
3736 %<article>    \fi
3737      \endgroup
3738   \fi}
3739 %    \end{macrocode}
3740 % \end{macro}
3741 %
3742 % \begin{macro}{\l@chapter}
3743 % chapterレベルの目次です。
3744 %    \begin{macrocode}
3745 %<*report|book>
3746 \newcommand*{\l@chapter}[2]{%
3747   \ifnum \c@tocdepth >\m@ne
3748     \addpenalty{-\@highpenalty}%
3749     \addvspace{1.0em \@plus\p@}%
3750     \begingroup
3751       \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
3752       \leavevmode\bfseries
3753       \setlength\@lnumwidth{4\zw}%
3754       \advance\leftskip\@lnumwidth \hskip-\leftskip
3755       #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
3756       \penalty\@highpenalty
3757     \endgroup
3758   \fi}
3759 %</report|book>
3760 %    \end{macrocode}
3761 % \end{macro}
3762 %
3763 % \begin{macro}{\l@section}
3764 % sectionレベルの目次です。
3765 %    \begin{macrocode}
3766 %<*article>
3767 \newcommand*{\l@section}[2]{%
3768   \ifnum \c@tocdepth >\z@
3769     \addpenalty{\@secpenalty}%
3770     \addvspace{1.0em \@plus\p@}%
3771     \begingroup
3772       \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
3773       \leavevmode\bfseries
3774       \setlength\@lnumwidth{1.5em}%
3775       \advance\leftskip\@lnumwidth \hskip-\leftskip
3776       #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
3777     \endgroup
3778   \fi}
3779 %</article>
3780 %    \end{macrocode}
3781 %
3782 %    \begin{macrocode}
3783 %<*report|book>
3784 %<tate>\newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
3785 %<yoko>\newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
3786 %</report|book>
3787 %    \end{macrocode}
3788 % \end{macro}
3789 %
3790 % \begin{macro}{\l@subsection}
3791 % \begin{macro}{\l@subsubsection}
3792 % \begin{macro}{\l@paragraph}
3793 % \begin{macro}{\l@subparagraph}
3794 % 下位レベルの目次項目の体裁です。
3795 %    \begin{macrocode}
3796 %<*tate>
3797 %<*article>
3798 \newcommand*{\l@subsection}   {\@dottedtocline{2}{1\zw}{4\zw}}
3799 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{2\zw}{6\zw}}
3800 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{3\zw}{8\zw}}
3801 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{4\zw}{9\zw}}
3802 %</article>
3803 %<*report|book>
3804 \newcommand*{\l@subsection}   {\@dottedtocline{2}{2\zw}{6\zw}}
3805 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
3806 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{4\zw}{9\zw}}
3807 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
3808 %</report|book>
3809 %</tate>
3810 %<*yoko>
3811 %<*article>
3812 \newcommand*{\l@subsection}   {\@dottedtocline{2}{1.5em}{2.3em}}
3813 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3.8em}{3.2em}}
3814 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{7.0em}{4.1em}}
3815 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{10em}{5em}}
3816 %</article>
3817 %<*report|book>
3818 \newcommand*{\l@subsection}   {\@dottedtocline{2}{3.8em}{3.2em}}
3819 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
3820 \newcommand*{\l@paragraph}    {\@dottedtocline{4}{10em}{5em}}
3821 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
3822 %</report|book>
3823 %</yoko>
3824 %    \end{macrocode}
3825 % \end{macro}
3826 % \end{macro}
3827 % \end{macro}
3828 % \end{macro}
3829 %
3830 %
3831 % \subsubsection{図目次と表目次}
3832 %
3833 % \begin{macro}{\listoffigures}
3834 % 図の一覧を作成します。
3835 %    \begin{macrocode}
3836 \newcommand{\listoffigures}{%
3837 %<*report|book>
3838   \if@twocolumn\@restonecoltrue\onecolumn
3839   \else\@restonecolfalse\fi
3840   \chapter*{\listfigurename
3841 %</report|book>
3842 %<article>    \section*{\listfigurename
3843   \@mkboth{\listfigurename}{\listfigurename}}%
3844   \@starttoc{lof}%
3845 %<report|book>  \if@restonecol\twocolumn\fi
3846 }
3847 %    \end{macrocode}
3848 % \end{macro}
3849 %
3850 % \begin{macro}{\l@figure}
3851 % 図目次の体裁です。
3852 %    \begin{macrocode}
3853 %<tate>\newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
3854 %<yoko>\newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
3855 %    \end{macrocode}
3856 % \end{macro}
3857 %
3858 % \begin{macro}{\listoftables}
3859 % \changes{v1.0c}{1995/12/28}{fix the \cs{listoftable} typo.}
3860 % 表の一覧を作成します。
3861 %    \begin{macrocode}
3862 \newcommand{\listoftables}{%
3863 %<*report|book>
3864   \if@twocolumn\@restonecoltrue\onecolumn
3865   \else\@restonecolfalse\fi
3866   \chapter*{\listtablename
3867 %</report|book>
3868 %<article>    \section*{\listtablename
3869   \@mkboth{\listtablename}{\listtablename}}%
3870   \@starttoc{lot}%
3871 %<report|book>  \if@restonecol\twocolumn\fi
3872 }
3873 %    \end{macrocode}
3874 % \end{macro}
3875 %
3876 % \begin{macro}{\l@table}
3877 % 表目次の体裁は、図目次と同じにします。
3878 %    \begin{macrocode}
3879 \let\l@table\l@figure
3880 %    \end{macrocode}
3881 % \end{macro}
3882 %
3883 %
3884 % \subsection{参考文献}
3885 %
3886 % \begin{macro}{\bibindent}
3887 % オープンスタイルの参考文献で使うインデント幅です。
3888 %    \begin{macrocode}
3889 \newdimen\bibindent
3890 \setlength\bibindent{1.5em}
3891 %    \end{macrocode}
3892 % \end{macro}
3893 %
3894 % \begin{macro}{\newblock}
3895 % |\newblock|のデフォルト定義は、小さなスペースを生成します。
3896 %    \begin{macrocode}
3897 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
3898 %    \end{macrocode}
3899 % \end{macro}
3900 %
3901 % \begin{environment}{thebibliography}
3902 % 参考文献や関連図書のリストを作成します。
3903 %    \begin{macrocode}
3904 \newenvironment{thebibliography}[1]
3905 %<article>{\section*{\refname\@mkboth{\refname}{\refname}}%
3906 %<report|book>{\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
3907    \list{\@biblabel{\@arabic\c@enumiv}}%
3908         {\settowidth\labelwidth{\@biblabel{#1}}%
3909          \leftmargin\labelwidth
3910          \advance\leftmargin\labelsep
3911          \@openbib@code
3912          \usecounter{enumiv}%
3913          \let\p@enumiv\@empty
3914          \renewcommand\theenumiv{\@arabic\c@enumiv}}%
3915    \sloppy
3916 %    \end{macrocode}
3917 % \changes{v1.1a}{1997/01/23}{\LaTeX\ \texttt{!<1996/12/01!>}に合わせて修正}
3918 %    \begin{macrocode}
3919    \clubpenalty4000
3920    \@clubpenalty\clubpenalty
3921    \widowpenalty4000%
3922    \sfcode`\.\@m}
3923   {\def\@noitemerr
3924     {\@latex@warning{Empty `thebibliography' environment}}%
3925    \endlist}
3926 %    \end{macrocode}
3927 % \end{environment}
3928 %
3929 % \begin{macro}{\@openbib@code}
3930 % |\@openbib@code|のデフォルト定義は何もしません。
3931 % この定義は、\Lopt{openbib}オプションによって変更されます。
3932 %    \begin{macrocode}
3933 \let\@openbib@code\@empty
3934 %    \end{macrocode}
3935 % \end{macro}
3936 %
3937 % \begin{macro}{\@biblabel}
3938 %    The label for a |\bibitem[...]| command is produced by this
3939 %    macro. The default from \file{latex.dtx} is used.
3940 %    \begin{macrocode}
3941 % \renewcommand*{\@biblabel}[1]{[#1]\hfill}
3942 %    \end{macrocode}
3943 % \end{macro}
3944 %
3945 % \begin{macro}{\@cite}
3946 %    The output of the |\cite| command is produced by this macro. The
3947 %    default from \file{latex.dtx} is used.
3948 %    \begin{macrocode}
3949 % \renewcommand*{\@cite}[1]{[#1]}
3950 %    \end{macrocode}
3951 % \end{macro}
3952 %
3953 %
3954 % \subsection{索引}
3955 %
3956 % \begin{environment}{theindex}
3957 % 2段組の索引を作成します。
3958 % 索引の先頭のページのスタイルは\pstyle{jpl@in}とします。したがって、
3959 % \pstyle{headings}と\pstyle{bothstyle}に適した位置に出力されます。
3960 %    \begin{macrocode}
3961 \newenvironment{theindex}
3962   {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
3963    \columnseprule\z@ \columnsep 35\p@
3964 %<article>   \twocolumn[\section*{\indexname}]%
3965 %<report|book>   \twocolumn[\@makeschapterhead{\indexname}]%
3966    \@mkboth{\indexname}{\indexname}%
3967    \thispagestyle{jpl@in}\parindent\z@
3968    \parskip\z@ \@plus .3\p@\relax
3969    \let\item\@idxitem}
3970   {\if@restonecol\onecolumn\else\clearpage\fi}
3971 %    \end{macrocode}
3972 % \end{environment}
3973 %
3974 % \begin{macro}{\@idxitem}
3975 % \begin{macro}{\subitem}
3976 % \begin{macro}{\subsubitem}
3977 % 索引項目の字下げ幅です。|\@idxitem|は|\item|の項目の字下げ幅です。
3978 %    \begin{macrocode}
3979 \newcommand{\@idxitem}{\par\hangindent 40\p@}
3980 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
3981 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
3982 %    \end{macrocode}
3983 % \end{macro}
3984 % \end{macro}
3985 % \end{macro}
3986 %
3987 % \begin{macro}{\indexspace}
3988 % 索引の``文字''見出しの前に入るスペースです。
3989 %    \begin{macrocode}
3990 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
3991 %    \end{macrocode}
3992 % \end{macro}
3993 %
3994 %
3995 % \subsection{脚注}
3996 %
3997 % \begin{macro}{\footnoterule}
3998 % 本文と脚注の間に引かれる罫線です。
3999 %    \begin{macrocode}
4000 \renewcommand{\footnoterule}{%
4001   \kern-3\p@
4002   \hrule width .4\columnwidth
4003   \kern 2.6\p@}
4004 %    \end{macrocode}
4005 % \end{macro}
4006 %
4007 % \begin{macro}{\c@footnote}
4008 % reportとbookクラスでは、chapterレベルでリセットされます。
4009 %    \begin{macrocode}
4010 %<!article>\@addtoreset{footnote}{chapter}
4011 %    \end{macrocode}
4012 % \end{macro}
4013 %
4014 % \begin{macro}{\@makefntext}
4015 % このマクロにしたがって脚注が組まれます。
4016 %
4017 % |\@makefnmark|は脚注記号を組み立てるマクロです。
4018 %    \begin{macrocode}
4019 %<*tate>
4020 \newcommand\@makefntext[1]{\parindent 1\zw
4021   \noindent\hbox to 2\zw{\hss\@makefnmark}#1}
4022 %</tate>
4023 %<*yoko>
4024 \newcommand\@makefntext[1]{\parindent 1em
4025   \noindent\hbox to 1.8em{\hss\@makefnmark}#1}
4026 %</yoko>
4027 %    \end{macrocode}
4028 % \end{macro}
4029 %
4030 %
4031 % \section{今日の日付}
4032 % 組版時における現在の日付を出力します。
4033 %
4034 % \iffalse  meta-comment!
4035 %  注意:ここで \DisableCrossrefs, \EnableCrossrefs をしているのは、
4036 %        platex jclasses.dtx で dvi を作るときにエラーになるため。
4037 % \fi
4038 % \DisableCrossrefs
4039 % \begin{macro}{\if西暦}
4040 % \begin{macro}{\西暦}
4041 % \begin{macro}{\和暦}
4042 % \changes{v1.0h}{1996/12/17}{Typo:和歴 to 和暦}
4043 % |\today|コマンドの`年'を、
4044 % 西暦か和暦のどちらで出力するかを指定するコマンドです。
4045 %    \begin{macrocode}
4046 \newif\if西暦 \西暦false
4047 \def\西暦{\西暦true}
4048 \def\和暦{\西暦false}
4049 %    \end{macrocode}
4050 % \end{macro}
4051 % \end{macro}
4052 % \end{macro}
4053 % \EnableCrossrefs
4054 %
4055 % \begin{macro}{\heisei}
4056 % \changes{v1.1m}{1998/04/07}{\cs{today}の計算手順を変更}
4057 % |\today|コマンドを|\rightmark|で指定したとき、|\rightmark|を出力する部分
4058 % で和暦のための計算ができないので、クラスファイルを読み込む時点で計算して
4059 % おきます。
4060 %    \begin{macrocode}
4061 \newcount\heisei \heisei\year \advance\heisei-1988\relax
4062 %    \end{macrocode}
4063 % \end{macro}
4064 %
4065 % \begin{macro}{\today}
4066 % 縦組の場合は、漢数字で出力します。
4067 %    \begin{macrocode}
4068 \def\today{{%
4069   \iftdir
4070     \if西暦
4071       \kansuji\number\year 年
4072       \kansuji\number\month 月
4073       \kansuji\number\day 日
4074     \else
4075       平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi
4076       \kansuji\number\month 月
4077       \kansuji\number\day 日
4078     \fi
4079   \else
4080     \if西暦
4081       \number\year~年
4082       \number\month~月
4083       \number\day~日
4084     \else
4085       平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
4086       \number\month~月
4087       \number\day~日
4088     \fi
4089   \fi}}
4090 %    \end{macrocode}
4091 % \end{macro}
4092 %
4093 %
4094 %
4095 %
4096 % \section{初期設定}
4097 %
4098 % \begin{macro}{\prepartname}
4099 % \begin{macro}{\postpartname}
4100 % \begin{macro}{\prechaptername}
4101 % \begin{macro}{\postchaptername}
4102 %    \begin{macrocode}
4103 \newcommand{\prepartname}{第}
4104 \newcommand{\postpartname}{部}
4105 %<report|book>\newcommand{\prechaptername}{第}
4106 %<report|book>\newcommand{\postchaptername}{章}
4107 %    \end{macrocode}
4108 % \end{macro}
4109 % \end{macro}
4110 % \end{macro}
4111 % \end{macro}
4112 %
4113 % \begin{macro}{\contentsname}
4114 % \begin{macro}{\listfigurename}
4115 % \begin{macro}{\listtablename}
4116 %    \begin{macrocode}
4117 \newcommand{\contentsname}{目 次}
4118 \newcommand{\listfigurename}{図 目 次}
4119 \newcommand{\listtablename}{表 目 次}
4120 %    \end{macrocode}
4121 % \end{macro}
4122 % \end{macro}
4123 % \end{macro}
4124 %
4125 % \begin{macro}{\refname}
4126 % \begin{macro}{\bibname}
4127 % \begin{macro}{\indexname}
4128 %    \begin{macrocode}
4129 %<article>\newcommand{\refname}{参考文献}
4130 %<report|book>\newcommand{\bibname}{関連図書}
4131 \newcommand{\indexname}{索 引}
4132 %    \end{macrocode}
4133 % \end{macro}
4134 % \end{macro}
4135 % \end{macro}
4136 %
4137 % \begin{macro}{\figurename}
4138 % \begin{macro}{\tablename}
4139 %    \begin{macrocode}
4140 \newcommand{\figurename}{図}
4141 \newcommand{\tablename}{表}
4142 %    \end{macrocode}
4143 % \end{macro}
4144 % \end{macro}
4145 %
4146 % \begin{macro}{\appendixname}
4147 % \begin{macro}{\abstractname}
4148 %    \begin{macrocode}
4149 \newcommand{\appendixname}{付 録}
4150 %<article|report>\newcommand{\abstractname}{概 要}
4151 %    \end{macrocode}
4152 % \end{macro}
4153 % \end{macro}
4154 %
4155 % \changes{v1.0d}{1996/02/29}{articleとreportのデフォルトを
4156 %                              \pstyle{plain}に修正}
4157 % \changes{v1.4}{2002/04/09}{縦組スタイルで\cs{flushbottom}しないようにした}
4158 %    \begin{macrocode}
4159 %<book>\pagestyle{headings}
4160 %<!book>\pagestyle{plain}
4161 \pagenumbering{arabic}
4162 \raggedbottom
4163 \if@twocolumn
4164   \twocolumn
4165   \sloppy
4166 \else
4167   \onecolumn
4168 \fi
4169 %    \end{macrocode}
4170 % |\@mparswitch|は傍注を左右(縦組では上下)どちらのマージンに
4171 % 出力するかの指定です。偽の場合、傍注は一方の側にしか出力されません。
4172 % このスイッチを真とすると、とくに縦組の場合、奇数ページでは本文の上に、
4173 % 偶数ページでは本文の下に傍注が出力されますので、おかしなことになります。
4174 %
4175 % また、縦組のときには、傍注を本文の下に出すようにしています。
4176 % |\reversemarginpar|とすると本文の上側に出力されます。
4177 % ただし、二段組の場合は、つねに隣接するテキスト側のマージンに出力されます。
4178 %    \begin{macrocode}
4179 %<*tate>
4180 \normalmarginpar
4181 \@mparswitchfalse
4182 %</tate>
4183 %<*yoko>
4184 \if@twoside
4185   \@mparswitchtrue
4186 \else
4187   \@mparswitchfalse
4188 \fi
4189 %</yoko>
4190 %</article|report|book>
4191 %    \end{macrocode}
4192 %
4193 %
4194 %
4195 % \Finale
4196 %
4197 \endinput