OSDN Git Service

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