OSDN Git Service

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