1 % \iffalse meta-comment
2 %% File: ltjclasses.dtx
3 % -----------------------------------------
4 % Original: jclasses.dtx
6 % Copyright 1995-2001 ASCII Corporation.
8 % This file is part of the pLaTeX2e system.
9 % -----------------------------------------
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 \~}
31 % \setcounter{StandardModuleDepth}{1}
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などの
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レベルが出力されない
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$以下にすると、
65 % \changes{v1.1p}{1999/1/6}{\cs{oddsidemargin}のポイントへの変換を後ろに}
66 % \changes{v1.1q}{1999/05/18}{縦組時のみに設定するようにした}
67 % \changes{v1.1r}{1999/08/09}{トップマージンの計算式を修正}
68 % \changes{v1.2}{2001/09/04}{\cs{chapter}の出力位置がアスタリスク形式と
69 % そうでないときと違うのを修正(ありがとう、鈴木@津さん)}
70 % \changes{v1.3}{2001/10/04}{目次のページ番号の書体を\cs{rmfamily}から
71 % \cs{normalfont}に変更(ありがとう、鈴木た@MILNさん)}
72 % \changes{v1.4}{2002/04/09}{縦組スタイルで\cs{flushbottom}しないようにした}
73 % \changes{v1.5}{2004/01/15}{\cs{part},\cs{chapter}の\cs{@afterindentfalse}を
74 % \cs{@afterindenttrue}に変更。
75 % \cs{section},\cs{subsection},\cs{subsubsection}の前後空きの伸縮幅を修正。
76 % (ありがとうございます、鈴木た@MILNさん)}
77 % \changes{v1.6}{2006/06/27}{フォントコマンドを修正。ありがとう、ymtさん。}
78 % \changes{v1.6-ltj}{2011/09/27}{jclasses.dtx v1.6 をベースにLua\LaTeX-ja用に修正。}
79 % \changes{v1.6-ltj-2}{2011/09/27}{jclasses.dtx luatexja.cfgに対応.}
83 \NeedsTeXFormat{LaTeX2e}
85 \ProvidesFile{ltjclasses.dtx}
88 %<article>\ProvidesClass{ltjarticle}
89 %<report>\ProvidesClass{ltjreport}
90 %<book>\ProvidesClass{ltjbook}
91 %<10pt&!bk>\ProvidesFile{ltjsize10.clo}
92 %<11pt&!bk>\ProvidesFile{ltjsize11.clo}
93 %<12pt&!bk>\ProvidesFile{ltjsize12.clo}
94 %<10pt&bk>\ProvidesFile{ltjbk10.clo}
95 %<11pt&bk>\ProvidesFile{ltjbk11.clo}
96 %<12pt&bk>\ProvidesFile{ltjbk12.clo}
99 %<article>\ProvidesClass{ltjtarticle}
100 %<report>\ProvidesClass{ltjtreport}
101 %<book>\ProvidesClass{ltjtbook}
102 %<10pt&!bk>\ProvidesFile{ltjtsize10.clo}
103 %<11pt&!bk>\ProvidesFile{ltjtsize11.clo}
104 %<12pt&!bk>\ProvidesFile{ltjtsize12.clo}
105 %<10pt&bk>\ProvidesFile{ltjtbk10.clo}
106 %<11pt&bk>\ProvidesFile{ltjtbk11.clo}
107 %<12pt&bk>\ProvidesFile{ltjtbk12.clo}
109 [2013/06/06 v1.6-ltj-2
110 %<article|report|book> Standard LuaLaTeX-ja class]
111 %<10pt|11pt|12pt> Standard LuaLaTeX-ja file (size option)]
114 \documentclass{ltjltxdoc}
115 \GetFileInfo{ltjclasses.dtx}
116 \usepackage[unicode]{hyperref}
117 \title{Lua\LaTeX-ja用\texttt{jclasses}互換クラス}
118 \author{Lua\TeX-jaプロジェクト}
129 % このファイルは、Lua\LaTeX-ja用の|jclasses|互換クラスファイルです。
131 % \dst{}プログラムによって、横組用のクラスファイルと縦組用のクラスファイル
134 % 次に\dst{}プログラムのためのオプションを示します。
136 % \DeleteShortVerb{\|}
138 % \begin{tabular}{l|l}
139 % \emph{オプション} & \emph{意味}\\\hline
140 % article & articleクラスを生成\\
141 % report & reportクラスを生成\\
142 % book & bookクラスを生成\\
143 % 10pt & 10ptサイズの設定を生成\\
144 % 11pt & 11ptサイズの設定を生成\\
145 % 12pt & 12ptサイズの設定を生成\\
146 % bk & bookクラス用のサイズの設定を生成\\
147 % tate & 縦組用の設定を生成(現在無効)\\
153 % \subsection{\texttt{jclasses.dtx} からの主な変更点}
154 % 全ての変更点を知りたい場合は、|jclasses.dtx|と|ltjclasses.dtx|で|diff|を
157 % \item |disablejfam|オプションを無効化。もし
159 % |! LaTeX Error: Too many math alphabets used in version ****.|
161 % のエラーが起こった場合は、|lualatex-math|パッケージを読み込んでみて下さい。
162 % \item 出力PDFの用紙サイズが自動的に設定されるようにしてあります。
165 % \section{Lua\TeX-ja の読み込み}
166 % 最初に|luatexja|を読み込みます。
168 %<*article|report|book>
169 \RequirePackage{luatexja}
172 % \section{オプションスイッチ}
173 % ここでは、後ほど使用するいくつかのコマンドやスイッチを定義しています。
175 % \begin{macro}{\c@@paper}
177 % A4, A5, B4, B5用紙はそれぞれ、1, 2, 3, 4として表されます。
183 % \begin{macro}{\if@landscape}
184 % 用紙を横向きにするかどうかのスイッチです。デフォルトは、縦向きです。
186 \newif\if@landscape \@landscapefalse
190 % \begin{macro}{\@ptsize}
191 % 組版をするポイント数の一の位を保存するために使います。
194 \newcommand{\@ptsize}{}
198 % \begin{macro}{\if@restonecol}
199 % 二段組時に用いるテンポラリスイッチです。
205 % \begin{macro}{\if@titlepage}
206 % タイトルページやアブストラクト(概要)を
207 % 独立したページにするかどうかのスイッチです。
208 % reportとbookスタイルのデフォルトでは、独立したページになります。
211 %<article>\@titlepagefalse
212 %<report|book>\@titlepagetrue
216 % \begin{macro}{\if@openright}
217 % chapterレベルを奇数ページからはじめるかどうかのスイッチです。
218 % reportクラスのデフォルトは、``no''です。
219 % bookクラスのデフォルトは、``yes''です。
221 %<!article>\newif\if@openright
225 % \changes{v1.0c}{1995/12/25}{Macro \cs{if@openbib} removed}
227 % \begin{macro}{\if@mainmatter}
228 % スイッチ|\@mainmatter|が真の場合、本文を処理しています。
229 % このスイッチが偽の場合は、|\chapter|コマンドは見出し番号を出力しません。
231 %<book>\newif\if@mainmatter \@mainmattertrue
235 % \begin{macro}{\hour}
236 % \begin{macro}{\minute}
238 \hour\time \divide\hour by 60\relax
239 \@tempcnta\hour \multiply\@tempcnta 60\relax
240 \minute\time \advance\minute-\@tempcnta
245 % \begin{macro}{\if@stysize}
246 % \changes{v1.1a}{1997/01/25}{Add \cs{if@stysize}.}
247 % \LaTeXe~2.09互換モードで、スタイルオプションにa4j, a5pなどが指定された
248 % ときの動作をエミュレートするためのフラグです。
250 \newif\if@stysize \@stysizefalse
254 % \begin{macro}{\if@mathrmmc}
255 % 和欧文両対応の数式文字コマンドを有効にするときに用いるフラグです。
256 % マクロの展開順序が複雑になるのを避けるため、
257 % デフォルトではfalseとしてあります。
259 \newif\if@mathrmmc \@mathrmmcfalse
264 % ここでは、クラスオプションの宣言を行なっています。
266 % \subsection{用紙オプション}
269 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
270 \setlength\paperheight {297mm}%
271 \setlength\paperwidth {210mm}}
272 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
273 \setlength\paperheight {210mm}
274 \setlength\paperwidth {148mm}}
275 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
276 \setlength\paperheight {364mm}
277 \setlength\paperwidth {257mm}}
278 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
279 \setlength\paperheight {257mm}
280 \setlength\paperwidth {182mm}}
282 % \changes{v1.0a}{1995/09/26}{Change b4paper width/height 352x250 to 364x257}
283 % \changes{v1.0a}{1995/09/26}{Change b5paper width/height 250x176 to 257x182}
284 % ドキュメントクラスに、以下のオプションを指定すると、通常よりもテキストを
285 % 組み立てる領域の広いスタイルとすることができます。
288 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
289 \setlength\paperheight {297mm}%
290 \setlength\paperwidth {210mm}}
291 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
292 \setlength\paperheight {210mm}
293 \setlength\paperwidth {148mm}}
294 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
295 \setlength\paperheight {364mm}
296 \setlength\paperwidth {257mm}}
297 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
298 \setlength\paperheight {257mm}
299 \setlength\paperwidth {182mm}}
301 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
302 \setlength\paperheight {297mm}%
303 \setlength\paperwidth {210mm}}
304 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
305 \setlength\paperheight {210mm}
306 \setlength\paperwidth {148mm}}
307 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
308 \setlength\paperheight {364mm}
309 \setlength\paperwidth {257mm}}
310 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
311 \setlength\paperheight {257mm}
312 \setlength\paperwidth {182mm}}
315 % \subsection{サイズオプション}
316 % 基準となるフォントの大きさを指定するオプションです。
319 \renewcommand{\@ptsize}{0}
321 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
323 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
324 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
327 % \subsection{横置きオプション}
328 % このオプションが指定されると、用紙の縦と横の長さを入れ換えます。
329 % \changes{v1.1h}{1997/09/03}{オプションの処理時に縦横の値を交換}
330 % \changes{v1.1h}{1997/09/03}{landscapeオプションを互換モードでも有効に}
332 \DeclareOption{landscape}{\@landscapetrue
333 \setlength\@tempdima{\paperheight}%
334 \setlength\paperheight{\paperwidth}%
335 \setlength\paperwidth{\@tempdima}}
338 % \subsection{トンボオプション}
339 % |tombow|オプションが指定されると、用紙サイズに合わせてトンボを出力します。
340 % このとき、トンボの脇にPDFを作成した日付が出力されます。
341 % 作成日付の出力を抑制するには、|tombow|ではなく、|tombo|と指定をします。
342 % \changes{v1.0g}{1996/09/03}{Add to \cs{@bannertoken}.}
343 % \changes{v1.1a}{1997/01/23}{日付出力オプション}
345 \DeclareOption{tombow}{%
346 \tombowtrue \tombowdatetrue
347 \setlength{\@tombowwidth}{.1\p@}%
349 \jobname\space:\space\number\year/\number\month/\number\day
350 (\number\hour:\number\minute)}
352 \DeclareOption{tombo}{%
353 \tombowtrue \tombowdatefalse
354 \setlength{\@tombowwidth}{.1\p@}%
358 % \subsection{面付けオプション}
359 % このオプションが指定されると、トンボオプションを指定したときと同じ
360 % 位置に文章を出力します。作成したPDFをフィルムに面付け出力する場合など
362 % \changes{v1.0f}{1996/07/10}{面付けオプションを追加}
363 % \changes{v1.1n}{1998/10/13}
364 % {動作していなかったのを修正。ありがとう、刀祢さん}
366 \DeclareOption{mentuke}{%
367 \tombowtrue \tombowdatefalse
368 \setlength{\@tombowwidth}{\z@}%
372 % \subsection{組方向オプション}
373 % このオプションが指定されると、縦組で組版をします。
374 % しかしLua\TeX-jaではまだ縦組は未対応なのでコメントアウトします。
375 % \changes{v1.0g}{1997/01/25}{Insert \cs{hbox}, to switch tate-mode.}
376 % \changes{v1.1d}{1997/02/05}{開始ページがおかしくなるのを修正}
377 % \changes{v1.1f}{1997/07/08}{縦組時にベースラインがおかしくなるのを修正}
379 %% \DeclareOption{tate}{%
380 %% \AtBeginDocument{\tate\message{《縦組モード》}%
385 % \subsection{両面、片面オプション}
386 % twosideオプションが指定されると、両面印字出力に適した整形を行ないます。
388 \DeclareOption{oneside}{\@twosidefalse}
389 \DeclareOption{twoside}{\@twosidetrue}
392 % \subsection{二段組オプション}
393 % 二段組にするかどうかのオプションです。
395 \DeclareOption{onecolumn}{\@twocolumnfalse}
396 \DeclareOption{twocolumn}{\@twocolumntrue}
399 % \subsection{表題ページオプション}
400 % |@titlepage|が真の場合、表題を独立したページに出力します。
402 \DeclareOption{titlepage}{\@titlepagetrue}
403 \DeclareOption{notitlepage}{\@titlepagefalse}
406 % \subsection{右左起こしオプション}
407 % chapterを右ページあるいは左ページから
408 % はじめるかどうかを指定するオプションです。
410 %<!article>\if@compatibility
411 %<book>\@openrighttrue
413 %<!article>\DeclareOption{openright}{\@openrighttrue}
414 %<!article>\DeclareOption{openany}{\@openrightfalse}
418 % \subsection{数式のオプション}
419 % \Lopt{leqno}を指定すると、数式番号を数式の左側に出力します。
420 % \Lopt{fleqn}を指定するとディスプレイ数式を左揃えで出力します。
422 \DeclareOption{leqno}{\input{leqno.clo}}
423 \DeclareOption{fleqn}{\input{fleqn.clo}}
426 % \subsection{参考文献のオプション}
427 % 参考文献一覧を``オープンスタイル''の書式で出力します。
428 % これは各ブロックが改行で区切られ、|\bibindent|のインデントが付く書式です。
429 % \changes{v1.0c}{1995/12/25}{openbibオプションを再実装}
431 \DeclareOption{openbib}{%
433 % 参考文献環境内の最初のいくつかのフックを満たします。
436 \renewcommand\@openbib@code{%
437 \advance\leftmargin\bibindent
438 \itemindent -\bibindent
439 \listparindent \itemindent
443 % そして、|\newblock|を再定義します。
445 \renewcommand\newblock{\par}}}
448 % \subsection{日本語ファミリ宣言の抑制、和欧文両対応の数式文字}
449 % p\TeX では数式ファミリの数が16個だったので日本語ファミリ宣言を抑制する
450 % |disablejfam|オプションが用意されていましたが、Lua\TeX ではOmega拡張が
451 % 取り込まれて数式ファミリは256個まで使用できるため、このオプションは必要ありません。
452 % ただし、\LaTeXe カーネルでは未だに数式ファミリの数は16個に制限されているので、
453 % 実際に使用可能な数式ファミリの数を増やすためには|lualatex-math|パッケージを
454 % 読み込む必要があることに注意が必要です。
457 % |\mathrm|と|\mathbf|を和欧文両対応にするためのクラスオプションです。
458 % \changes{v1.1d}{1992/02/04}{disablejfamの判断を間違えてたのを修正}
463 \DeclareOption{disablejfam}{%
464 \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
465 \DeclareOption{mathrmmc}{\@mathrmmctrue}
470 % \subsection{ドラフトオプション}
471 % |draft|オプションを指定すると、オーバフルボックスの起きた箇所に、
474 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
475 \DeclareOption{final}{\setlength\overfullrule{0pt}}
476 %</article|report|book>
479 % \subsection{オプションの実行}
480 % オプションの実行、およびサイズクラスのロードを行ないます。
482 %<*article|report|book>
484 %<tate>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,tate}
485 %<yoko>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final}
488 %<tate>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany,tate}
489 %<yoko>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany}
492 %<tate>\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright,tate}
493 %<yoko>\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright}
495 \ProcessOptions\relax
496 %<book&tate>\input{ltjtbk1\@ptsize.clo}
497 %<!book&tate>\input{ltjtsize1\@ptsize.clo}
498 %<book&yoko>\input{ltjbk1\@ptsize.clo}
499 %<!book&yoko>\input{ltjsize1\@ptsize.clo}
501 % 縦組用クラスファイルの場合は、ここで\file{plext.sty}が読み込まれていました。
502 % Lua\TeX-jaでどうなるかは未定です。
503 % \changes{v1.0e}{1996/03/21}{\cs{usepackage} to \cs{RequirePackage}}
505 %<tate>%\RequirePackage{plext}
506 %</article|report|book>
511 % Lua\LaTeX-jaの標準では、OTFパッケージ由来のメトリックが使われるようになっています。
512 % 本クラスでは、「p\TeX の組版と互換性をできるだけ持たせる」例を提示するため、
514 % \item メトリックを\texttt{min10.tfm}ベースの\texttt{jfm-min.lua}に変更。
515 % \item 明朝とゴシックは両方とも\texttt{jfm-min.lua}を用いるが、
516 % 和文処理用グルー挿入時には「違うメトリックを使用」として思わせる。
517 % \item p\TeX と同様に、「異なるメトリックの2つの和文文字」の間には、両者から定める
519 % \item calllbackを利用し、標準で用いる\texttt{jfm-min.lua}を、段落始めの括弧が全角二分下がりになるように内部で変更している。
523 % |\ltj@stdmcfont|,~|\ltj@stdgtfont| による、デフォルトで使われ明朝・ゴシックのフォントの
524 % 設定に対応しました。この2つの命令の値はユーザが日々の利用でその都度指定するものではなく、
525 % 何らかの理由で非埋め込みフォントが正しく利用できない場合にのみ |luatexja.cfg| によって
530 %<*article|report|book>
531 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
532 function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
533 'ltj.jclasses_load_jfm', 1)}
534 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
535 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
536 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
537 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
538 \ltjglobalsetparameter{differentjfm=both}
539 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
540 %</article|report|book>
543 % ここでは、\LaTeX{}のフォントサイズコマンドの定義をしています。
544 % フォントサイズコマンドの定義は、次のコマンドを用います。
546 % |\@setfontsize||\size|\meta{font-size}\meta{baselineskip}
548 % \begin{description}
549 % \item[\meta{font-size}] これから使用する、フォントの実際の大きさです。
550 % \item[\meta{baselineskip}] 選択されるフォントサイズ用の通常の
551 % |\baselineskip|の値です(実際は、|\baselinestretch| * \meta{baselineskip}
555 % 数値コマンドは、次のように\LaTeX{}カーネルで定義されています。
557 % \begin{tabular}{ll@{\qquad}ll@{\qquad}ll}
558 % \verb=\@vpt= & 5 & \verb=\@vipt= & 6 & \verb=\@viipt= & 7 \\
559 % \verb=\@viiipt= & 8 & \verb=\@ixpt= & 9 & \verb=\@xpt= & 10 \\
560 % \verb=\@xipt= & 10.95 & \verb=\@xiipt= & 12 & \verb=\@xivpt= & 14.4\\
565 % \begin{macro}{\normalsize}
566 % \begin{macro}{\@normalsize}
567 % 基本サイズとするユーザレベルのコマンドは|\normalsize|です。
568 % \LaTeX{}の内部では|\@normalsize|を使用します。
570 % |\normalsize|マクロは、|\abovedisplayskip|と
571 % |\abovedisplayshortskip|、および|\belowdisplayshortskip|の値も設定をします。
572 % |\belowdisplayskip|は、つねに|\abovedisplayskip|と同値です。
574 % また、リスト環境のトップレベルのパラメータは、つねに|\@listI|で与えられます。
577 \renewcommand{\normalsize}{%
578 %<10pt&yoko> \@setfontsize\normalsize\@xpt{15}%
579 %<11pt&yoko> \@setfontsize\normalsize\@xipt{15.5}%
580 %<12pt&yoko> \@setfontsize\normalsize\@xiipt{16.5}%
581 %<10pt&tate> \@setfontsize\normalsize\@xpt{17}%
582 %<11pt&tate> \@setfontsize\normalsize\@xipt{17}%
583 %<12pt&tate> \@setfontsize\normalsize\@xiipt{18}%
585 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
586 \abovedisplayshortskip \z@ \@plus3\p@
587 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
590 \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
591 \abovedisplayshortskip \z@ \@plus3\p@
592 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
595 \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
596 \abovedisplayshortskip \z@ \@plus3\p@
597 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
599 \belowdisplayskip \abovedisplayskip
603 % ここで、ノーマルフォントを選択し、初期化をします。
604 % このとき、縦組モードならば、デフォルトのエンコードを変更します。
606 %<tate>\def\kanjiencodingdefault{JT3}%
607 %<tate>\kanjiencoding{\kanjiencodingdefault}%
613 % \begin{macro}{\Cht}
614 % \begin{macro}{\Cdp}
615 % \begin{macro}{\Cwd}
616 % \begin{macro}{\Cvs}
617 % \begin{macro}{\Chs}
618 % 基準となる長さの設定をします。これらのパラメータは\file{lltjfont.sty}で定義
621 \setbox0\hbox{\char"3000}% 全角スペース
625 \setlength\Cvs{\baselineskip}
634 % \begin{macro}{\small}
635 % |\small|コマンドの定義は、|\normalsize|に似ています。
637 \newcommand{\small}{%
639 \@setfontsize\small\@ixpt{11}%
640 \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
641 \abovedisplayshortskip \z@ \@plus2\p@
642 \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
643 \def\@listi{\leftmargin\leftmargini
644 \topsep 4\p@ \@plus2\p@ \@minus2\p@
645 \parsep 2\p@ \@plus\p@ \@minus\p@
649 \@setfontsize\small\@xpt\@xiipt
650 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
651 \abovedisplayshortskip \z@ \@plus3\p@
652 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
653 \def\@listi{\leftmargin\leftmargini
654 \topsep 6\p@ \@plus2\p@ \@minus2\p@
655 \parsep 3\p@ \@plus2\p@ \@minus\p@
659 \@setfontsize\small\@xipt{13.6}%
660 \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
661 \abovedisplayshortskip \z@ \@plus3\p@
662 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
663 \def\@listi{\leftmargin\leftmargini
664 \topsep 9\p@ \@plus3\p@ \@minus5\p@
665 \parsep 4.5\p@ \@plus2\p@ \@minus\p@
668 \belowdisplayskip \abovedisplayskip}
672 % \begin{macro}{\footnotesize}
673 % |\footnotesize|コマンドの定義は、|\normalsize|に似ています。
675 \newcommand{\footnotesize}{%
677 \@setfontsize\footnotesize\@viiipt{9.5}%
678 \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
679 \abovedisplayshortskip \z@ \@plus\p@
680 \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
681 \def\@listi{\leftmargin\leftmargini
682 \topsep 3\p@ \@plus\p@ \@minus\p@
683 \parsep 2\p@ \@plus\p@ \@minus\p@
687 \@setfontsize\footnotesize\@ixpt{11}%
688 \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@
689 \abovedisplayshortskip \z@ \@plus\p@
690 \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
691 \def\@listi{\leftmargin\leftmargini
692 \topsep 4\p@ \@plus2\p@ \@minus2\p@
693 \parsep 2\p@ \@plus\p@ \@minus\p@
697 \@setfontsize\footnotesize\@xpt\@xiipt
698 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
699 \abovedisplayshortskip \z@ \@plus3\p@
700 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
701 \def\@listi{\leftmargin\leftmargini
702 \topsep 6\p@ \@plus2\p@ \@minus2\p@
703 \parsep 3\p@ \@plus2\p@ \@minus\p@
706 \belowdisplayskip \abovedisplayskip}
710 % \begin{macro}{\scriptsize}
711 % \begin{macro}{\tiny}
712 % \begin{macro}{\large}
713 % \begin{macro}{\Large}
714 % \begin{macro}{\LARGE}
715 % \begin{macro}{\huge}
716 % \begin{macro}{\Huge}
717 % これらは先ほどのマクロよりも簡単です。これらはフォントサイズを変更する
718 % だけで、リスト環境とディスプレイ数式のパラメータは変更しません。
721 \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
722 \newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt}
723 \newcommand{\large}{\@setfontsize\large\@xiipt{17}}
724 \newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
725 \newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
726 \newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
727 \newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
730 \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
731 \newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
732 \newcommand{\large}{\@setfontsize\large\@xiipt{17}}
733 \newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
734 \newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
735 \newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
736 \newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
739 \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
740 \newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
741 \newcommand{\large}{\@setfontsize\large\@xivpt{21}}
742 \newcommand{\Large}{\@setfontsize\Large\@xviipt{25}}
743 \newcommand{\LARGE}{\@setfontsize\LARGE\@xxpt{28}}
744 \newcommand{\huge}{\@setfontsize\huge\@xxvpt{33}}
761 % \subsection{用紙サイズの決定}
763 % \begin{macro}{\columnsep}
764 % \begin{macro}{\columnseprule}
765 % |\columnsep|は、二段組のときの、左右(あるいは上下)の段間の幅です。
766 % このスペースの中央に|\columnseprule|の幅の罫線が引かれます。
767 % \changes{v1.0g}{1997/01/25}{\cs{columnsep}: 10pt to 3\cs{Cwd} or 2\cs{Cwd}.}
769 %<*article|report|book>
771 %<tate> \setlength\columnsep{3\Cwd}
772 %<yoko> \setlength\columnsep{2\Cwd}
774 \setlength\columnsep{10\p@}
776 \setlength\columnseprule{0\p@}
781 % \begin{macro}{\pdfpagewidth}
782 % \begin{macro}{\pdfpageheight}
783 % 出力のPDFの用紙サイズをここで設定しておきます。
784 % |tombow|が真のときは2インチ足しておきます。
786 \setlength{\@tempdima}{\paperwidth}
787 \setlength{\@tempdimb}{\paperheight}
789 \advance \@tempdima 2in
790 \advance \@tempdimb 2in
792 \setlength{\pdfpagewidth}{\@tempdima}
793 \setlength{\pdfpageheight}{\@tempdimb}
800 % \begin{macro}{\lineskip}
801 % \begin{macro}{\normallineskip}
802 % これらの値は、行が近付き過ぎたときの\TeX の動作を制御します。
804 \setlength\lineskip{1\p@}
805 \setlength\normallineskip{1\p@}
810 % \begin{macro}{\baselinestretch}
811 % これは、|\baselineskip|の倍率を示すために使います。
812 % デフォルトでは、\emph{何もしません}。このコマンドが``empty''でない場合、
813 % |\baselineskip|の指定の\texttt{plus}や\texttt{minus}部分は無視される
816 \renewcommand{\baselinestretch}{}
820 % \begin{macro}{\parskip}
821 % \begin{macro}{\parindent}
822 % |\parskip|は段落間に挿入される、縦方向の追加スペースです。
823 % |\parindent|は段落の先頭の字下げ幅です。
825 \setlength\parskip{0\p@ \@plus \p@}
826 \setlength\parindent{1\Cwd}
831 % \begin{macro}{\smallskipamount}
832 % \begin{macro}{\medskipamount}
833 % \begin{macro}{\bigskipamount}
834 % これら3つのパラメータの値は、\LaTeX{}カーネルの中で設定されています。
835 % これらはおそらく、サイズオプションの指定によって変えるべきです。
836 % しかし、\LaTeX~2.09や\LaTeXe{}の以前のリリースの両方との互換性を保つために、
840 \setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}
841 \setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}
842 \setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}
849 % \begin{macro}{\@lowpenalty}
850 % \begin{macro}{\@medpenalty}
851 % \begin{macro}{\@highpenalty}
852 % |\nopagebreak|と|\nolinebreak|コマンドは、これらのコマンドが置かれた場所に、
853 % ペナルティを起いて、分割を制御します。
854 % 置かれるペナルティは、コマンドの引数によって、
855 % |\@lowpenalty|, |\@medpenalty|, |\@highpenalty|のいずれかが使われます。
860 %</article|report|book>
866 % \subsection{ページレイアウト}
868 % \subsubsection{縦方向のスペース}
870 % \begin{macro}{\headheight}
871 % \begin{macro}{\headsep}
872 % \begin{macro}{\topskip}
873 % |\headheight|は、ヘッダが入るボックスの高さです。
874 % |\headsep|は、ヘッダの下端と本文領域との間の距離です。
875 % |\topskip|は、本文領域の上端と1行目のテキストのベースラインとの距離です。
878 \setlength\headheight{12\p@}
881 \ifnum\c@@paper=2 % A5
882 \setlength\headsep{6mm}
883 \else % A4, B4, B5 and other
884 \setlength\headsep{8mm}
887 \setlength\headsep{8mm}
891 %<!bk>\setlength\headsep{25\p@}
892 %<10pt&bk>\setlength\headsep{.25in}
893 %<11pt&bk>\setlength\headsep{.275in}
894 %<12pt&bk>\setlength\headsep{.275in}
896 \setlength\topskip{1\Cht}
902 % \begin{macro}{\footskip}
903 % |\footskip|は、本文領域の下端とフッタの下端との距離です。
904 % フッタのボックスの高さを示す、|\footheight|は削除されました。
906 %<tate>\setlength\footskip{14mm}
908 %<!bk>\setlength\footskip{30\p@}
909 %<10pt&bk>\setlength\footskip{.35in}
910 %<11pt&bk>\setlength\footskip{.38in}
911 %<12pt&bk>\setlength\footskip{30\p@}
916 % \begin{macro}{\maxdepth}
917 % \changes{v1.1c}{1995/12/25}{\cs{@maxdepth}の設定を除外した}
918 % \TeX のプリミティブレジスタ|\maxdepth|は、|\topskip|と同じような
919 % 働きをします。|\@maxdepth|レジスタは、つねに|\maxdepth|のコピーでなくては
920 % いけません。これは|\begin{document}|の内部で設定されます。
921 % \TeX{}と\LaTeX~2.09では、|\maxdepth|は\texttt{4pt}に固定です。
922 % \LaTeXe{}では、|\maxdepth|$+$|\topskip|を基本サイズの1.5倍にしたいので、
923 % |\maxdepth|を|\topskip|の半分の値で設定します。
926 \setlength\maxdepth{4\p@}
928 \setlength\maxdepth{.5\topskip}
933 % \subsubsection{本文領域}
934 % |\textheight|と|\textwidth|は、本文領域の通常の高さと幅を示します。
935 % 縦組でも横組でも、``高さ''は行数を、``幅''は字詰めを意味します。
936 % 後ほど、これらの長さに|\topskip|の値が加えられます。
938 % \begin{macro}{\textwidth}
945 % \changes{v1.1a}{1997/01/25}{Add paper option with compatibility mode.}
946 % \changes{v1.1h}{1997/09/03}{landscapeでの指定を追加}
947 % 互換モード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
950 \ifnum\c@@paper=2 % A5
952 %<10pt&yoko> \setlength\textwidth{47\Cwd}
953 %<11pt&yoko> \setlength\textwidth{42\Cwd}
954 %<12pt&yoko> \setlength\textwidth{40\Cwd}
955 %<10pt&tate> \setlength\textwidth{27\Cwd}
956 %<11pt&tate> \setlength\textwidth{25\Cwd}
957 %<12pt&tate> \setlength\textwidth{23\Cwd}
959 %<10pt&yoko> \setlength\textwidth{28\Cwd}
960 %<11pt&yoko> \setlength\textwidth{25\Cwd}
961 %<12pt&yoko> \setlength\textwidth{24\Cwd}
962 %<10pt&tate> \setlength\textwidth{46\Cwd}
963 %<11pt&tate> \setlength\textwidth{42\Cwd}
964 %<12pt&tate> \setlength\textwidth{38\Cwd}
966 \else\ifnum\c@@paper=3 % B4
968 %<10pt&yoko> \setlength\textwidth{75\Cwd}
969 %<11pt&yoko> \setlength\textwidth{69\Cwd}
970 %<12pt&yoko> \setlength\textwidth{63\Cwd}
971 %<10pt&tate> \setlength\textwidth{53\Cwd}
972 %<11pt&tate> \setlength\textwidth{49\Cwd}
973 %<12pt&tate> \setlength\textwidth{44\Cwd}
975 %<10pt&yoko> \setlength\textwidth{60\Cwd}
976 %<11pt&yoko> \setlength\textwidth{55\Cwd}
977 %<12pt&yoko> \setlength\textwidth{50\Cwd}
978 %<10pt&tate> \setlength\textwidth{85\Cwd}
979 %<11pt&tate> \setlength\textwidth{76\Cwd}
980 %<12pt&tate> \setlength\textwidth{69\Cwd}
982 \else\ifnum\c@@paper=4 % B5
984 %<10pt&yoko> \setlength\textwidth{60\Cwd}
985 %<11pt&yoko> \setlength\textwidth{55\Cwd}
986 %<12pt&yoko> \setlength\textwidth{50\Cwd}
987 %<10pt&tate> \setlength\textwidth{34\Cwd}
988 %<11pt&tate> \setlength\textwidth{31\Cwd}
989 %<12pt&tate> \setlength\textwidth{28\Cwd}
991 %<10pt&yoko> \setlength\textwidth{37\Cwd}
992 %<11pt&yoko> \setlength\textwidth{34\Cwd}
993 %<12pt&yoko> \setlength\textwidth{31\Cwd}
994 %<10pt&tate> \setlength\textwidth{55\Cwd}
995 %<11pt&tate> \setlength\textwidth{51\Cwd}
996 %<12pt&tate> \setlength\textwidth{47\Cwd}
1000 %<10pt&yoko> \setlength\textwidth{73\Cwd}
1001 %<11pt&yoko> \setlength\textwidth{68\Cwd}
1002 %<12pt&yoko> \setlength\textwidth{61\Cwd}
1003 %<10pt&tate> \setlength\textwidth{41\Cwd}
1004 %<11pt&tate> \setlength\textwidth{38\Cwd}
1005 %<12pt&tate> \setlength\textwidth{35\Cwd}
1007 %<10pt&yoko> \setlength\textwidth{47\Cwd}
1008 %<11pt&yoko> \setlength\textwidth{43\Cwd}
1009 %<12pt&yoko> \setlength\textwidth{40\Cwd}
1010 %<10pt&tate> \setlength\textwidth{67\Cwd}
1011 %<11pt&tate> \setlength\textwidth{61\Cwd}
1012 %<12pt&tate> \setlength\textwidth{57\Cwd}
1020 \setlength\textwidth{52\Cwd}
1022 %<10pt&!bk&yoko> \setlength\textwidth{327\p@}
1023 %<11pt&!bk&yoko> \setlength\textwidth{342\p@}
1024 %<12pt&!bk&yoko> \setlength\textwidth{372\p@}
1025 %<10pt&bk&yoko> \setlength\textwidth{4.3in}
1026 %<11pt&bk&yoko> \setlength\textwidth{4.8in}
1027 %<12pt&bk&yoko> \setlength\textwidth{4.8in}
1028 %<10pt&tate> \setlength\textwidth{67\Cwd}
1029 %<11pt&tate> \setlength\textwidth{61\Cwd}
1030 %<12pt&tate> \setlength\textwidth{57\Cwd}
1038 % 2eモード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
1039 % 二段組では用紙サイズの8割、一段組では用紙サイズの7割を版面の幅として
1044 %<yoko> \setlength\textwidth{.8\paperwidth}
1045 %<tate> \setlength\textwidth{.8\paperheight}
1047 %<yoko> \setlength\textwidth{.7\paperwidth}
1048 %<tate> \setlength\textwidth{.7\paperheight}
1054 %<tate> \setlength\@tempdima{\paperheight}
1055 %<yoko> \setlength\@tempdima{\paperwidth}
1056 \addtolength\@tempdima{-2in}
1057 %<tate> \addtolength\@tempdima{-1.3in}
1058 %<yoko&10pt> \setlength\@tempdimb{327\p@}
1059 %<yoko&11pt> \setlength\@tempdimb{342\p@}
1060 %<yoko&12pt> \setlength\@tempdimb{372\p@}
1061 %<tate&10pt> \setlength\@tempdimb{67\Cwd}
1062 %<tate&11pt> \setlength\@tempdimb{61\Cwd}
1063 %<tate&12pt> \setlength\@tempdimb{57\Cwd}
1065 \ifdim\@tempdima>2\@tempdimb\relax
1066 \setlength\textwidth{2\@tempdimb}
1068 \setlength\textwidth{\@tempdima}
1071 \ifdim\@tempdima>\@tempdimb\relax
1072 \setlength\textwidth{\@tempdimb}
1074 \setlength\textwidth{\@tempdima}
1079 \@settopoint\textwidth
1083 % \begin{macro}{\textheight}
1090 % \changes{v1.1a}{1997/01/25}{Add paper option with compatibility mode.}
1091 % \changes{v1.1f}{1997/09/03}{landscapeでの指定を追加}
1092 % 互換モード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
1095 \ifnum\c@@paper=2 % A5
1097 %<10pt&yoko> \setlength\textheight{17\Cvs}
1098 %<11pt&yoko> \setlength\textheight{17\Cvs}
1099 %<12pt&yoko> \setlength\textheight{16\Cvs}
1100 %<10pt&tate> \setlength\textheight{26\Cvs}
1101 %<11pt&tate> \setlength\textheight{26\Cvs}
1102 %<12pt&tate> \setlength\textheight{25\Cvs}
1104 %<10pt&yoko> \setlength\textheight{28\Cvs}
1105 %<11pt&yoko> \setlength\textheight{25\Cvs}
1106 %<12pt&yoko> \setlength\textheight{24\Cvs}
1107 %<10pt&tate> \setlength\textheight{16\Cvs}
1108 %<11pt&tate> \setlength\textheight{16\Cvs}
1109 %<12pt&tate> \setlength\textheight{15\Cvs}
1111 \else\ifnum\c@@paper=3 % B4
1113 %<10pt&yoko> \setlength\textheight{38\Cvs}
1114 %<11pt&yoko> \setlength\textheight{36\Cvs}
1115 %<12pt&yoko> \setlength\textheight{34\Cvs}
1116 %<10pt&tate> \setlength\textheight{48\Cvs}
1117 %<11pt&tate> \setlength\textheight{48\Cvs}
1118 %<12pt&tate> \setlength\textheight{45\Cvs}
1120 %<10pt&yoko> \setlength\textheight{57\Cvs}
1121 %<11pt&yoko> \setlength\textheight{55\Cvs}
1122 %<12pt&yoko> \setlength\textheight{52\Cvs}
1123 %<10pt&tate> \setlength\textheight{33\Cvs}
1124 %<11pt&tate> \setlength\textheight{33\Cvs}
1125 %<12pt&tate> \setlength\textheight{31\Cvs}
1127 \else\ifnum\c@@paper=4 % B5
1129 %<10pt&yoko> \setlength\textheight{22\Cvs}
1130 %<11pt&yoko> \setlength\textheight{21\Cvs}
1131 %<12pt&yoko> \setlength\textheight{20\Cvs}
1132 %<10pt&tate> \setlength\textheight{34\Cvs}
1133 %<11pt&tate> \setlength\textheight{34\Cvs}
1134 %<12pt&tate> \setlength\textheight{32\Cvs}
1136 %<10pt&yoko> \setlength\textheight{35\Cvs}
1137 %<11pt&yoko> \setlength\textheight{34\Cvs}
1138 %<12pt&yoko> \setlength\textheight{32\Cvs}
1139 %<10pt&tate> \setlength\textheight{21\Cvs}
1140 %<11pt&tate> \setlength\textheight{21\Cvs}
1141 %<12pt&tate> \setlength\textheight{20\Cvs}
1143 \else % A4 and other
1145 %<10pt&yoko> \setlength\textheight{27\Cvs}
1146 %<11pt&yoko> \setlength\textheight{26\Cvs}
1147 %<12pt&yoko> \setlength\textheight{25\Cvs}
1148 %<10pt&tate> \setlength\textheight{41\Cvs}
1149 %<11pt&tate> \setlength\textheight{41\Cvs}
1150 %<12pt&tate> \setlength\textheight{38\Cvs}
1152 %<10pt&yoko> \setlength\textheight{43\Cvs}
1153 %<11pt&yoko> \setlength\textheight{42\Cvs}
1154 %<12pt&yoko> \setlength\textheight{39\Cvs}
1155 %<10pt&tate> \setlength\textheight{26\Cvs}
1156 %<11pt&tate> \setlength\textheight{26\Cvs}
1157 %<12pt&tate> \setlength\textheight{22\Cvs}
1160 %<yoko> \addtolength\textheight{\topskip}
1161 %<bk&yoko> \addtolength\textheight{\baselineskip}
1162 %<tate> \addtolength\textheight{\Cht}
1163 %<tate> \addtolength\textheight{\Cdp}
1168 %<10pt&!bk&yoko> \setlength\textheight{578\p@}
1169 %<10pt&bk&yoko> \setlength\textheight{554\p@}
1170 %<11pt&yoko> \setlength\textheight{580.4\p@}
1171 %<12pt&yoko> \setlength\textheight{586.5\p@}
1172 %<10pt&tate> \setlength\textheight{26\Cvs}
1173 %<11pt&tate> \setlength\textheight{25\Cvs}
1174 %<12pt&tate> \setlength\textheight{24\Cvs}
1181 % 2eモード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
1182 % 縦組では用紙サイズの70\%(book)か78\%(ariticle,report)、
1183 % 横組では70\%(book)か75\%(article,report)を版面の高さに設定します。
1186 %<tate&bk> \setlength\textheight{.75\paperwidth}
1187 %<tate&!bk> \setlength\textheight{.78\paperwidth}
1188 %<yoko&bk> \setlength\textheight{.70\paperheight}
1189 %<yoko&!bk> \setlength\textheight{.75\paperheight}
1194 %<tate> \setlength\@tempdima{\paperwidth}
1195 %<yoko> \setlength\@tempdima{\paperheight}
1196 \addtolength\@tempdima{-2in}
1197 %<yoko> \addtolength\@tempdima{-1.5in}
1198 \divide\@tempdima\baselineskip
1199 \@tempcnta\@tempdima
1200 \setlength\textheight{\@tempcnta\baselineskip}
1204 % 最後に、|\textheight|に|\topskip|の値を加えます。
1206 \addtolength\textheight{\topskip}
1207 \@settopoint\textheight
1211 % \subsubsection{マージン}
1213 % \begin{macro}{\topmargin}
1214 % |\topmargin|は、``印字可能領域''---用紙の上端から1インチ内側---%
1215 % の上端からヘッダ部分の上端までの距離です。
1222 \setlength\topmargin{-.3in}
1224 %<!bk> \setlength\topmargin{27\p@}
1225 %<10pt&bk> \setlength\topmargin{.75in}
1226 %<11pt&bk> \setlength\topmargin{.73in}
1227 %<12pt&bk> \setlength\topmargin{.73in}
1232 \ifnum\c@@paper=2 % A5
1233 \setlength\topmargin{.8in}
1234 \else % A4, B4, B5 and other
1235 \setlength\topmargin{32mm}
1238 \setlength\topmargin{32mm}
1240 \addtolength\topmargin{-1in}
1241 \addtolength\topmargin{-\headheight}
1242 \addtolength\topmargin{-\headsep}
1248 \setlength\topmargin{\paperheight}
1249 \addtolength\topmargin{-\headheight}
1250 \addtolength\topmargin{-\headsep}
1251 %<tate> \addtolength\topmargin{-\textwidth}
1252 %<yoko> \addtolength\topmargin{-\textheight}
1253 \addtolength\topmargin{-\footskip}
1255 % \changes{v1.1e}{1997/04/08}{横組クラスでの調整量を
1256 % -2.4インチから-2.0インチにした。}
1257 % \changes{v1.1j}{1998/02/03}{互換モード時のa5pのトップマージンを0.7in増加}
1260 \ifnum\c@@paper=2 % A5
1261 \addtolength\topmargin{-1.3in}
1263 \addtolength\topmargin{-2.0in}
1266 %<yoko> \addtolength\topmargin{-2.0in}
1267 %<tate> \addtolength\topmargin{-2.8in}
1270 % \changes{v1.1d}{1997/02/05}{\cs{tompargin}を半分にするのはアキ領域の計算後}
1271 % \changes{v1.1r}{1999/08/09}{\cs{if@stysize}フラグに限らず半分にする}
1273 \addtolength\topmargin{-.5\topmargin}
1275 \@settopoint\topmargin
1279 % \begin{macro}{\marginparsep}
1280 % \begin{macro}{\marginparpush}
1281 % |\marginparsep|は、本文と傍注の間にあけるスペースの幅です。
1283 % 縦組では本文の下(上)端と傍注の間になります。
1284 % |\marginparpush|は、傍注と傍注との間のスペースの幅です。
1287 \setlength\marginparsep{10\p@}
1289 %<tate> \setlength\marginparsep{15\p@}
1290 %<yoko> \setlength\marginparsep{10\p@}
1292 %<tate>\setlength\marginparpush{7\p@}
1294 %<10pt>\setlength\marginparpush{5\p@}
1295 %<11pt>\setlength\marginparpush{5\p@}
1296 %<12pt>\setlength\marginparpush{7\p@}
1302 % \begin{macro}{\oddsidemargin}
1303 % \begin{macro}{\evensidemargin}
1304 % \begin{macro}{\marginparwidth}
1305 % まず、互換モードでの長さを示します。
1310 %<tate> \setlength\oddsidemargin{0\p@}
1311 %<tate> \setlength\evensidemargin{0\p@}
1313 % 互換モード、横組、bookクラスの場合:
1317 %<10pt> \setlength\oddsidemargin {.5in}
1318 %<11pt> \setlength\oddsidemargin {.25in}
1319 %<12pt> \setlength\oddsidemargin {.25in}
1320 %<10pt> \setlength\evensidemargin {1.5in}
1321 %<11pt> \setlength\evensidemargin {1.25in}
1322 %<12pt> \setlength\evensidemargin {1.25in}
1323 %<10pt> \setlength\marginparwidth {.75in}
1324 %<11pt> \setlength\marginparwidth {1in}
1325 %<12pt> \setlength\marginparwidth {1in}
1328 % 互換モード、横組、reportとarticleクラスの場合:
1332 %<10pt> \setlength\oddsidemargin {44\p@}
1333 %<11pt> \setlength\oddsidemargin {36\p@}
1334 %<12pt> \setlength\oddsidemargin {21\p@}
1335 %<10pt> \setlength\evensidemargin {82\p@}
1336 %<11pt> \setlength\evensidemargin {74\p@}
1337 %<12pt> \setlength\evensidemargin {59\p@}
1338 %<10pt> \setlength\marginparwidth {107\p@}
1339 %<11pt> \setlength\marginparwidth {100\p@}
1340 %<12pt> \setlength\marginparwidth {85\p@}
1342 %<10pt> \setlength\oddsidemargin {60\p@}
1343 %<11pt> \setlength\oddsidemargin {54\p@}
1344 %<12pt> \setlength\oddsidemargin {39.5\p@}
1345 %<10pt> \setlength\evensidemargin {60\p@}
1346 %<11pt> \setlength\evensidemargin {54\p@}
1347 %<12pt> \setlength\evensidemargin {39.5\p@}
1348 %<10pt> \setlength\marginparwidth {90\p@}
1349 %<11pt> \setlength\marginparwidth {83\p@}
1350 %<12pt> \setlength\marginparwidth {68\p@}
1357 \setlength\oddsidemargin {30\p@}
1358 \setlength\evensidemargin {30\p@}
1359 \setlength\marginparwidth {48\p@}
1363 % 縦組、横組にかかわらず、スタイルオプション設定ではゼロです。
1364 % \changes{v1.0g}{1997/01/25}{\cs{oddsidemargin}, \cs{evensidemagin}:
1365 % 0pt if specified papersize at \cs{documentstyle} option.}
1369 \setlength\oddsidemargin{0\p@}
1370 \setlength\evensidemargin{0\p@}
1378 \setlength\@tempdima{\paperwidth}
1379 %<tate> \addtolength\@tempdima{-\textheight}
1380 %<yoko> \addtolength\@tempdima{-\textwidth}
1383 % |\oddsidemargin|を計算します。
1386 %<tate> \setlength\oddsidemargin{.6\@tempdima}
1387 %<yoko> \setlength\oddsidemargin{.4\@tempdima}
1389 \setlength\oddsidemargin{.5\@tempdima}
1391 \addtolength\oddsidemargin{-1in}
1393 % \changes{v1.1p}{1999/1/6}{\cs{oddsidemargin}のポイントへの変換を後ろに}
1394 % |\evensidemargin|を計算します。
1396 \setlength\evensidemargin{\paperwidth}
1397 \addtolength\evensidemargin{-2in}
1398 %<tate> \addtolength\evensidemargin{-\textheight}
1399 %<yoko> \addtolength\evensidemargin{-\textwidth}
1400 \addtolength\evensidemargin{-\oddsidemargin}
1401 \@settopoint\oddsidemargin % 1999.1.6
1402 \@settopoint\evensidemargin
1404 % |\marginparwidth|を計算します。
1405 % ここで、|\@tempdima|の値は、\linebreak
1406 % |\paperwidth| $-$ |\textwidth|です。
1407 % \changes{v1.1d}{1995/11/24}{typo: \cs{marginmarwidth} to \cs{marginparwidth}}
1411 \setlength\marginparwidth{.6\@tempdima}
1412 \addtolength\marginparwidth{-.4in}
1414 \setlength\marginparwidth{.5\@tempdima}
1415 \addtolength\marginparwidth{-.4in}
1417 \ifdim \marginparwidth >2in
1418 \setlength\marginparwidth{2in}
1426 \setlength\@tempdima{\paperheight}
1427 \addtolength\@tempdima{-\textwidth}
1428 \addtolength\@tempdima{-\topmargin}
1429 \addtolength\@tempdima{-\headheight}
1430 \addtolength\@tempdima{-\headsep}
1431 \addtolength\@tempdima{-\footskip}
1432 \setlength\marginparwidth{.5\@tempdima}
1434 \@settopoint\marginparwidth
1444 % \begin{macro}{\footnotesep}
1445 % |\footnotesep|は、それぞれの脚注の先頭に置かれる``支柱''の高さです。
1446 % このクラスでは、通常の|\footnotesize|の支柱と同じ長さですので、
1449 %<10pt>\setlength\footnotesep{6.65\p@}
1450 %<11pt>\setlength\footnotesep{7.7\p@}
1451 %<12pt>\setlength\footnotesep{8.4\p@}
1455 % \begin{macro}{\footins}
1456 % |\skip\footins|は、本文の最終行と最初の脚注との間の距離です。
1458 %<10pt>\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
1459 %<11pt>\setlength{\skip\footins}{10\p@ \@plus 4\p@ \@minus 2\p@}
1460 %<12pt>\setlength{\skip\footins}{10.8\p@ \@plus 4\p@ \@minus 2\p@}
1465 % すべてのフロートパラメータは、\LaTeX{}のカーネルでデフォルトが定義
1466 % されています。そのため、カウンタ以外のパラメータは|\renewcommand|で
1469 % \subsubsection{フロートパラメータ}
1471 % \begin{macro}{\floatsep}
1472 % \begin{macro}{\textfloatsep}
1473 % \begin{macro}{\intextsep}
1474 % フロートオブジェクトが本文のあるページに置かれるとき、
1475 % フロートとそのページにある別のオブジェクトの距離は、
1476 % これらのパラメータで制御されます。これらのパラメータは、一段組モードと
1477 % 二段組モードの段抜きでないフロートの両方で使われます。
1479 % |\floatsep|は、ページ上部あるいは下部のフロート間の距離です。
1481 % |\textfloatsep|は、ページ上部あるいは下部のフロートと本文との距離です。
1483 % |\intextsep|は、本文の途中に出力されるフロートと本文との距離です。
1486 \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1487 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1488 \setlength\intextsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1491 \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1492 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1493 \setlength\intextsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1496 \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 4\p@}
1497 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1498 \setlength\intextsep {14\p@ \@plus 4\p@ \@minus 4\p@}
1505 % \begin{macro}{\dblfloatsep}
1506 % \begin{macro}{\dbltextfloatsep}
1507 % 二段組モードで、|\textwidth|の幅を持つ、段抜きのフロートオブジェクトが
1508 % 本文と同じページに置かれるとき、本文とフロートとの距離は、
1509 % |\dblfloatsep|と|\dbltextfloatsep|によって制御されます。
1511 % |\dblfloatsep|は、ページ上部あるいは下部のフロートと本文との距離です。
1513 % |\dbltextfloatsep|は、ページ上部あるいは下部のフロート間の距離です。
1516 \setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1517 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1520 \setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1521 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1524 \setlength\dblfloatsep {14\p@ \@plus 2\p@ \@minus 4\p@}
1525 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1531 % \begin{macro}{\@fptop}
1532 % \begin{macro}{\@fpsep}
1533 % \begin{macro}{\@fpbot}
1534 % フロートオブジェクトが、独立したページに置かれるとき、
1535 % このページのレイアウトは、次のパラメータで制御されます。
1536 % これらのパラメータは、一段組モードか、二段組モードでの一段出力の
1537 % フロートオブジェクトに対して使われます。
1539 % ページ上部では、|\@fptop|の伸縮長が挿入されます。
1540 % ページ下部では、|\@fpbot|の伸縮長が挿入されます。
1541 % フロート間には|\@fpsep|が挿入されます。
1543 % なお、そのページを空白で満たすために、|\@fptop|と|\@fpbot|の
1544 % 少なくともどちらか一方に、|plus ...fil|を含めてください。
1547 \setlength\@fptop{0\p@ \@plus 1fil}
1548 \setlength\@fpsep{8\p@ \@plus 2fil}
1549 \setlength\@fpbot{0\p@ \@plus 1fil}
1552 \setlength\@fptop{0\p@ \@plus 1fil}
1553 \setlength\@fpsep{8\p@ \@plus 2fil}
1554 \setlength\@fpbot{0\p@ \@plus 1fil}
1557 \setlength\@fptop{0\p@ \@plus 1fil}
1558 \setlength\@fpsep{10\p@ \@plus 2fil}
1559 \setlength\@fpbot{0\p@ \@plus 1fil}
1566 % \begin{macro}{\@dblfptop}
1567 % \begin{macro}{\@dblfpsep}
1568 % \begin{macro}{\@dblfpbot}
1569 % 二段組モードでの二段抜きのフロートに対しては、
1573 \setlength\@dblfptop{0\p@ \@plus 1fil}
1574 \setlength\@dblfpsep{8\p@ \@plus 2fil}
1575 \setlength\@dblfpbot{0\p@ \@plus 1fil}
1578 \setlength\@dblfptop{0\p@ \@plus 1fil}
1579 \setlength\@dblfpsep{8\p@ \@plus 2fil}
1580 \setlength\@dblfpbot{0\p@ \@plus 1fil}
1583 \setlength\@dblfptop{0\p@ \@plus 1fil}
1584 \setlength\@dblfpsep{10\p@ \@plus 2fil}
1585 \setlength\@dblfpbot{0\p@ \@plus 1fil}
1593 % \subsubsection{フロートオブジェクトの上限値}
1595 % \begin{macro}{\c@topnumber}
1596 % \Lcount{topnumber}は、本文ページの上部に出力できるフロートの最大数です。
1598 %<*article|report|book>
1599 \setcounter{topnumber}{2}
1603 % \begin{macro}{\c@bottomnumber}
1604 % \Lcount{bottomnumber}は、本文ページの下部に出力できるフロートの最大数です。
1606 \setcounter{bottomnumber}{1}
1610 % \begin{macro}{\c@totalnumber}
1611 % \Lcount{totalnumber}は、本文ページに出力できるフロートの最大数です。
1613 \setcounter{totalnumber}{3}
1617 % \begin{macro}{\c@dbltopnumber}
1618 % \Lcount{dbltopnumber}は、二段組時における、本文ページの上部に出力できる
1621 \setcounter{dbltopnumber}{2}
1625 % \begin{macro}{\topfraction}
1626 % これは、本文ページの上部に出力されるフロートが占有できる最大の割り合いです。
1628 \renewcommand{\topfraction}{.7}
1632 % \begin{macro}{\bottomfraction}
1633 % これは、本文ページの下部に出力されるフロートが占有できる最大の割り合いです。
1635 \renewcommand{\bottomfraction}{.3}
1639 % \begin{macro}{\textfraction}
1640 % これは、本文ページに最低限、入らなくてはならない本文の割り合いです。
1642 \renewcommand{\textfraction}{.2}
1646 % \begin{macro}{\floatpagefraction}
1647 % これは、フロートだけのページで最低限、入らなくてはならない
1650 \renewcommand{\floatpagefraction}{.5}
1654 % \begin{macro}{\dbltopfraction}
1655 % これは、2段組時における本文ページに、
1656 % 2段抜きのフロートが占めることができる最大の割り合いです。
1658 \renewcommand{\dbltopfraction}{.7}
1662 % \begin{macro}{\dblfloatpagefraction}
1663 % これは、2段組時におけるフロートだけのページに最低限、
1664 % 入らなくてはならない2段抜きのフロートの割り合いです。
1666 \renewcommand{\dblfloatpagefraction}{.5}
1672 % \section{ページスタイル}\label{sec:pagestyle}
1673 % つぎの6種類のページスタイルを使用できます。
1674 % \pstyle{empty}は\file{latex.dtx}で定義されています。
1676 % \begin{tabular}{ll}
1677 % empty & ヘッダにもフッタにも出力しない\\
1678 % plain & フッタにページ番号のみを出力する\\
1679 % headnombre & ヘッダにページ番号のみを出力する\\
1680 % footnombre & フッタにページ番号のみを出力する\\
1681 % headings & ヘッダに見出しとページ番号を出力する\\
1682 % bothstyle & ヘッダに見出し、フッタにページ番号を出力する\\
1685 % ページスタイル\pstyle{foo}は、|\ps@foo|コマンドとして定義されます。
1687 % \begin{macro}{\@evenhead}
1688 % \begin{macro}{\@oddhead}
1689 % \begin{macro}{\@evenfoot}
1690 % \begin{macro}{\@oddfoot}
1691 % これらは|\ps@...|から呼び出され、ヘッダとフッタを出力するマクロです。
1693 % \DeleteShortVerb{\|}
1694 % \begin{tabular}{ll}
1695 % |\@oddhead| & 奇数ページのヘッダを出力\\
1696 % |\@oddfoot| & 奇数ページのフッタを出力\\
1697 % |\@evenhead| & 偶数ページのヘッダを出力\\
1698 % |\@evenfoot| & 偶数ページのフッタを出力\\
1700 % \MakeShortVerb{\|}
1702 % これらの内容は、横組の場合は|\textwidth|の幅を持つ|\hbox|に入れられ、
1703 % 縦組の場合は|\textheight|の幅を持つ|\hbox|に入れられます。
1709 % \subsection{マークについて}
1710 % ヘッダに入る章番号や章見出しは、見出しコマンドで実行されるマークコマンドで
1711 % 決定されます。ここでは、実行されるマークコマンドの定義を行なっています。
1712 % これらのマークコマンドは、\TeX{}の|\mark|機能を用いて、
1713 % `left'と`right'の2種類のマークを生成するように定義しています。
1716 % |\markboth{|\meta{LEFT}|}{|\meta{RIGHT}|}|: 両方のマークに追加します。
1718 % |\markright{|\meta{RIGHT}|}|: `右'マークに追加します。
1720 % |\leftmark|: |\@oddhead|, |\@oddfoot|, |\@evenhead|, |\@evenfoot|マクロで
1721 % 使われ、現在の``左''マークを出力します。
1722 % |\leftmark|は\TeX{}の|\botmark|コマンドのような働きをします。
1725 % |\rightmark|: |\@oddhead|, |\@oddfoot|, |\@evenhead|, |\@evenfoot|マクロで
1726 % 使われ、現在の``右''マークを出力します。
1727 % |\rightmark|は\TeX{}の|\firstmark|コマンドのような働きをします。
1731 % マークコマンドの動作は、左マークの`範囲内の'右マークのために
1732 % 合理的になっています。たとえば、左マークは|\chapter|コマンドによって
1733 % 変更されます。そして右マークは|\section|コマンドによって変更されます。
1734 % しかし、同一ページに複数の|\markboth|コマンドが現れたとき、
1737 % |\tableofcontents|のようなコマンドは、|\@mkboth|コマンドを用いて、
1738 % あるページスタイルの中でマークを設定しなくてはなりません。
1739 % |\@mkboth|は、|\ps@...|コマンドによって、|\markboth|(ヘッダを設定する)か、
1740 % |\@gobbletwo|(何もしない)に|\let|されます。
1742 % \changes{v1.0a}{1995/08/30}{柱の書体がノンブルに影響するバグの修正}
1744 % \subsection{plainページスタイル}
1745 % \pstyle{jpl@in}に|\let|するために、ここで定義をします。
1747 % \begin{macro}{\ps@plain}
1749 \def\ps@plain{\let\@mkboth\@gobbletwo
1750 \let\ps@jpl@in\ps@plain
1751 \let\@oddhead\@empty
1752 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
1753 \let\@evenhead\@empty
1754 \let\@evenfoot\@oddfoot}
1758 % \subsection{jpl@inページスタイル}
1759 % \changes{v1.0d}{1996/02/29}{\pstyle{jpl@in}の初期値を定義}
1761 % \pstyle{jpl@in}スタイルは、クラスファイル内部で使用するものです。
1762 % \LaTeX{}では、bookクラスを\pstyle{headings}としています。
1763 % しかし、\cs{tableofcontnts}コマンドの内部では\pstyle{plain}として
1764 % 設定されるため、一つの文書でのページ番号の位置が上下に出力される
1767 % そこで、ここでは\cs{tableofcontents}や\cs{theindex}のページスタイル
1768 % を\pstyle{jpl@in}にし、実際に出力される形式は、ほかのページスタイル
1769 % で|\let|をしています。したがって、\pstyle{headings}のとき、目次ページの
1770 % ページ番号はヘッダ位置に出力され、\pstyle{plain}のときには、フッタ位置に
1773 % ここで、定義をしているのは、その初期値です。
1775 % \begin{macro}{\ps@jpl@in}
1777 \let\ps@jpl@in\ps@plain
1781 % \subsection{headnombreページスタイル}
1783 % \begin{macro}{\ps@headnombre}
1784 % \pstyle{headnombre}スタイルは、ヘッダにページ番号のみを出力します。
1786 \def\ps@headnombre{\let\@mkboth\@gobbletwo
1787 \let\ps@jpl@in\ps@headnombre
1788 %<yoko> \def\@evenhead{\thepage\hfil}%
1789 %<yoko> \def\@oddhead{\hfil\thepage}%
1790 %<tate> \def\@evenhead{\hfil\thepage}%
1791 %<tate> \def\@oddhead{\thepage\hfil}%
1792 \let\@oddfoot\@empty\let\@evenfoot\@empty}
1796 % \subsection{footnombreページスタイル}
1798 % \begin{macro}{\ps@footnombre}
1799 % \pstyle{footnombre}スタイルは、フッタにページ番号のみを出力します。
1801 \def\ps@footnombre{\let\@mkboth\@gobbletwo
1802 \let\ps@jpl@in\ps@footnombre
1803 %<yoko> \def\@evenfoot{\thepage\hfil}%
1804 %<yoko> \def\@oddfoot{\hfil\thepage}%
1805 %<tate> \def\@evenfoot{\hfil\thepage}%
1806 %<tate> \def\@oddfoot{\thepage\hfil}%
1807 \let\@oddhead\@empty\let\@evenhead\@empty}
1811 % \subsection{headingsスタイル}
1812 % \pstyle{headings}スタイルは、ヘッダに見出しとページ番号を出力します。
1814 % \begin{macro}{\ps@headings}
1815 % このスタイルは、両面印刷と片面印刷とで形式が異なります。
1819 % 横組の場合は、奇数ページが右に、偶数ページが左にきます。
1820 % 縦組の場合は、奇数ページが左に、偶数ページが右にきます。
1822 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
1823 \let\@oddfoot\@empty\let\@evenfoot\@empty
1824 %<yoko> \def\@evenhead{\thepage\hfil\leftmark}%
1825 %<yoko> \def\@oddhead{{\rightmark}\hfil\thepage}%
1826 %<tate> \def\@evenhead{{\leftmark}\hfil\thepage}%
1827 %<tate> \def\@oddhead{\thepage\hfil\rightmark}%
1828 \let\@mkboth\markboth
1830 \def\sectionmark##1{\markboth{%
1831 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1833 \def\subsectionmark##1{\markright{%
1834 \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1\zw\fi
1838 \def\chaptermark##1{\markboth{%
1839 \ifnum \c@secnumdepth >\m@ne
1840 %<book> \if@mainmatter
1841 \@chapapp\thechapter\@chappos\hskip1\zw
1845 \def\sectionmark##1{\markright{%
1846 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1852 % \changes{v1.1g}{1997/08/25}{片面印刷のとき、sectionレベルが出力されない
1855 \else % if not twoside
1856 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
1857 \let\@oddfoot\@empty
1858 %<yoko> \def\@oddhead{{\rightmark}\hfil\thepage}%
1859 %<tate> \def\@oddhead{\thepage\hfil\rightmark}%
1860 \let\@mkboth\markboth
1862 \def\sectionmark##1{\markright{%
1863 \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1\zw\fi
1867 \def\chaptermark##1{\markright{%
1868 \ifnum \c@secnumdepth >\m@ne
1869 %<book> \if@mainmatter
1870 \@chapapp\thechapter\@chappos\hskip1\zw
1880 % \subsection{bothstyleスタイル}
1882 % \begin{macro}{\ps@bothstyle}
1883 % \pstyle{bothstyle}スタイルは、
1884 % ヘッダに見出しを、フッタにページ番号を出力します。
1886 % このスタイルは、両面印刷と片面印刷とで形式が異なります。
1887 % \changes{v1.0d}{1995/08/23}{横組のevenfootが中央揃えになっていたのを修正}
1888 % \changes{v1.0d}{1996/03/05}{横組で偶数ページと奇数ページの設定が逆なのを修正}
1891 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
1893 \def\@evenhead{\leftmark\hfil}% right page
1894 \def\@evenfoot{\thepage\hfil}% right page
1895 \def\@oddhead{\hfil\rightmark}% left page
1896 \def\@oddfoot{\hfil\thepage}% left page
1899 \def\@evenhead{\hfil\leftmark}% right page
1900 \def\@evenfoot{\hfil\thepage}% right page
1901 \def\@oddhead{\rightmark\hfil}% left page
1902 \def\@oddfoot{\thepage\hfil}% left page
1904 \let\@mkboth\markboth
1906 \def\sectionmark##1{\markboth{%
1907 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1909 \def\subsectionmark##1{\markright{%
1910 \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1\zw\fi
1914 \def\chaptermark##1{\markboth{%
1915 \ifnum \c@secnumdepth >\m@ne
1916 %<book> \if@mainmatter
1917 \@chapapp\thechapter\@chappos\hskip1\zw
1921 \def\sectionmark##1{\markright{%
1922 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1927 % \changes{v1.1g}{1997/08/25}{片面印刷のとき、sectionレベルが出力されない
1929 % \changes{v1.1i}{1997/12/12}{report, bookクラスで片面印刷時に、
1930 % bothstyleスタイルにすると、コンパイルエラーになるのを修正}
1932 \else % if one column
1933 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
1934 %<yoko> \def\@oddhead{\hfil\rightmark}%
1935 %<yoko> \def\@oddfoot{\hfil\thepage}%
1936 %<tate> \def\@oddhead{\rightmark\hfil}%
1937 %<tate> \def\@oddfoot{\thepage\hfil}%
1938 \let\@mkboth\markboth
1940 \def\sectionmark##1{\markright{%
1941 \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1\zw\fi
1945 \def\chaptermark##1{\markright{%
1946 \ifnum \c@secnumdepth >\m@ne
1947 %<book> \if@mainmatter
1948 \@chapapp\thechapter\@chappos\hskip1\zw
1958 % \subsection{myheadingスタイル}
1960 % \begin{macro}{\ps@myheadings}
1961 % \changes{v1.0d}{1995/08/23}{横組モードの左右が逆であったのを修正}
1962 % \pstyle{myheadings}ページスタイルは簡潔に定義されています。
1963 % ユーザがページスタイルを設計するときのヒナ型として使用することができます。
1965 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
1966 \let\@oddfoot\@empty\let\@evenfoot\@empty
1967 %<yoko> \def\@evenhead{\thepage\hfil\leftmark}%
1968 %<yoko> \def\@oddhead{{\rightmark}\hfil\thepage}%
1969 %<tate> \def\@evenhead{{\leftmark}\hfil\thepage}%
1970 %<tate> \def\@oddhead{\thepage\hfil\rightmark}%
1971 \let\@mkboth\@gobbletwo
1972 %<!article> \let\chaptermark\@gobble
1973 \let\sectionmark\@gobble
1974 %<article> \let\subsectionmark\@gobble
1982 % \subsubsection{表題}
1984 % \begin{macro}{\title}
1985 % \begin{macro}{\autor}
1986 % \begin{macro}{\date}
1987 % 文書のタイトル、著者、日付の情報のための、
1988 % これらの3つのコマンドは\file{latex.dtx}で提供されています。
1989 % これらのコマンドは次のように定義されています。
1991 %\newcommand*{\title}[1]{\gdef\@title{#1}}
1992 %\newcommand*{\author}[1]{\gdef\@author{#1}}
1993 %\newcommand*{\date}[1]{\gdef\@date{#1}}
1995 % |\date|マクロのデフォルトは、今日の日付です。
2003 % \begin{environment}{titlepage}
2004 % 通常の環境では、ページの最初と最後を除き、タイトルページ環境は何もしません。
2005 % また、ページ番号の出力を抑制します。レポートスタイルでは、
2006 % ページ番号を1にリセットし、そして最後で1に戻します。
2007 % 互換モードでは、ページ番号はゼロに設定されますが、
2008 % 右起こしページ用のページパラメータでは誤った結果になります。
2009 % 二段組スタイルでも一段組のページが作られます。
2014 \newenvironment{titlepage}
2016 %<book> \cleardoublepage
2017 \if@twocolumn\@restonecoltrue\onecolumn
2018 \else\@restonecolfalse\newpage\fi
2019 \thispagestyle{empty}%
2020 \setcounter{page}\z@
2022 {\if@restonecol\twocolumn\else\newpage\fi
2026 % そして、\LaTeX{}ネイティブのための定義です。
2029 \newenvironment{titlepage}
2031 %<book> \cleardoublepage
2033 \@restonecoltrue\onecolumn
2035 \@restonecolfalse\newpage
2037 \thispagestyle{empty}%
2038 \setcounter{page}\@ne
2040 {\if@restonecol\twocolumn \else \newpage \fi
2042 % 二段組モードでなければ、タイトルページの直後のページのページ番号も1に
2046 \setcounter{page}\@ne
2053 % \begin{macro}{\maketitle}
2054 % このコマンドは、表題を作成し、出力します。
2055 % 表題ページを独立させるかどうかによって定義が異なります。
2056 % reportとbookクラスのデフォルトは独立した表題です。
2057 % articleクラスはオプションで独立させることができます。
2059 % \begin{macro}{\p@thanks}
2060 % 縦組のときは、|\thanks|コマンドを|\p@thanks|に|\let|します。
2061 % このコマンドは|\footnotetext|を使わず、直接、文字を|\@thanks|に格納
2064 \def\p@thanks#1{\footnotemark
2065 \protected@xdef\@thanks{\@thanks
2066 \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
2072 \newcommand{\maketitle}{\begin{titlepage}%
2073 \let\footnotesize\small
2074 \let\footnoterule\relax
2075 %<tate> \let\thanks\p@thanks
2076 \let\footnote\thanks
2078 % \changes{v1.1d}{1997/02/12}{縦組クラスの表紙を縦書きにするようにした}
2080 %<tate> \vbox to\textheight\bgroup\tate\hsize\textwidth
2084 {\LARGE \@title \par}%
2088 \begin{tabular}[t]{c}%
2092 {\large \@date \par}% % Set date in \large size.
2094 %<tate> \vfil{\centering\@thanks}\vfil\null
2096 %<yoko> \@thanks\vfil\null
2099 % \Lcount{footnote}カウンタをリセットし、|\thanks|と|\maketitle|コマンドを
2100 % 無効にし、いくつかの内部マクロを空にして格納領域を節約します。
2102 \setcounter{footnote}{0}%
2103 \global\let\thanks\relax
2104 \global\let\maketitle\relax
2105 \global\let\p@thanks\relax
2106 \global\let\@thanks\@empty
2107 \global\let\@author\@empty
2108 \global\let\@date\@empty
2109 \global\let\@title\@empty
2111 % タイトルが組版されたら、|\title|コマンドなどの宣言を無効にできます。
2112 % |\and|の定義は、|\author|の引数でのみ使用しますので、破棄します。
2114 \global\let\title\relax
2115 \global\let\author\relax
2116 \global\let\date\relax
2117 \global\let\and\relax
2120 \newcommand{\maketitle}{\par
2122 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
2123 \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
2124 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
2126 \long\def\@makefntext##1{\parindent 1\zw\noindent
2127 \hbox to 2\zw{\hss\@makefnmark}##1}%
2130 \long\def\@makefntext##1{\parindent 1em\noindent
2131 \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
2134 \ifnum \col@number=\@ne \@maketitle
2135 \else \twocolumn[\@maketitle]%
2139 \global\@topnum\z@ % Prevents figures from going at top of page.
2142 \thispagestyle{jpl@in}\@thanks
2144 % ここでグループを閉じ、\Lcount{footnote}カウンタをリセットし、
2145 % |\thanks|, |\maketitle|, |\@maketitle|を無効にし、
2146 % いくつかの内部マクロを空にして格納領域を節約します。
2149 \setcounter{footnote}{0}%
2150 \global\let\thanks\relax
2151 \global\let\maketitle\relax
2152 \global\let\p@thanks\relax
2153 \global\let\@thanks\@empty
2154 \global\let\@author\@empty
2155 \global\let\@date\@empty
2156 \global\let\@title\@empty
2157 \global\let\title\relax
2158 \global\let\author\relax
2159 \global\let\date\relax
2160 \global\let\and\relax
2165 % \begin{macro}{\@maketitle}
2166 % 独立した表題ページを作らない場合の、表題の出力形式です。
2172 %<yoko> \let\footnote\thanks
2173 %<tate> \let\footnote\p@thanks
2174 {\LARGE \@title \par}%
2178 \begin{tabular}[t]{c}%
2189 % \subsubsection{概要}
2191 % \begin{environment}{abstract}
2192 % 要約文のための環境です。bookクラスでは使えません。
2193 % reportスタイルと、|titlepage|オプションを指定したarticleスタイルでは、
2198 \newenvironment{abstract}{%
2201 \@beginparpenalty\@lowpenalty
2203 {\bfseries\abstractname}%
2206 {\par\vfil\null\endtitlepage}
2208 \newenvironment{abstract}{%
2210 \section*{\abstractname}%
2214 {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
2217 \fi}{\if@twocolumn\else\endquotation\fi}
2226 % \subsection{マークコマンド}
2228 % \begin{macro}{\chaptermark}
2229 % \begin{macro}{\sectionmark}
2230 % \begin{macro}{\subsectionmark}
2231 % \begin{macro}{\subsubsectionmark}
2232 % \begin{macro}{\paragraphmark}
2233 % \begin{macro}{\subparagraphmark}
2234 % |\...mark|コマンドを初期化します。これらのコマンドはページスタイルの
2235 % 定義で使われます(第\ref{sec:pagestyle}節参照)。
2236 % これらのたいていのコマンドは\file{latex.dtx}ですでに定義されています。
2238 %<!article>\newcommand*{\chaptermark}[1]{}
2239 %\newcommand*{\sectionmark}[1]{}
2240 %\newcommand*{\subsectionmark}[1]{}
2241 %\newcommand*{\subsubsectionmark}[1]{}
2242 %\newcommand*{\paragraph}[1]{}
2243 %\newcommand*{\subparagraph}[1]{}
2252 % \subsubsection{カウンタの定義}
2254 % \begin{macro}{\c@secnumdepth}
2255 % \Lcount{secnumdepth}には、番号を付ける、見出しコマンドのレベルを設定します。
2257 %<article>\setcounter{secnumdepth}{3}
2258 %<!article>\setcounter{secnumdepth}{2}
2262 % \begin{macro}{\c@chapter}
2263 % \begin{macro}{\c@section}
2264 % \begin{macro}{\c@subsection}
2265 % \begin{macro}{\c@subsubsection}
2266 % \begin{macro}{\c@paragraph}
2267 % \begin{macro}{\c@subparagraph}
2268 % これらのカウンタは見出し番号に使われます。
2269 % 最初の引数は、二番目の引数が増加するたびにリセットされます。
2270 % 二番目のカウンタはすでに定義されているものでなくてはいけません。
2274 \newcounter{chapter}
2275 \newcounter{section}[chapter]
2277 %<article>\newcounter{section}
2278 \newcounter{subsection}[section]
2279 \newcounter{subsubsection}[subsection]
2280 \newcounter{paragraph}[subsubsection]
2281 \newcounter{subparagraph}[paragraph]
2290 % \begin{macro}{\thepart}
2291 % \begin{macro}{\thechapter}
2292 % \begin{macro}{\thesection}
2293 % \begin{macro}{\thesubsection}
2294 % \begin{macro}{\thesubsubsection}
2295 % \begin{macro}{\theparagraph}
2296 % \begin{macro}{\thesubparagraph}
2297 % |\theCTR|が実際に出力される形式の定義です。
2299 % |\arabic{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2302 % |\roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2305 % |\Roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2308 % |\alph{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2309 % $1=$~a, $2=$~b のようにして出力します。
2311 % |\Roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2312 % $1=$~A, $2=$~B のようにして出力します。
2314 % |\kansuji{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2317 % |\rensuji{|\meta{obj}|}|は、\meta{obj}を横に並べて出力します。
2318 % したがって、横組のときには、何も影響しません。
2322 \renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
2323 %<article>\renewcommand{\thesection}{\rensuji{\@arabic\c@section}}
2325 \renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
2326 \renewcommand{\thesection}{\thechapter・\rensuji{\@arabic\c@section}}
2328 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
2329 \renewcommand{\thesubsubsection}{%
2330 \thesubsection・\rensuji{\@arabic\c@subsubsection}}
2331 \renewcommand{\theparagraph}{%
2332 \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
2333 \renewcommand{\thesubparagraph}{%
2334 \theparagraph・\rensuji{\@arabic\c@subparagraph}}
2337 \renewcommand{\thepart}{\@Roman\c@part}
2338 %<article>\renewcommand{\thesection}{\@arabic\c@section}
2340 \renewcommand{\thechapter}{\@arabic\c@chapter}
2341 \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
2343 \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
2344 \renewcommand{\thesubsubsection}{%
2345 \thesubsection.\@arabic\c@subsubsection}
2346 \renewcommand{\theparagraph}{%
2347 \thesubsubsection.\@arabic\c@paragraph}
2348 \renewcommand{\thesubparagraph}{%
2349 \theparagraph.\@arabic\c@subparagraph}
2360 % \begin{macro}{\@chapapp}
2361 % \begin{macro}{\@chappos}
2362 % |\@chapapp|の初期値は`|\prechaptername|'です。
2364 % |\@chappos|の初期値は`|\postchaptername|'です。
2366 % |\appendix|コマンドは|\@chapapp|を`|\appendixname|'に、
2367 % |\@chappos|を空に再定義します。
2370 \newcommand{\@chapapp}{\prechaptername}
2371 \newcommand{\@chappos}{\postchaptername}
2377 % \subsubsection{前付け、本文、後付け}
2379 % \begin{macro}{\frontmatter}
2380 % \begin{macro}{\mainmatter}
2381 % \begin{macro}{\backmatter}
2382 % \changes{v1.1}{1997/01/15}{\cs{frontmatter}, \cs{mainmatter}, \cs{backmatter}
2384 % 一冊の本は論理的に3つに分割されます。
2385 % 表題や目次や「はじめに」あるいは権利などの前付け、
2386 % そして本文、それから用語集や索引や奥付けなどの後付けです。
2389 \newcommand\frontmatter{%
2390 \if@openright \cleardoublepage \else \clearpage \fi
2391 \@mainmatterfalse\pagenumbering{roman}}
2392 \newcommand{\mainmatter}{%
2393 \if@openright \cleardoublepage \else \clearpage \fi
2394 \@mainmattertrue\pagenumbering{arabic}}
2395 \newcommand{\backmatter}{%
2396 \if@openright \cleardoublepage \else \clearpage \fi
2404 % \subsubsection{ボックスの組み立て}
2405 % クラスファイル定義の、この部分では、|\@startsection|と|\secdef|の
2406 % 二つの内部マクロを使います。これらの構文を次に示します。
2408 % |\@startsection|マクロは6つの引数と1つのオプション引数`*'を取ります。
2410 % |\@startsection|\meta{name}\meta{level}\meta{indent}^^A
2411 % \meta{beforeskip}\meta{afterskip}\meta{style}
2413 % \null\hphantom{\bslash @startsection}^^A
2414 % |[|\meta{altheading}|]|\meta{heading}
2416 % それぞれの引数の意味は、次のとおりです。
2418 % \begin{description}
2419 % \item[\meta{name}] レベルコマンドの名前です(例:section)。
2420 % \item[\meta{level}] 見出しの深さを示す数値です(chapter=1, section=2,
2421 % $\ldots$)。``\meta{level}$<=$カウンタ\Lcount{secnumdepth}の値''のとき、
2423 % \item[\meta{indent}] 見出しに対する、左マージンからのインデント量です。
2424 % \item[\meta{beforeskip}] 見出しの上に置かれる空白の絶対値です。
2425 % 負の場合は、見出しに続くテキストのインデントを抑制します。
2426 % \item[\meta{afterskip}] 正のとき、見出しの後の垂直方向のスペースとなります。
2427 % 負の場合は、見出しの後の水平方向のスペースとなります。
2428 % \item[\meta{style}] 見出しのスタイルを設定するコマンドです。
2429 % \item[\meta{$*$}] 見出し番号を付けないとき、対応するカウンタは増加します。
2430 % \item[\meta{heading}] 新しい見出しの文字列です。
2433 % 見出しコマンドは通常、|\@startsection|と6つの引数で定義されています。
2436 % 見出しコマンドを|\@startsection|を用いないで定義するときに使います。
2437 % このマクロは、2つの引数を持ちます。
2439 % |\secdef|\meta{unstarcmds}\meta{starcmds}
2441 % \begin{description}
2442 % \item[\meta{unstarcmds}] 見出しコマンドの普通の形式で使われます。
2443 % \item[\meta{starcmds}] $*$形式の見出しコマンドで使われます。
2446 % |\secdef|は次のようにして使うことができます。
2448 % \def\chapter {... \secdef \CMDA \CMDB }
2449 % \def\CMDA [#1]#2{....} % \chapter[...]{...} の定義
2450 % \def\CMDB #1{....} % \chapter*{...} の定義
2454 % \subsubsection{partレベル}
2456 % \begin{macro}{\part}
2457 % このコマンドは、新しいパート(部)をはじめます。
2459 % articleクラスの場合は、簡単です。
2461 % 新しい段落を開始し、小さな空白を入れ、段落後のインデントをしないようにし、
2465 \newcommand{\part}{\par\addvspace{4ex}%
2467 \secdef\@part\@spart}
2470 % reportとbookスタイルの場合は、少し複雑です。
2472 % まず、右ページからはじまるように改ページをします。
2473 % そして、部扉のページスタイルを\pstyle{empty}にします。
2474 % 2段組の場合でも、1段組で作成しますが、後ほど2段組に戻すために、
2475 % |\@restonecol|スイッチを使います。
2476 % \changes{v1.1}{1997/01/15}{\cs{part}を\LaTeX\ の定義に修正}
2479 \newcommand{\part}{%
2480 \if@openright \cleardoublepage \else \clearpage \fi
2481 \thispagestyle{empty}%
2482 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
2484 \secdef\@part\@spart}
2489 % \begin{macro}{\@part}
2490 % このマクロが実際に部レベルの見出しを作成します。
2491 % このマクロも文書クラスによって定義が異なります。
2493 % articleクラスの場合は、\Lcount{secnumdepth}が$-1$よりも大きいとき、
2494 % 見出し番号を付けます。このカウンタが$-1$以下の場合には付けません。
2498 \ifnum \c@secnumdepth >\m@ne
2499 \refstepcounter{part}%
2500 \addcontentsline{toc}{part}{%
2501 \prepartname\thepart\postpartname\hspace{1\zw}#1}%
2503 \addcontentsline{toc}{part}{#1}%
2506 {\parindent\z@\raggedright
2507 \interlinepenalty\@M\reset@font
2508 \ifnum \c@secnumdepth >\m@ne
2509 \Large\bfseries\prepartname\thepart\postpartname
2512 \huge\bfseries#2\par}%
2513 \nobreak\vskip3ex\@afterheading}
2517 % reportとbookクラスの場合は、\Lcount{secnumdepth}が$-2$よりも大きいときに、
2518 % 見出し番号を付けます。$-2$以下では付けません。
2523 \ifnum \c@secnumdepth >-2\relax
2524 \refstepcounter{part}%
2525 \addcontentsline{toc}{part}{%
2526 \prepartname\thepart\postpartname\hspace{1em}#1}%
2528 \addcontentsline{toc}{part}{#1}%
2532 \interlinepenalty\@M\reset@font
2533 \ifnum \c@secnumdepth >-2\relax
2534 \huge\bfseries\prepartname\thepart\postpartname
2537 \Huge\bfseries#2\par}%
2543 % \begin{macro}{\@spart}
2544 % このマクロは、番号を付けないときの体裁です。
2548 \parindent\z@\raggedright
2549 \interlinepenalty\@M\reset@font
2550 \huge\bfseries#1\par}%
2551 \nobreak\vskip3ex\@afterheading}
2554 % \changes{v1.1k}{1998/03/23}{reportとbookクラスで番号を付けない見出しの
2555 % ペナルティが\cs{M@}だったのを\cs{@M}に修正}
2560 \interlinepenalty\@M\reset@font
2561 \Huge\bfseries#1\par}%
2567 % \begin{macro}{\@endpart}
2568 % |\@part|と|\@spart|の最後で実行されるマクロです。
2569 % 両面印刷モードのときは、白ページを追加します。
2570 % 二段組モードのときには、これ以降のページを二段組に戻します。
2573 \def\@endpart{\vfil\newpage
2574 \if@twoside\null\thispagestyle{empty}\newpage\fi
2576 % 二段組文書のとき、スイッチを二段組モードに戻す必要があります。
2578 \if@tempswa\twocolumn\fi}
2583 % \subsubsection{chapterレベル}
2585 % \begin{macro}{chapter}
2586 % 章レベルは、必ずページの先頭から開始します。
2587 % |openright|オプションが指定されている場合は、右ページからはじまる
2588 % ように|\cleardoublepage|を呼び出します。
2589 % そうでなければ、|\clearpage|を呼び出します。
2590 % なお、縦組の場合でも右ページからはじまるように、
2591 % フォーマットファイルで|\clerdoublepage|が定義されています。
2593 % 章見出しが出力されるページのスタイルは、\pstyle{jpl@in}になります。
2594 % \pstyle{jpl@in}は、\pstyle{headnomble}か\pstyle{footnomble}のいずれかです。
2595 % 詳細は、第\ref{sec:pagestyle}節を参照してください。
2597 % また、|\@topnum|をゼロにして、
2598 % 章見出しの上にトップフロートが置かれないようにしています。
2601 \newcommand{\chapter}{%
2602 \if@openright\cleardoublepage\else\clearpage\fi
2603 \thispagestyle{jpl@in}%
2606 \secdef\@chapter\@schapter}
2610 % \begin{macro}{\@chapter}
2611 % このマクロは、章見出しに番号を付けるときに呼び出されます。
2612 % \Lcount{secnumdepth}が$-1$よりも大きく、
2613 % |\@mainmatter|が真(bookクラスの場合)のときに、番号を出力します。
2615 \def\@chapter[#1]#2{%
2616 \ifnum \c@secnumdepth >\m@ne
2617 %<book> \if@mainmatter
2618 \refstepcounter{chapter}%
2619 \typeout{\@chapapp\space\thechapter\space\@chappos}%
2620 \addcontentsline{toc}{chapter}%
2621 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
2622 %<book> \else\addcontentsline{toc}{chapter}{#1}\fi
2624 \addcontentsline{toc}{chapter}{#1}%
2627 \addtocontents{lof}{\protect\addvspace{10\p@}}%
2628 \addtocontents{lot}{\protect\addvspace{10\p@}}%
2629 \@makechapterhead{#2}\@afterheading}
2633 % \begin{macro}{\@makechapterhead}
2634 % このマクロが実際に章見出しを組み立てます。
2635 % \changes{v1.1o}{1998/12/24}{secnumdepthカウンタを$-1$以下にすると、
2636 % 見出し文字列も消えてしまうのを修正}
2637 % \changes{v1.2}{2001/09/04}{\cs{chapter}の出力位置がアスタリスク形式と
2638 % そうでないときと違うのを修正(ありがとう、鈴木@津さん)}
2640 \def\@makechapterhead#1{\hbox{}%
2644 \reset@font\huge\bfseries
2646 \ifnum \c@secnumdepth >\m@ne
2647 \setlength\@tempdima{\linewidth}%
2648 %<book> \if@mainmatter
2649 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
2650 \addtolength\@tempdima{-\wd\z@}%
2653 \vtop{\hsize\@tempdima#1}%
2656 \fi}\nobreak\vskip3\Cvs}
2660 % \begin{macro}{\@schapter}
2661 % このマクロは、章見出しに番号を付けないときに呼び出されます。
2664 %<article> \if@twocolumn\@topnewpage[\@makeschapterhead{#1}]\else
2665 \@makeschapterhead{#1}\@afterheading
2671 % \begin{macro}{\@makeschapterhead}
2673 % \changes{v1.2}{2001/09/04}{\cs{chapter}の出力位置がアスタリスク形式と
2674 % そうでないときと違うのを修正(ありがとう、鈴木@津さん)}
2676 \def\@makeschapterhead#1{\hbox{}%
2680 \reset@font\huge\bfseries
2682 \setlength\@tempdima{\linewidth}%
2683 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
2688 % \subsubsection{下位レベルの見出し}
2690 % \begin{macro}{\section}
2691 % 見出しの前後に空白を付け、|\Large\bfseries|で出力をします。
2693 \newcommand{\section}{\@startsection{section}{1}{\z@}%
2694 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
2695 {.5\Cvs \@plus.3\Cvs}%
2696 {\reset@font\Large\bfseries}}
2700 % \begin{macro}{\subsection}
2701 % 見出しの前後に空白を付け、|\large\bfseries|で出力をします。
2703 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
2704 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
2705 {.5\Cvs \@plus.3\Cvs}%
2706 {\reset@font\large\bfseries}}
2710 % \begin{macro}{\subsubsection}
2711 % 見出しの前後に空白を付け、|\normalsize\bfseries|で出力をします。
2713 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
2714 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
2715 {.5\Cvs \@plus.3\Cvs}%
2716 {\reset@font\normalsize\bfseries}}
2720 % \begin{macro}{\paragraph}
2721 % 見出しの前に空白を付け、|\normalsize\bfseries|で出力をします。
2724 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
2725 {3.25ex \@plus 1ex \@minus .2ex}%
2727 {\reset@font\normalsize\bfseries}}
2731 % \begin{macro}{\subparagraph}
2732 % 見出しの前に空白を付け、|\normalsize\bfseries|で出力をします。
2735 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
2736 {3.25ex \@plus 1ex \@minus .2ex}%
2738 {\reset@font\normalsize\bfseries}}
2743 % \subsubsection{付録}
2745 % \begin{macro}{\appendix}
2746 % articleクラスの場合、|\appendix|コマンドは次のことを行ないます。
2749 % \item \Lcount{section}と\Lcount{subsection}カウンタをリセットする。
2750 % \item |\thesection|を英小文字で出力するように再定義する。
2755 \newcommand{\appendix}{\par
2756 \setcounter{section}{0}%
2757 \setcounter{subsection}{0}%
2758 %<tate> \renewcommand{\thesection}{\rensuji{\@Alph\c@section}}}
2759 %<yoko> \renewcommand{\thesection}{\@Alph\c@section}}
2763 % reportとbookクラスの場合、|\appendix|コマンドは次のことを行ないます。
2766 % \item \Lcount{chapter}と\Lcount{section}カウンタをリセットする。
2767 % \item |\@chapapp|を|\appendixname|に設定する。
2768 % \item |\@chappos|を空にする。
2769 % \item |\thechapter|を英小文字で出力するように再定義する。
2774 \newcommand{\appendix}{\par
2775 \setcounter{chapter}{0}%
2776 \setcounter{section}{0}%
2777 \renewcommand{\@chapapp}{\appendixname}%
2778 \renewcommand{\@chappos}\space%
2779 %<tate> \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
2780 %<yoko> \renewcommand{\thechapter}{\@Alph\c@chapter}}
2787 % \subsection{リスト環境}
2788 % ここではリスト環境について説明をしています。
2790 % リスト環境のデフォルトは次のように設定されます。
2792 % まず、|\rigtmargin|, |\listparindent|, |\itemindent|をゼロにします。
2793 % そして、K番目のレベルのリストは|\@listK|で示されるマクロが呼び出されます。
2794 % ここで`K'は小文字のローマ数字で示されます。たとえば、3番目のレベルのリスト
2795 % として|\@listiii|が呼び出されます。
2796 % |\@listK|は|\leftmargin|を|\leftmarginK|に設定します。
2798 % \begin{macro}{\leftmargin}
2799 % \begin{macro}{\leftmargini}
2800 % \begin{macro}{\leftmarginii}
2801 % \begin{macro}{\leftmarginiii}
2802 % \begin{macro}{\leftmarginiv}
2803 % \begin{macro}{\leftmarginv}
2804 % \begin{macro}{\leftmarginvi}
2805 % 二段組モードのマージンは少しだけ小さく設定してあります。
2808 \setlength\leftmargini {2em}
2810 \setlength\leftmargini {2.5em}
2813 % 次の3つの値は、|\labelsep|とデフォルトラベル(`(m)', `vii.', `M.')の
2816 \setlength\leftmarginii {2.2em}
2817 \setlength\leftmarginiii {1.87em}
2818 \setlength\leftmarginiv {1.7em}
2820 \setlength\leftmarginv {.5em}
2821 \setlength\leftmarginvi{.5em}
2823 \setlength\leftmarginv {1em}
2824 \setlength\leftmarginvi{1em}
2835 % \begin{macro}{\labelsep}
2836 % \begin{macro}{\labelwidth}
2837 % |\labelsep|はラベルとテキストの項目の間の距離です。
2838 % |\labelwidth|はラベルの幅です。
2840 \setlength \labelsep {.5em}
2841 \setlength \labelwidth{\leftmargini}
2842 \addtolength\labelwidth{-\labelsep}
2847 % \begin{macro}{\@beginparpenalty}
2848 % \begin{macro}{\@endparpenalty}
2849 % これらのペナルティは、リストや段落環境の前後に挿入されます。
2850 % \begin{macro}{\@itempenalty}
2851 % このペナルティは、リスト項目の間に挿入されます。
2853 \@beginparpenalty -\@lowpenalty
2854 \@endparpenalty -\@lowpenalty
2855 \@itempenalty -\@lowpenalty
2856 %</article|report|book>
2862 % \begin{macro}{\partopsep}
2863 % リスト環境の前に空行がある場合、|\parskip|と|\topsep|に|\partopsep|が
2864 % 加えられた値の縦方向の空白が取られます。
2866 %<10pt>\setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
2867 %<11pt>\setlength\partopsep{3\p@ \@plus 1\p@ \@minus 1\p@}
2868 %<12pt>\setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
2872 % \begin{macro}{\@listi}
2873 % \begin{macro}{\@listI}
2874 % |\@listi|は、|\leftmargin|, |\parsep|, |\topsep|, |\itemsep|などの
2876 % この定義は、フォントサイズコマンドによって変更されます(たとえば、
2877 % |\small|の中では``小さい''リストパラメータになります)。
2879 % このため、|\normalsize|がすべてのパラメータを戻せるように、
2880 % |\@listI|は|\@listi|のコピーを保存するように定義されています。
2883 \def\@listi{\leftmargin\leftmargini
2885 \parsep 4\p@ \@plus2\p@ \@minus\p@
2886 \topsep 8\p@ \@plus2\p@ \@minus4\p@
2887 \itemsep4\p@ \@plus2\p@ \@minus\p@}
2890 \parsep 4.5\p@ \@plus2\p@ \@minus\p@
2891 \topsep 9\p@ \@plus3\p@ \@minus5\p@
2892 \itemsep4.5\p@ \@plus2\p@ \@minus\p@}
2895 \parsep 5\p@ \@plus2.5\p@ \@minus\p@
2896 \topsep 10\p@ \@plus4\p@ \@minus6\p@
2897 \itemsep5\p@ \@plus2.5\p@ \@minus\p@}
2901 % ここで、パラメータを初期化しますが、厳密には必要ありません。
2908 % \begin{macro}{\@listii}
2909 % \begin{macro}{\@listiii}
2910 % \begin{macro}{\@listiv}
2911 % \begin{macro}{\@listv}
2912 % \begin{macro}{\@listvi}
2913 % 下位レベルのリスト環境のパラメータの設定です。
2914 % これらは保存用のバージョンを持たないことと、
2915 % フォントサイズコマンドによって変更されないことに注意をしてください。
2916 % 言い換えれば、このクラスは、本文サイズが
2917 % |\normalsize|で現れるリストの入れ子についてだけ考えています。
2919 \def\@listii{\leftmargin\leftmarginii
2920 \labelwidth\leftmarginii \advance\labelwidth-\labelsep
2922 \topsep 4\p@ \@plus2\p@ \@minus\p@
2923 \parsep 2\p@ \@plus\p@ \@minus\p@
2926 \topsep 4.5\p@ \@plus2\p@ \@minus\p@
2927 \parsep 2\p@ \@plus\p@ \@minus\p@
2930 \topsep 5\p@ \@plus2.5\p@ \@minus\p@
2931 \parsep 2.5\p@ \@plus\p@ \@minus\p@
2934 \def\@listiii{\leftmargin\leftmarginiii
2935 \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
2936 %<10pt> \topsep 2\p@ \@plus\p@\@minus\p@
2937 %<11pt> \topsep 2\p@ \@plus\p@\@minus\p@
2938 %<12pt> \topsep 2.5\p@\@plus\p@\@minus\p@
2940 \partopsep \p@ \@plus\z@ \@minus\p@
2942 \def\@listiv {\leftmargin\leftmarginiv
2943 \labelwidth\leftmarginiv
2944 \advance\labelwidth-\labelsep}
2945 \def\@listv {\leftmargin\leftmarginv
2946 \labelwidth\leftmarginv
2947 \advance\labelwidth-\labelsep}
2948 \def\@listvi {\leftmargin\leftmarginvi
2949 \labelwidth\leftmarginvi
2950 \advance\labelwidth-\labelsep}
2960 % \subsubsection{enumerate環境}
2961 % enumerate環境は、カウンタ\Lcount{enumi}, \Lcount{enumii}, \Lcount{enumiii},
2962 % \Lcount{enumiv}を使います。\Lcount{enumN}はN番目のレベルの番号を制御します。
2964 % \begin{macro}{\theenumi}
2965 % \begin{macro}{\theenumii}
2966 % \begin{macro}{\theenumiii}
2967 % \begin{macro}{\theenumiv}
2969 % これらは、すでに\file{ltlists.dtx}で定義されています。
2971 %<*article|report|book>
2973 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
2974 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
2975 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
2976 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
2979 \renewcommand{\theenumi}{\@arabic\c@enumi}
2980 \renewcommand{\theenumii}{\@alph\c@enumii}
2981 \renewcommand{\theenumiii}{\@roman\c@enumiii}
2982 \renewcommand{\theenumiv}{\@Alph\c@enumiv}
2990 % \begin{macro}{\labelenumi}
2991 % \begin{macro}{\labelenumii}
2992 % \begin{macro}{\labelenumiii}
2993 % \begin{macro}{\labelenumiv}
2994 % enumerate環境のそれぞれの項目のラベルは、
2995 % |\labelenumi| \ldots\ |\labelenumiv|で生成されます。
2998 \newcommand{\labelenumi}{\theenumi}
2999 \newcommand{\labelenumii}{\theenumii}
3000 \newcommand{\labelenumiii}{\theenumiii}
3001 \newcommand{\labelenumiv}{\theenumiv}
3004 \newcommand{\labelenumi}{\theenumi.}
3005 \newcommand{\labelenumii}{(\theenumii)}
3006 \newcommand{\labelenumiii}{\theenumiii.}
3007 \newcommand{\labelenumiv}{\theenumiv.}
3015 % \begin{macro}{\p@enumii}
3016 % \begin{macro}{\p@enumiii}
3017 % \begin{macro}{\p@enumiv}
3019 % enumerate環境のN番目のリスト項目が参照されるときの書式です。
3021 \renewcommand{\p@enumii}{\theenumi}
3022 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
3023 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
3029 % \begin{environment}{enumerate}
3030 % \changes{v1.1q}{1999/05/18}{縦組時のみに設定するようにした}
3031 % トップレベルで使われたときに、最初と最後に半行分のスペースを開けるように、
3032 % 変更します。この環境は、\file{ltlists.dtx}で定義されています。
3035 \renewenvironment{enumerate}
3036 {\ifnum \@enumdepth >\thr@@\@toodeep\else
3037 \advance\@enumdepth\@ne
3038 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
3039 \list{\csname label\@enumctr\endcsname}{%
3041 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
3043 \parskip\z@ \itemsep\z@ \parsep\z@
3044 \labelwidth1\zw \labelsep.3\zw
3045 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
3046 \else\leftmargin\leftskip\fi
3047 \advance\leftmargin 1\zw
3049 \usecounter{\@enumctr}%
3050 \def\makelabel##1{\hss\llap{##1}}}%
3056 % \subsubsection{itemize環境}
3058 % \begin{macro}{\labelitemi}
3059 % \begin{macro}{\labelitemii}
3060 % \begin{macro}{\labelitemiii}
3061 % \begin{macro}{\labelitemiv}
3062 % itemize環境のそれぞれの項目のラベルは、
3063 % |\labelenumi| \ldots\ |\labelenumiv|で生成されます。
3064 % \changes{v1.1a}{1997/01/28}{Bug fix: \cs{labelitemii}.}
3066 \newcommand{\labelitemi}{\textbullet}
3067 \newcommand{\labelitemii}{%
3071 {\normalfont\bfseries\textendash}
3074 \newcommand{\labelitemiii}{\textasteriskcentered}
3075 \newcommand{\labelitemiv}{\textperiodcentered}
3082 % \begin{environment}{itemize}
3083 % \changes{v1.0e}{1996/03/14}{縦組時のみに設定するようにした}
3084 % トップレベルで使われたときに、最初と最後に半行分のスペースを開けるように、
3085 % 変更します。この環境は、\file{ltlists.dtx}で定義されています。
3087 \renewenvironment{itemize}
3088 {\ifnum \@itemdepth >\thr@@\@toodeep\else
3089 \advance\@itemdepth\@ne
3090 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
3092 \list{\csname \@itemitem\endcsname}{%
3094 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
3096 \parskip\z@ \itemsep\z@ \parsep\z@
3097 \labelwidth1\zw \labelsep.3\zw
3098 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
3099 \else\leftmargin\leftskip\fi
3100 \advance\leftmargin 1\zw
3102 \def\makelabel##1{\hss\llap{##1}}}%
3108 % \subsubsection{description環境}
3110 % \begin{environment}{description}
3111 % \changes{v1.0e}{1996/03/14}{\cs{topskip}や\cs{parkip}などの値を縦組時のみに
3113 % description環境を定義します。
3114 % 縦組時には、インデントが3字分だけ深くなります。
3116 \newenvironment{description}
3117 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
3119 \leftmargin\leftskip \advance\leftmargin3\Cwd
3120 \rightmargin\rightskip
3121 \labelsep=1\zw \itemsep\z@
3122 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
3124 \let\makelabel\descriptionlabel}}{\endlist}
3128 % \begin{macro}{\descriptionlabel}
3129 % ラベルの形式を変更する必要がある場合は、|\descriptionlabel|を
3132 \newcommand{\descriptionlabel}[1]{%
3133 \hspace\labelsep\normalfont\bfseries #1}
3138 % \subsubsection{verse環境}
3140 % \begin{environment}{verse}
3141 % verse環境は、リスト環境のパラメータを使って定義されています。
3142 % 改行をするには|\\|を用います。|\\|は|\@centercr|に|\let|されています。
3144 \newenvironment{verse}
3146 \list{}{\itemsep\z@ \itemindent -1.5em%
3147 \listparindent\itemindent
3148 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
3149 \item\relax}{\endlist}
3153 % \subsubsection{quotation環境}
3155 % \begin{environment}{quotation}
3156 % quotation環境もまた、list環境のパラメータを使用して定義されています。
3157 % この環境の各行は、|\textwidth|よりも小さく設定されています。
3158 % この環境における、段落の最初の行はインデントされます。
3160 \newenvironment{quotation}
3161 {\list{}{\listparindent 1.5em%
3162 \itemindent\listparindent
3163 \rightmargin\leftmargin
3164 \parsep\z@ \@plus\p@}%
3165 \item\relax}{\endlist}
3169 % \subsubsection{quote環境}
3171 % \begin{environment}{quote}
3172 % quote環境は、段落がインデントされないことを除き、quotation環境と同じです。
3174 \newenvironment{quote}
3175 {\list{}{\rightmargin\leftmargin}%
3176 \item\relax}{\endlist}
3184 % \file{ltfloat.dtx}では、フロートオブジェクトを操作するためのツールしか
3185 % 定義していません。タイプが\texttt{TYPE}のフロートオブジェクトを
3186 % 扱うマクロを定義するには、次の変数が必要です。
3188 % \begin{description}
3189 % \item[\texttt{\bslash fps@TYPE}]
3190 % タイプ\texttt{TYPE}のフロートを置くデフォルトの位置です。
3192 % \item[\texttt{\bslash ftype@TYPE}]
3193 % タイプ\texttt{TYPE}のフロートの番号です。
3194 % 各\texttt{TYPE}には、一意な、2の倍数の\texttt{TYPE}番号を割り当てます。
3195 % たとえば、図が番号1ならば、表は2です。次のタイプは4となります。
3197 % \item[\texttt{\bslash ext@TYPE}]
3198 % タイプ\texttt{TYPE}のフロートの目次を出力するファイルの拡張子です。
3199 % たとえば、|\ext@figure|は`lot'です。
3201 % \item[\texttt{\bslash fnum@TYPE}]
3202 % キャプション用の図番号を生成するマクロです。
3203 % たとえば、|\fnum@figure|は`図|\thefigure|'を作ります。
3206 % \subsubsection{figure環境}
3207 % ここでは、figure環境を実装しています。
3209 % \begin{macro}{\c@figure}
3210 % \begin{macro}{\thefigure}
3213 %<article>\newcounter{figure}
3214 %<report|book>\newcounter{figure}[chapter]
3216 %<article>\renewcommand{\thefigure}{\rensuji{\@arabic\c@figure}}
3218 % \changes{v1.1d}{1997/02/14}{\cs{ifnum}文の構文エラーを訂正。}
3221 \renewcommand{\thefigure}{%
3222 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
3226 %<article>\renewcommand{\thefigure}{\@arabic\c@figure}
3228 \renewcommand{\thefigure}{%
3229 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
3236 % \begin{macro}{\fps@figure}
3237 % \begin{macro}{\ftype@figure}
3238 % \begin{macro}{\ext@figure}
3239 % \begin{macro}{\fnum@figure}
3240 % フロートオブジェクトタイプ``figure''のためのパラメータです。
3242 \def\fps@figure{tbp}
3243 \def\ftype@figure{1}
3244 \def\ext@figure{lof}
3245 %<tate>\def\fnum@figure{\figurename\thefigure}
3246 %<yoko>\def\fnum@figure{\figurename~\thefigure}
3253 % \begin{environment}{figure}
3254 % \begin{environment}{figure*}
3255 % |*|形式は2段抜きのフロートとなります。
3257 \newenvironment{figure}
3260 \newenvironment{figure*}
3261 {\@dblfloat{figure}}
3267 % \subsubsection{table環境}
3268 % ここでは、table環境を実装しています。
3270 % \begin{macro}{\c@table}
3271 % \begin{macro}{\thetable}
3272 % \changes{v1.1n}{1998/10/13}
3273 % {report, bookクラスでchapterカウンタを考慮していなかったのを修正。
3277 %<article>\newcounter{table}
3278 %<report|book>\newcounter{table}[chapter]
3280 %<article>\renewcommand{\thetable}{\rensuji{\@arabic\c@table}}
3282 \renewcommand{\thetable}{%
3283 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
3287 %<article>\renewcommand{\thetable}{\@arabic\c@table}
3289 \renewcommand{\thetable}{%
3290 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
3297 % \begin{macro}{\fps@table}
3298 % \begin{macro}{\ftype@table}
3299 % \begin{macro}{\ext@table}
3300 % \begin{macro}{\fnum@table}
3301 % フロートオブジェクトタイプ``table''のためのパラメータです。
3306 %<tate>\def\fnum@table{\tablename\thetable}
3307 %<yoko>\def\fnum@table{\tablename~\thetable}
3314 % \begin{environment}{table}
3315 % \begin{environment}{table*}
3316 % |*|形式は2段抜きのフロートとなります。
3318 \newenvironment{table}
3321 \newenvironment{table*}
3328 % \subsection{キャプション}
3330 % \begin{macro}{\@makecaption}
3331 % |\caption|コマンドは、キャプションを組み立てるために|\@mkcaption|を呼出ます。
3332 % このコマンドは二つの引数を取ります。
3333 % 一つは、\meta{number}で、フロートオブジェクトの番号です。
3334 % もう一つは、\meta{text}でキャプション文字列です。
3335 % \meta{number}には通常、`図 3.2'のような文字列が入っています。
3336 % このマクロは、|\parbox|の中で呼び出されます。書体は|\normalsize|です。
3338 % \begin{macro}{\abovecaptionskip}
3339 % \begin{macro}{\belowcaptionskip}
3340 % これらの長さはキャプションの前後に挿入されるスペースです。
3342 \newlength\abovecaptionskip
3343 \newlength\belowcaptionskip
3344 \setlength\abovecaptionskip{10\p@}
3345 \setlength\belowcaptionskip{0\p@}
3350 % キャプション内で複数の段落を作成することができるように、
3351 % このマクロは|\long|で定義をします。
3353 \long\def\@makecaption#1#2{%
3354 \vskip\abovecaptionskip
3355 \iftdir\sbox\@tempboxa{#1\hskip1\zw#2}%
3356 \else\sbox\@tempboxa{#1: #2}%
3358 \ifdim \wd\@tempboxa >\hsize
3359 \iftdir #1\hskip1\zw#2\relax\par
3360 \else #1: #2\relax\par\fi
3362 \global \@minipagefalse
3363 \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
3365 \vskip\belowcaptionskip}
3369 % \subsection{コマンドパラメータの設定}
3371 % \subsubsection{arrayとtabular環境}
3373 % \begin{macro}{\arraycolsep}
3374 % array環境のカラムは2|\arraycolsep|で分離されます。
3376 \setlength\arraycolsep{5\p@}
3380 % \begin{macro}{\tabcolsep}
3381 % tabular環境のカラムは2|\tabcolsep|で分離されます。
3383 \setlength\tabcolsep{6\p@}
3387 % \begin{macro}{\arrayrulewidth}
3388 % arrayとtabular環境内の罫線の幅です。
3390 \setlength\arrayrulewidth{.4\p@}
3394 % \begin{macro}{\doublerulesep}
3395 % arrayとtabular環境内の罫線間を調整する空白です。
3397 \setlength\doublerulesep{2\p@}
3401 % \subsubsection{tabbing環境}
3403 % \begin{macro}{\tabbingsep}
3404 % |\'|コマンドで置かれるスペースを制御します。
3406 \setlength\tabbingsep{\labelsep}
3410 % \subsubsection{minipage環境}
3412 % \begin{macro}{\@mpfootins}
3413 % minipageにも脚注を付けることができます。
3414 % |\skip||\@mpfootins|は、通常の|\skip||\footins|と同じような動作をします。
3416 \skip\@mpfootins = \skip\footins
3420 % \subsubsection{framebox環境}
3422 % \begin{macro}{\fboxsep}
3423 % \begin{macro}{\fboxrule}
3424 % |\fboxsep|は、|\fbox|と|\framebox|での、
3425 % テキストとボックスの間に入る空白です。
3426 % |\fboxrule|は|\fbox|と|\framebox|で作成される罫線の幅です。
3428 \setlength\fboxsep{3\p@}
3429 \setlength\fboxrule{.4\p@}
3434 % \subsubsection{equationとeqnarray環境}
3436 % \begin{macro}{\theequation}
3437 % equationカウンタは、新しい章の開始でリセットされます。
3438 % また、equation番号には、章番号が付きます。
3440 % このコードは|\chapter|定義の後、より正確にはchapterカウンタの定義の後、
3443 %<article>\renewcommand{\theequation}{\@arabic\c@equation}
3445 \@addtoreset{equation}{chapter}
3446 \renewcommand{\theequation}{%
3447 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
3453 % \section{フォントコマンド}
3454 % まず、数式内に日本語を直接、記述するために数式記号用文字に
3455 % ``JY3/mc/m/n''を登録します。数式バージョンがboldの場合は、
3456 % ``JY3/gt/m/n''を用います。
3457 % これらは、|\mathmc|, |\mathgt|として登録されます。
3458 % また、日本語数式ファミリとして|\symmincho|がこの段階で設定されます。
3459 % |mathrmmc|オプションが指定されていた場合には、これに引き続き
3460 % |\mathrm|と|\mathbf|を和欧文両対応にするための作業がなされます。この際、
3461 % 他のマクロとの衝突を避けるため|\AtBeginDocument|
3462 % を用いて展開順序を遅らせる必要があります。
3466 % \changes{v1.6}{2006/06/27}{フォントコマンドを修正。ありがとう、ymtさん。}
3468 % compatibility mode では和文数式フォントfamが2重定義されていた
3471 \if@compatibility\else
3472 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
3473 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
3474 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
3476 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
3480 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
3481 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
3486 % ここでは\LaTeX~2.09で一般的に使われていたコマンドを定義しています。
3487 % これらのコマンドはテキストモードと数式モードの\emph{どちらでも}動作します。
3488 % これらは互換性のために提供をしますが、できるだけ|\text...|と|\math...|を
3491 % \begin{macro}{\mc}
3492 % \begin{macro}{\gt}
3493 % \begin{macro}{\rm}
3494 % \begin{macro}{\sf}
3495 % \begin{macro}{\tt}
3496 % これらのコマンドはフォントファミリを変更します。
3497 % 互換モードの同名コマンドと異なり、すべてのコマンドがデフォルトフォントに
3498 % リセットしてから、対応する属性を変更することに注意してください。
3500 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
3501 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
3502 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
3503 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
3504 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
3512 % \begin{macro}{\bf}
3513 % このコマンドはボールド書体にします。ノーマル書体に変更するには、
3514 % |\mdseries|と指定をします。
3516 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
3520 % \begin{macro}{\it}
3521 % \begin{macro}{\sl}
3522 % \begin{macro}{\sc}
3523 % これらのコマンドはフォントシェイプを切替えます。
3524 % スラント体とスモールキャップの数式アルファベットはありませんので、
3525 % 数式モードでは何もしませんが、警告メッセージを出力します。
3526 % |\upshape|コマンドで通常のシェイプにすることができます。
3528 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
3529 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
3530 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
3536 % \begin{macro}{\cal}
3537 % \begin{macro}{\mit}
3538 % これらのコマンドは数式モードでだけ使うことができます。
3540 % 現在のNFSSは、これらのコマンドが警告を生成するように定義していますので、
3541 % `手ずから'定義する必要があります。
3543 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
3544 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
3554 % |\section|コマンドは、\file{.toc}ファイルに、次のような行を出力します。
3556 % |\contentsline{section}{|\meta{title}|}{|\meta{page}|}|
3558 % \meta{title}には項目が、\meta{page}にはページ番号が入ります。
3559 % |\section|に見出し番号が付く場合は、\meta{title}は、
3560 % |\numberline{|\meta{num}|}{|\meta{heading}|}|となります。
3561 % \meta{num}は|\thesection|コマンドで生成された見出し番号です。
3562 % \meta{heading}は見出し文字列です。この他の見出しコマンドも同様です。
3564 % figure環境での|\caption|コマンドは、\file{.lof}ファイルに、
3567 % |\contentsline{figure}{\numberline{|\meta{num}|}{|%
3568 % \meta{caption}|}}{|\meta{page}|}|
3570 % \meta{num}は、|\thefigure|コマンドで生成された図番号です。
3571 % \meta{caption}は、キャプション文字列です。table環境も同様です。
3573 % |\contentsline{|\meta{name}|}|コマンドは、|\l@|\meta{name}に展開されます。
3574 % したがって、目次の体裁を記述するには、|\l@chapter|, |\l@section|などを
3575 % 定義します。図目次のためには|\l@figure|です。
3576 % これらの多くのコマンドは|\@dottedtocline|コマンドで定義されています。
3577 % このコマンドは次のような書式となっています。
3579 % |\@dottedtocline{|\meta{level}|}{|\meta{indent}|}{|^^A
3580 % \meta{numwidth}|}{|\meta{title}|}{|\meta{page}|}|
3582 % \begin{description}
3583 % \item[\meta{level}] ``\meta{level} $<=$ \Lcount{tocdepth}''のときにだけ、
3584 % 生成されます。|\chapter|はレベル0、|\section|はレベル1、$\ldots$ です。
3585 % \item[\meta{indent}] 一番外側からの左マージンです。
3586 % \item[\meta{numwidth}] 見出し番号(|\numberline|コマンドの\meta{num})が
3590 % \begin{macro}{\c@tocdepth}
3591 % \Lcount{tocdepth}は、目次ページに出力をする見出しレベルです。
3593 %<article>\setcounter{tocdepth}{3}
3594 %<!article>\setcounter{tocdepth}{2}
3598 % また、目次を生成するために次のパラメータも使います。
3600 % \begin{macro}{\@pnumwidth}
3603 \newcommand{\@pnumwidth}{1.55em}
3607 % \begin{macro}{\@tocmarg}
3608 % 複数行にわたる場合の右マージンです。
3610 \newcommand{\@tocrmarg}{2.55em}
3614 % \begin{macro}{\@dotsep}
3615 % ドットの間隔(mu単位)です。2や1.7のように指定をします。
3617 \newcommand{\@dotsep}{4.5}
3621 % \begin{macro}{\toclineskip}
3622 % この長さ変数は、目次項目の間に入るスペースの長さです。
3623 % デフォルトはゼロとなっています。縦組のとき、スペースを少し広げます。
3625 \newdimen\toclineskip
3626 %<yoko>\setlength\toclineskip{\z@}
3627 %<tate>\setlength\toclineskip{2\p@}
3631 % \begin{macro}{\numberline}
3632 % \begin{macro}{\@lnumwidth}
3633 % |\numberline|マクロの定義を示します。オリジナルの定義では、ボックスの幅を
3634 % |\@tempdima|にしていますが、この変数はいろいろな箇所で使われますので、
3635 % 期待した値が入らない場合があります。
3637 % たとえば、|lltjfont.sty|での|\selectfont|は、和欧文のベースラインを調整する
3638 % ために|\@tempdima|変数を用いています。そのため、|\l@...|マクロの中で
3639 % フォントを切替えると、|\numberline|マクロのボックス
3640 % の幅が、ベースラインを調整するときに計算した値になってしまいます。
3642 % フォント選択コマンドの後、あるいは|\numberline|マクロの中でフォントを
3643 % 切替えてもよいのですが、一時変数を意識したくないので、
3644 % 見出し番号の入るボックスを|\@lnumwidth|変数を用いて組み立てるように
3645 % |\numberline|マクロを再定義します。
3647 \newdimen\@lnumwidth
3648 \def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
3653 % \begin{macro}{\@dottedtocline}
3654 % 目次の各行間に|\toclineskip|を入れるように変更します。
3655 % このマクロは\file{ltsect.dtx}で定義されています。
3656 % \changes{v1.3}{2001/10/04}{第5引数の書体を\cs{rmfamily}から\cs{normalfont}に変更}
3658 \def\@dottedtocline#1#2#3#4#5{%
3659 \ifnum #1>\c@tocdepth \else
3660 \vskip\toclineskip \@plus.2\p@
3661 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
3662 \parindent #2\relax\@afterindenttrue
3663 \interlinepenalty\@M
3665 \@lnumwidth #3\relax
3666 \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
3668 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
3670 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
3676 % \begin{macro}{\addcontentsline}
3677 % ページ番号を|\rensuji|で囲むように変更します。
3678 % 横組のときにも`|\rensuji|'コマンドが出力されますが、
3679 % このコマンドによる影響はありません。
3681 % このマクロは\file{ltsect.dtx}で定義されています。
3683 \def\addcontentsline#1#2#3{%
3684 \protected@write\@auxout
3685 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
3686 %<tate>\@temptokena{\rensuji{\thepage}}}%
3687 %<yoko>\@temptokena{\thepage}}%
3688 {\string\@writefile{#1}%
3689 {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
3695 % \subsubsection{本文目次}
3697 % \begin{macro}{\tableofcontents}
3700 \newcommand{\tableofcontents}{%
3702 \if@twocolumn\@restonecoltrue\onecolumn
3703 \else\@restonecolfalse\fi
3705 %<article> \section*{\contentsname
3706 %<!article> \chapter*{\contentsname
3707 \@mkboth{\contentsname}{\contentsname}%
3709 %<report|book> \if@restonecol\twocolumn\fi
3714 % \begin{macro}{\l@part}
3717 \newcommand*{\l@part}[2]{%
3718 \ifnum \c@tocdepth >-2\relax
3719 %<article> \addpenalty{\@secpenalty}%
3720 %<!article> \addpenalty{-\@highpenalty}%
3721 \addvspace{2.25em \@plus\p@}%
3723 \parindent\z@\rightskip\@pnumwidth
3724 \parfillskip-\@pnumwidth
3725 {\leavevmode\large\bfseries
3726 \setlength\@lnumwidth{4\zw}%
3728 \hbox to\@pnumwidth{\hss#2}}\par
3730 %<article> \if@compatibility
3731 \global\@nobreaktrue
3732 \everypar{\global\@nobreakfalse\everypar{}}%
3739 % \begin{macro}{\l@chapter}
3743 \newcommand*{\l@chapter}[2]{%
3744 \ifnum \c@tocdepth >\m@ne
3745 \addpenalty{-\@highpenalty}%
3746 \addvspace{1.0em \@plus\p@}%
3748 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
3749 \leavevmode\bfseries
3750 \setlength\@lnumwidth{4\zw}%
3751 \advance\leftskip\@lnumwidth \hskip-\leftskip
3752 #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
3753 \penalty\@highpenalty
3760 % \begin{macro}{\l@section}
3764 \newcommand*{\l@section}[2]{%
3765 \ifnum \c@tocdepth >\z@
3766 \addpenalty{\@secpenalty}%
3767 \addvspace{1.0em \@plus\p@}%
3769 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
3770 \leavevmode\bfseries
3771 \setlength\@lnumwidth{1.5em}%
3772 \advance\leftskip\@lnumwidth \hskip-\leftskip
3773 #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
3781 %<tate>\newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
3782 %<yoko>\newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
3787 % \begin{macro}{\l@subsection}
3788 % \begin{macro}{\l@subsubsection}
3789 % \begin{macro}{\l@paragraph}
3790 % \begin{macro}{\l@subparagraph}
3795 \newcommand*{\l@subsection} {\@dottedtocline{2}{1\zw}{4\zw}}
3796 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{2\zw}{6\zw}}
3797 \newcommand*{\l@paragraph} {\@dottedtocline{4}{3\zw}{8\zw}}
3798 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{4\zw}{9\zw}}
3801 \newcommand*{\l@subsection} {\@dottedtocline{2}{2\zw}{6\zw}}
3802 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
3803 \newcommand*{\l@paragraph} {\@dottedtocline{4}{4\zw}{9\zw}}
3804 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
3809 \newcommand*{\l@subsection} {\@dottedtocline{2}{1.5em}{2.3em}}
3810 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3.8em}{3.2em}}
3811 \newcommand*{\l@paragraph} {\@dottedtocline{4}{7.0em}{4.1em}}
3812 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{10em}{5em}}
3815 \newcommand*{\l@subsection} {\@dottedtocline{2}{3.8em}{3.2em}}
3816 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
3817 \newcommand*{\l@paragraph} {\@dottedtocline{4}{10em}{5em}}
3818 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
3828 % \subsubsection{図目次と表目次}
3830 % \begin{macro}{\listoffigures}
3833 \newcommand{\listoffigures}{%
3835 \if@twocolumn\@restonecoltrue\onecolumn
3836 \else\@restonecolfalse\fi
3837 \chapter*{\listfigurename
3839 %<article> \section*{\listfigurename
3840 \@mkboth{\listfigurename}{\listfigurename}}%
3842 %<report|book> \if@restonecol\twocolumn\fi
3847 % \begin{macro}{\l@figure}
3850 %<tate>\newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
3851 %<yoko>\newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
3855 % \begin{macro}{\listoftables}
3856 % \changes{v1.0c}{1995/12/28}{fix the \cs{listoftable} typo.}
3859 \newcommand{\listoftables}{%
3861 \if@twocolumn\@restonecoltrue\onecolumn
3862 \else\@restonecolfalse\fi
3863 \chapter*{\listtablename
3865 %<article> \section*{\listtablename
3866 \@mkboth{\listtablename}{\listtablename}}%
3868 %<report|book> \if@restonecol\twocolumn\fi
3873 % \begin{macro}{\l@table}
3874 % 表目次の体裁は、図目次と同じにします。
3876 \let\l@table\l@figure
3883 % \begin{macro}{\bibindent}
3884 % オープンスタイルの参考文献で使うインデント幅です。
3887 \setlength\bibindent{1.5em}
3891 % \begin{macro}{\newblock}
3892 % |\newblock|のデフォルト定義は、小さなスペースを生成します。
3894 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
3898 % \begin{environment}{thebibliography}
3899 % 参考文献や関連図書のリストを作成します。
3901 \newenvironment{thebibliography}[1]
3902 %<article>{\section*{\refname\@mkboth{\refname}{\refname}}%
3903 %<report|book>{\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
3904 \list{\@biblabel{\@arabic\c@enumiv}}%
3905 {\settowidth\labelwidth{\@biblabel{#1}}%
3906 \leftmargin\labelwidth
3907 \advance\leftmargin\labelsep
3909 \usecounter{enumiv}%
3910 \let\p@enumiv\@empty
3911 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
3914 % \changes{v1.1a}{1997/01/23}{\LaTeX\ \texttt{!<1996/12/01!>}に合わせて修正}
3917 \@clubpenalty\clubpenalty
3921 {\@latex@warning{Empty `thebibliography' environment}}%
3926 % \begin{macro}{\@openbib@code}
3927 % |\@openbib@code|のデフォルト定義は何もしません。
3928 % この定義は、\Lopt{openbib}オプションによって変更されます。
3930 \let\@openbib@code\@empty
3934 % \begin{macro}{\@biblabel}
3935 % The label for a |\bibitem[...]| command is produced by this
3936 % macro. The default from \file{latex.dtx} is used.
3938 % \renewcommand*{\@biblabel}[1]{[#1]\hfill}
3942 % \begin{macro}{\@cite}
3943 % The output of the |\cite| command is produced by this macro. The
3944 % default from \file{latex.dtx} is used.
3946 % \renewcommand*{\@cite}[1]{[#1]}
3953 % \begin{environment}{theindex}
3955 % 索引の先頭のページのスタイルは\pstyle{jpl@in}とします。したがって、
3956 % \pstyle{headings}と\pstyle{bothstyle}に適した位置に出力されます。
3958 \newenvironment{theindex}
3959 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
3960 \columnseprule\z@ \columnsep 35\p@
3961 %<article> \twocolumn[\section*{\indexname}]%
3962 %<report|book> \twocolumn[\@makeschapterhead{\indexname}]%
3963 \@mkboth{\indexname}{\indexname}%
3964 \thispagestyle{jpl@in}\parindent\z@
3965 \parskip\z@ \@plus .3\p@\relax
3967 {\if@restonecol\onecolumn\else\clearpage\fi}
3971 % \begin{macro}{\@idxitem}
3972 % \begin{macro}{\subitem}
3973 % \begin{macro}{\subsubitem}
3974 % 索引項目の字下げ幅です。|\@idxitem|は|\item|の項目の字下げ幅です。
3976 \newcommand{\@idxitem}{\par\hangindent 40\p@}
3977 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
3978 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
3984 % \begin{macro}{\indexspace}
3985 % 索引の``文字''見出しの前に入るスペースです。
3987 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
3994 % \begin{macro}{\footnoterule}
3997 \renewcommand{\footnoterule}{%
3999 \hrule width .4\columnwidth
4004 % \begin{macro}{\c@footnote}
4005 % reportとbookクラスでは、chapterレベルでリセットされます。
4007 %<!article>\@addtoreset{footnote}{chapter}
4011 % \begin{macro}{\@makefntext}
4012 % このマクロにしたがって脚注が組まれます。
4014 % |\@makefnmark|は脚注記号を組み立てるマクロです。
4017 \newcommand\@makefntext[1]{\parindent 1\zw
4018 \noindent\hbox to 2\zw{\hss\@makefnmark}#1}
4021 \newcommand\@makefntext[1]{\parindent 1em
4022 \noindent\hbox to 1.8em{\hss\@makefnmark}#1}
4029 % 組版時における現在の日付を出力します。
4031 % \iffalse meta-comment!
4032 % 注意:ここで \DisableCrossrefs, \EnableCrossrefs をしているのは、
4033 % platex jclasses.dtx で dvi を作るときにエラーになるため。
4036 % \begin{macro}{\if西暦}
4037 % \begin{macro}{\西暦}
4038 % \begin{macro}{\和暦}
4039 % \changes{v1.0h}{1996/12/17}{Typo:和歴 to 和暦}
4040 % |\today|コマンドの`年'を、
4041 % 西暦か和暦のどちらで出力するかを指定するコマンドです。
4043 \newif\if西暦 \西暦false
4052 % \begin{macro}{\heisei}
4053 % \changes{v1.1m}{1998/04/07}{\cs{today}の計算手順を変更}
4054 % |\today|コマンドを|\rightmark|で指定したとき、|\rightmark|を出力する部分
4055 % で和暦のための計算ができないので、クラスファイルを読み込む時点で計算して
4058 \newcount\heisei \heisei\year \advance\heisei-1988\relax
4062 % \begin{macro}{\today}
4068 \kansuji\number\year 年
4069 \kansuji\number\month 月
4070 \kansuji\number\day 日
4072 平成\ifnum\heisei=1 元年\else\kansuji\number\heisei 年\fi
4073 \kansuji\number\month 月
4074 \kansuji\number\day 日
4082 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
4095 % \begin{macro}{\prepartname}
4096 % \begin{macro}{\postpartname}
4097 % \begin{macro}{\prechaptername}
4098 % \begin{macro}{\postchaptername}
4100 \newcommand{\prepartname}{第}
4101 \newcommand{\postpartname}{部}
4102 %<report|book>\newcommand{\prechaptername}{第}
4103 %<report|book>\newcommand{\postchaptername}{章}
4110 % \begin{macro}{\contentsname}
4111 % \begin{macro}{\listfigurename}
4112 % \begin{macro}{\listtablename}
4114 \newcommand{\contentsname}{目 次}
4115 \newcommand{\listfigurename}{図 目 次}
4116 \newcommand{\listtablename}{表 目 次}
4122 % \begin{macro}{\refname}
4123 % \begin{macro}{\bibname}
4124 % \begin{macro}{\indexname}
4126 %<article>\newcommand{\refname}{参考文献}
4127 %<report|book>\newcommand{\bibname}{関連図書}
4128 \newcommand{\indexname}{索 引}
4134 % \begin{macro}{\figurename}
4135 % \begin{macro}{\tablename}
4137 \newcommand{\figurename}{図}
4138 \newcommand{\tablename}{表}
4143 % \begin{macro}{\appendixname}
4144 % \begin{macro}{\abstractname}
4146 \newcommand{\appendixname}{付 録}
4147 %<article|report>\newcommand{\abstractname}{概 要}
4152 % \changes{v1.0d}{1996/02/29}{articleとreportのデフォルトを
4153 % \pstyle{plain}に修正}
4154 % \changes{v1.4}{2002/04/09}{縦組スタイルで\cs{flushbottom}しないようにした}
4156 %<book>\pagestyle{headings}
4157 %<!book>\pagestyle{plain}
4158 \pagenumbering{arabic}
4167 % |\@mparswitch|は傍注を左右(縦組では上下)どちらのマージンに
4168 % 出力するかの指定です。偽の場合、傍注は一方の側にしか出力されません。
4169 % このスイッチを真とすると、とくに縦組の場合、奇数ページでは本文の上に、
4170 % 偶数ページでは本文の下に傍注が出力されますので、おかしなことになります。
4172 % また、縦組のときには、傍注を本文の下に出すようにしています。
4173 % |\reversemarginpar|とすると本文の上側に出力されます。
4174 % ただし、二段組の場合は、つねに隣接するテキスト側のマージンに出力されます。
4187 %</article|report|book>