OSDN Git Service

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