OSDN Git Service

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