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}{2013/06/06}{luatexja.cfgに対応.}
80 % \changes{v1.6-ltj-3}{2014/06/08}{縦組クラスの時のgeometry.styに対応.}
81 % \changes{v1.6-ltj-4}{2014/06/30}{組方向の変更箇所を現行のLua\TeX-jaの仕様に合うように修正.}
82 % \changes{v1.6-ltj-5}{2014/07/02}{\cs{ifydir}, \cs{iftdir}を使わないように修正.}
83 % \changes{v1.6-ltj-6}{2014/07/28}{縦組クラスでlltjext.styを読み込むように修正.}
84 % \changes{v1.6-ltj-7}{2014/11/15}{縦組クラスとeveryshi.styとの相性が悪い問題を修正.}
85 % \changes{v1.6-ltj-8}{2014/11/22}{縦組時のgeometry.styへの対応を別ファイル(lltjp-geometry.sty)に分離.それに伴いv1.6-ltj-3での変更を削除.}
86 % \changes{v1.6-ltj-9}{2015/01/01}{縦組クラスの日付出力でエラーになることなどを修正.}
87 % \changes{v1.6-ltj-10}{2015/10/18}{Lua\TeX\ 0.81.0に伴うプリミティブ名の変更に対応.}
88 % \changes{v1.6-ltj-11}{2016/07/19}{トンボ使用時の用紙サイズの設定方法を変更(aminophenさん,ありがとうございます).}
92 \NeedsTeXFormat{LaTeX2e}
94 \ProvidesFile{ltjclasses.dtx}
97 %<article>\ProvidesClass{ltjarticle}
98 %<report>\ProvidesClass{ltjreport}
99 %<book>\ProvidesClass{ltjbook}
100 %<10pt&!bk>\ProvidesFile{ltjsize10.clo}
101 %<11pt&!bk>\ProvidesFile{ltjsize11.clo}
102 %<12pt&!bk>\ProvidesFile{ltjsize12.clo}
103 %<10pt&bk>\ProvidesFile{ltjbk10.clo}
104 %<11pt&bk>\ProvidesFile{ltjbk11.clo}
105 %<12pt&bk>\ProvidesFile{ltjbk12.clo}
108 %<article>\ProvidesClass{ltjtarticle}
109 %<report>\ProvidesClass{ltjtreport}
110 %<book>\ProvidesClass{ltjtbook}
111 %<10pt&!bk>\ProvidesFile{ltjtsize10.clo}
112 %<11pt&!bk>\ProvidesFile{ltjtsize11.clo}
113 %<12pt&!bk>\ProvidesFile{ltjtsize12.clo}
114 %<10pt&bk>\ProvidesFile{ltjtbk10.clo}
115 %<11pt&bk>\ProvidesFile{ltjtbk11.clo}
116 %<12pt&bk>\ProvidesFile{ltjtbk12.clo}
118 [2016/07/19 v1.6-ltj-11
119 %<article|report|book> Standard LuaLaTeX-ja class]
120 %<10pt|11pt|12pt> Standard LuaLaTeX-ja file (size option)]
123 \documentclass{ltjltxdoc}
124 \GetFileInfo{ltjclasses.dtx}
125 \usepackage[ipaex,nfssonly]{luatexja-preset}
126 \usepackage[unicode]{hyperref}
127 \title{Lua\LaTeX-ja用\texttt{jclasses}互換クラス}
128 \author{Lua\TeX-jaプロジェクト}
139 % このファイルは、Lua\LaTeX-ja用の|jclasses|互換クラスファイルです。
141 % \dst{}プログラムによって、横組用のクラスファイルと縦組用のクラスファイル
144 % 次に\dst{}プログラムのためのオプションを示します。
146 % \DeleteShortVerb{\|}
148 % \begin{tabular}{l|l}
149 % \emph{オプション} & \emph{意味}\\\hline
150 % article & articleクラスを生成\\
151 % report & reportクラスを生成\\
152 % book & bookクラスを生成\\
153 % 10pt & 10ptサイズの設定を生成\\
154 % 11pt & 11ptサイズの設定を生成\\
155 % 12pt & 12ptサイズの設定を生成\\
156 % bk & bookクラス用のサイズの設定を生成\\
163 % \subsection{\texttt{jclasses.dtx} からの主な変更点}
164 % 全ての変更点を知りたい場合は、|jclasses.dtx|と|ltjclasses.dtx|で|diff|を
167 % \item |disablejfam|オプションを無効化。もし
169 % |! LaTeX Error: Too many math alphabets used in version ****.|
171 % のエラーが起こった場合は、|lualatex-math|パッケージを読み込んでみて下さい。
172 % \item 出力PDFの用紙サイズが自動的に設定されるようにしてあります。
173 % %%%\item 縦組みクラスにおいて、|geometry|パッケージを読み込んだときに意図通りにならない問題に対応しました。%
176 % \section{Lua\TeX-ja の読み込み}
177 % 最初に|luatexja|を読み込みます。
179 %<*article|report|book>
180 \RequirePackage{luatexja}
183 % \section{オプションスイッチ}
184 % ここでは、後ほど使用するいくつかのコマンドやスイッチを定義しています。
186 % \begin{macro}{\c@@paper}
188 % A4, A5, B4, B5用紙はそれぞれ、1, 2, 3, 4として表されます。
194 % \begin{macro}{\if@landscape}
195 % 用紙を横向きにするかどうかのスイッチです。デフォルトは、縦向きです。
197 \newif\if@landscape \@landscapefalse
201 % \begin{macro}{\@ptsize}
202 % 組版をするポイント数の一の位を保存するために使います。
205 \newcommand{\@ptsize}{}
209 % \begin{macro}{\if@restonecol}
210 % 二段組時に用いるテンポラリスイッチです。
216 % \begin{macro}{\if@titlepage}
217 % タイトルページやアブストラクト(概要)を
218 % 独立したページにするかどうかのスイッチです。
219 % reportとbookスタイルのデフォルトでは、独立したページになります。
222 %<article>\@titlepagefalse
223 %<report|book>\@titlepagetrue
227 % \begin{macro}{\if@openright}
228 % chapterレベルを奇数ページからはじめるかどうかのスイッチです。
229 % reportクラスのデフォルトは、``no''です。
230 % bookクラスのデフォルトは、``yes''です。
232 %<!article>\newif\if@openright
236 % \changes{v1.0c}{1995/12/25}{Macro \cs{if@openbib} removed}
238 % \begin{macro}{\if@mainmatter}
239 % スイッチ|\@mainmatter|が真の場合、本文を処理しています。
240 % このスイッチが偽の場合は、|\chapter|コマンドは見出し番号を出力しません。
242 %<book>\newif\if@mainmatter \@mainmattertrue
246 % \begin{macro}{\hour}
247 % \begin{macro}{\minute}
249 \hour\time \divide\hour by 60\relax
250 \@tempcnta\hour \multiply\@tempcnta 60\relax
251 \minute\time \advance\minute-\@tempcnta
256 % \begin{macro}{\if@stysize}
257 % \changes{v1.1a}{1997/01/25}{Add \cs{if@stysize}.}
258 % \LaTeXe~2.09互換モードで、スタイルオプションにa4j, a5pなどが指定された
259 % ときの動作をエミュレートするためのフラグです。
261 \newif\if@stysize \@stysizefalse
265 % \begin{macro}{\if@mathrmmc}
266 % 和欧文両対応の数式文字コマンドを有効にするときに用いるフラグです。
267 % マクロの展開順序が複雑になるのを避けるため、
268 % デフォルトではfalseとしてあります。
270 \newif\if@mathrmmc \@mathrmmcfalse
275 % ここでは、クラスオプションの宣言を行なっています。
277 % \subsection{用紙オプション}
280 \DeclareOption{a4paper}{\setcounter{@paper}{1}%
281 \setlength\paperheight {297mm}%
282 \setlength\paperwidth {210mm}}
283 \DeclareOption{a5paper}{\setcounter{@paper}{2}%
284 \setlength\paperheight {210mm}
285 \setlength\paperwidth {148mm}}
286 \DeclareOption{b4paper}{\setcounter{@paper}{3}%
287 \setlength\paperheight {364mm}
288 \setlength\paperwidth {257mm}}
289 \DeclareOption{b5paper}{\setcounter{@paper}{4}%
290 \setlength\paperheight {257mm}
291 \setlength\paperwidth {182mm}}
293 % \changes{v1.0a}{1995/09/26}{Change b4paper width/height 352x250 to 364x257}
294 % \changes{v1.0a}{1995/09/26}{Change b5paper width/height 250x176 to 257x182}
295 % ドキュメントクラスに、以下のオプションを指定すると、通常よりもテキストを
296 % 組み立てる領域の広いスタイルとすることができます。
299 \DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
300 \setlength\paperheight {297mm}%
301 \setlength\paperwidth {210mm}}
302 \DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
303 \setlength\paperheight {210mm}
304 \setlength\paperwidth {148mm}}
305 \DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
306 \setlength\paperheight {364mm}
307 \setlength\paperwidth {257mm}}
308 \DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
309 \setlength\paperheight {257mm}
310 \setlength\paperwidth {182mm}}
312 \DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
313 \setlength\paperheight {297mm}%
314 \setlength\paperwidth {210mm}}
315 \DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
316 \setlength\paperheight {210mm}
317 \setlength\paperwidth {148mm}}
318 \DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
319 \setlength\paperheight {364mm}
320 \setlength\paperwidth {257mm}}
321 \DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
322 \setlength\paperheight {257mm}
323 \setlength\paperwidth {182mm}}
326 % \subsection{サイズオプション}
327 % 基準となるフォントの大きさを指定するオプションです。
330 \renewcommand{\@ptsize}{0}
332 \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
334 \DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
335 \DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
338 % \subsection{横置きオプション}
339 % このオプションが指定されると、用紙の縦と横の長さを入れ換えます。
340 % \changes{v1.1h}{1997/09/03}{オプションの処理時に縦横の値を交換}
341 % \changes{v1.1h}{1997/09/03}{landscapeオプションを互換モードでも有効に}
343 \DeclareOption{landscape}{\@landscapetrue
344 \setlength\@tempdima{\paperheight}%
345 \setlength\paperheight{\paperwidth}%
346 \setlength\paperwidth{\@tempdima}}
349 % \subsection{トンボオプション}
350 % |tombow|オプションが指定されると、用紙サイズに合わせてトンボを出力します。
351 % このとき、トンボの脇にPDFを作成した日付が出力されます。
352 % 作成日付の出力を抑制するには、|tombow|ではなく、|tombo|と指定をします。
353 % \changes{v1.0g}{1996/09/03}{Add to \cs{@bannertoken}.}
354 % \changes{v1.1a}{1997/01/23}{日付出力オプション}
356 \DeclareOption{tombow}{%
357 \tombowtrue \tombowdatetrue
358 \setlength{\@tombowwidth}{.1\p@}%
360 \jobname\space:\space\number\year/\number\month/\number\day
361 (\number\hour:\number\minute)}
363 \DeclareOption{tombo}{%
364 \tombowtrue \tombowdatefalse
365 \setlength{\@tombowwidth}{.1\p@}%
369 % \subsection{面付けオプション}
370 % このオプションが指定されると、トンボオプションを指定したときと同じ
371 % 位置に文章を出力します。作成したPDFをフィルムに面付け出力する場合など
373 % \changes{v1.0f}{1996/07/10}{面付けオプションを追加}
374 % \changes{v1.1n}{1998/10/13}
375 % {動作していなかったのを修正。ありがとう、刀祢さん}
377 \DeclareOption{mentuke}{%
378 \tombowtrue \tombowdatefalse
379 \setlength{\@tombowwidth}{\z@}%
383 % \subsection{組方向オプション}
384 % このオプションが指定されると、縦組で組版をします。
385 % \changes{v1.0g}{1997/01/25}{Insert \cs{hbox}, to switch tate-mode.}
386 % \changes{v1.1d}{1997/02/05}{開始ページがおかしくなるのを修正}
387 % \changes{v1.1f}{1997/07/08}{縦組時にベースラインがおかしくなるのを修正}
389 % \changes{v1.6-ltj-4}{2014/06/30}{本文の組方向を \cs{AtBeginDocument} で
390 % 変更することができなくなったことに対応}
392 \DeclareOption{tate}{%
393 \tate\AtBeginDocument{\message{《縦組モード》}\adjustbaseline}%
397 % 縦組クラスと|everyshi|パッケージの相性が悪い問題に対処します。
398 % この処理は、ZRさんの|pxeveryshi|パッケージと実質的に同じ内容です。
401 \AtEndOfPackageFile{everyshi}{%
402 \def\@EveryShipout@Output{%
406 \@EveryShipout@AtNextHook
407 \global\setbox\luatexoutputbox=\box\luatexoutputbox
409 \gdef\@EveryShipout@AtNextHook{}%
410 \@EveryShipout@Org@Shipout\box\luatexoutputbox
415 % \subsection{両面、片面オプション}
416 % twosideオプションが指定されると、両面印字出力に適した整形を行ないます。
418 \DeclareOption{oneside}{\@twosidefalse}
419 \DeclareOption{twoside}{\@twosidetrue}
422 % \subsection{二段組オプション}
423 % 二段組にするかどうかのオプションです。
425 \DeclareOption{onecolumn}{\@twocolumnfalse}
426 \DeclareOption{twocolumn}{\@twocolumntrue}
429 % \subsection{表題ページオプション}
430 % |@titlepage|が真の場合、表題を独立したページに出力します。
432 \DeclareOption{titlepage}{\@titlepagetrue}
433 \DeclareOption{notitlepage}{\@titlepagefalse}
436 % \subsection{右左起こしオプション}
437 % chapterを右ページあるいは左ページから
438 % はじめるかどうかを指定するオプションです。
440 %<!article>\if@compatibility
441 %<book>\@openrighttrue
443 %<!article>\DeclareOption{openright}{\@openrighttrue}
444 %<!article>\DeclareOption{openany}{\@openrightfalse}
448 % \subsection{数式のオプション}
449 % \Lopt{leqno}を指定すると、数式番号を数式の左側に出力します。
450 % \Lopt{fleqn}を指定するとディスプレイ数式を左揃えで出力します。
452 \DeclareOption{leqno}{\input{leqno.clo}}
453 \DeclareOption{fleqn}{\input{fleqn.clo}}
456 % \subsection{参考文献のオプション}
457 % 参考文献一覧を``オープンスタイル''の書式で出力します。
458 % これは各ブロックが改行で区切られ、|\bibindent|のインデントが付く書式です。
459 % \changes{v1.0c}{1995/12/25}{openbibオプションを再実装}
461 \DeclareOption{openbib}{%
463 % 参考文献環境内の最初のいくつかのフックを満たします。
466 \renewcommand\@openbib@code{%
467 \advance\leftmargin\bibindent
468 \itemindent -\bibindent
469 \listparindent \itemindent
473 % そして、|\newblock|を再定義します。
475 \renewcommand\newblock{\par}}}
478 % \subsection{日本語ファミリ宣言の抑制、和欧文両対応の数式文字}
479 % p\TeX では数式ファミリの数が16個だったので日本語ファミリ宣言を抑制する
480 % |disablejfam|オプションが用意されていましたが、Lua\TeX ではOmega拡張が
481 % 取り込まれて数式ファミリは256個まで使用できるため、このオプションは必要ありません。
482 % ただし、\LaTeXe カーネルでは未だに数式ファミリの数は16個に制限されているので、
483 % 実際に使用可能な数式ファミリの数を増やすためには|lualatex-math|パッケージを
484 % 読み込む必要があることに注意が必要です。
487 % |\mathrm|と|\mathbf|を和欧文両対応にするためのクラスオプションです。
488 % \changes{v1.1d}{1992/02/04}{disablejfamの判断を間違えてたのを修正}
493 \DeclareOption{disablejfam}{%
494 \ClassWarningNoLine{\@currname}{The class option 'disablejfam' is obsolete}}
495 \DeclareOption{mathrmmc}{\@mathrmmctrue}
500 % \subsection{ドラフトオプション}
501 % |draft|オプションを指定すると、オーバフルボックスの起きた箇所に、
504 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
505 \DeclareOption{final}{\setlength\overfullrule{0pt}}
506 %</article|report|book>
509 % \subsection{フォントメトリックの変更}
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| によって
528 % \changes{v1.6-ltj-9}{2015/01/01}{サイズクラスのロード前にメトリックの変更を行わないと,
529 % \cs{Cht}等の値が反映されないのでこの場所に移動させました.}
532 %<*article|report|book>
533 \directlua{luatexbase.add_to_callback('luatexja.load_jfm',
534 function (ji, jn) ji.chars['parbdd'] = 0; return ji end,
535 'ltj.jclasses_load_jfm', 1)}
536 {\jfont\g=\ltj@stdmcfont:jfm=min } % loading jfm-min.lua
537 \expandafter\let\csname JY3/mc/m/n/10\endcsname\relax
538 \DeclareFontShape{JY3}{mc}{m}{n}{<-> s * [0.962216] \ltj@stdmcfont:jfm=min}{}
539 \DeclareFontShape{JY3}{gt}{m}{n}{<-> s * [0.962216] \ltj@stdgtfont:jfm=min;jfmvar=goth}{}
540 \ltjglobalsetparameter{differentjfm=both}
541 \directlua{luatexbase.remove_from_callback('luatexja.load_jfm', 'ltj.jclasses_load_jfm')}
542 %</article|report|book>
545 % \subsection{オプションの実行}
546 % オプションの実行、およびサイズクラスのロードを行ないます。
548 %<*article|report|book>
550 %<tate>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,tate}
551 %<yoko>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final}
554 %<tate>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany,tate}
555 %<yoko>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany}
558 %<tate>\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright,tate}
559 %<yoko>\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright}
561 \ProcessOptions\relax
562 %<book&tate>\input{ltjtbk1\@ptsize.clo}
563 %<!book&tate>\input{ltjtsize1\@ptsize.clo}
564 %<book&yoko>\input{ltjbk1\@ptsize.clo}
565 %<!book&yoko>\input{ltjsize1\@ptsize.clo}
567 % 縦組用クラスファイルの場合は、ここで\file{plext.sty}も読み込みます。
568 % \changes{v1.0e}{1996/03/21}{\cs{usepackage} to \cs{RequirePackage}}
569 % \changes{v1.6-ltj-6}{2014/07/28}{Lua\TeX-jaでは,代わりに\file{lltjext.sty}を読み込みま
570 % す.これは\file{plext.sty}をLua\TeX-ja用に書きなおしたものです.}
572 %<tate>\RequirePackage{lltjext}
573 %</article|report|book>
578 % ここでは、\LaTeX{}のフォントサイズコマンドの定義をしています。
579 % フォントサイズコマンドの定義は、次のコマンドを用います。
581 % |\@setfontsize||\size|\meta{font-size}\meta{baselineskip}
583 % \begin{description}
584 % \item[\meta{font-size}] これから使用する、フォントの実際の大きさです。
585 % \item[\meta{baselineskip}] 選択されるフォントサイズ用の通常の
586 % |\baselineskip|の値です(実際は、|\baselinestretch| * \meta{baselineskip}
590 % 数値コマンドは、次のように\LaTeX{}カーネルで定義されています。
592 % \begin{tabular}{ll@{\qquad}ll@{\qquad}ll}
593 % \verb=\@vpt= & 5 & \verb=\@vipt= & 6 & \verb=\@viipt= & 7 \\
594 % \verb=\@viiipt= & 8 & \verb=\@ixpt= & 9 & \verb=\@xpt= & 10 \\
595 % \verb=\@xipt= & 10.95 & \verb=\@xiipt= & 12 & \verb=\@xivpt= & 14.4\\
600 % \begin{macro}{\normalsize}
601 % \begin{macro}{\@normalsize}
602 % 基本サイズとするユーザレベルのコマンドは|\normalsize|です。
603 % \LaTeX{}の内部では|\@normalsize|を使用します。
605 % |\normalsize|マクロは、|\abovedisplayskip|と
606 % |\abovedisplayshortskip|、および|\belowdisplayshortskip|の値も設定をします。
607 % |\belowdisplayskip|は、つねに|\abovedisplayskip|と同値です。
609 % また、リスト環境のトップレベルのパラメータは、つねに|\@listI|で与えられます。
612 \renewcommand{\normalsize}{%
613 %<10pt&yoko> \@setfontsize\normalsize\@xpt{15}%
614 %<11pt&yoko> \@setfontsize\normalsize\@xipt{15.5}%
615 %<12pt&yoko> \@setfontsize\normalsize\@xiipt{16.5}%
616 %<10pt&tate> \@setfontsize\normalsize\@xpt{17}%
617 %<11pt&tate> \@setfontsize\normalsize\@xipt{17}%
618 %<12pt&tate> \@setfontsize\normalsize\@xiipt{18}%
620 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
621 \abovedisplayshortskip \z@ \@plus3\p@
622 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
625 \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
626 \abovedisplayshortskip \z@ \@plus3\p@
627 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
630 \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
631 \abovedisplayshortskip \z@ \@plus3\p@
632 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
634 \belowdisplayskip \abovedisplayskip
638 % ここで、ノーマルフォントを選択し、初期化をします。
639 % このとき、縦組モードならば、デフォルトのエンコードを変更します。
641 %<tate>\def\kanjiencodingdefault{JT3}%
642 %<tate>\kanjiencoding{\kanjiencodingdefault}%
648 % \begin{macro}{\Cht}
649 % \begin{macro}{\Cdp}
650 % \begin{macro}{\Cwd}
651 % \begin{macro}{\Cvs}
652 % \begin{macro}{\Chs}
653 % 基準となる長さの設定をします。これらのパラメータは\file{lltjfont.sty}で定義
656 \setbox0\hbox{\char"3000}% 全角スペース
660 \setlength\Cvs{\baselineskip}
669 % \begin{macro}{\small}
670 % |\small|コマンドの定義は、|\normalsize|に似ています。
672 \newcommand{\small}{%
674 \@setfontsize\small\@ixpt{11}%
675 \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
676 \abovedisplayshortskip \z@ \@plus2\p@
677 \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
678 \def\@listi{\leftmargin\leftmargini
679 \topsep 4\p@ \@plus2\p@ \@minus2\p@
680 \parsep 2\p@ \@plus\p@ \@minus\p@
684 \@setfontsize\small\@xpt\@xiipt
685 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
686 \abovedisplayshortskip \z@ \@plus3\p@
687 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
688 \def\@listi{\leftmargin\leftmargini
689 \topsep 6\p@ \@plus2\p@ \@minus2\p@
690 \parsep 3\p@ \@plus2\p@ \@minus\p@
694 \@setfontsize\small\@xipt{13.6}%
695 \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
696 \abovedisplayshortskip \z@ \@plus3\p@
697 \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
698 \def\@listi{\leftmargin\leftmargini
699 \topsep 9\p@ \@plus3\p@ \@minus5\p@
700 \parsep 4.5\p@ \@plus2\p@ \@minus\p@
703 \belowdisplayskip \abovedisplayskip}
707 % \begin{macro}{\footnotesize}
708 % |\footnotesize|コマンドの定義は、|\normalsize|に似ています。
710 \newcommand{\footnotesize}{%
712 \@setfontsize\footnotesize\@viiipt{9.5}%
713 \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
714 \abovedisplayshortskip \z@ \@plus\p@
715 \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
716 \def\@listi{\leftmargin\leftmargini
717 \topsep 3\p@ \@plus\p@ \@minus\p@
718 \parsep 2\p@ \@plus\p@ \@minus\p@
722 \@setfontsize\footnotesize\@ixpt{11}%
723 \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@
724 \abovedisplayshortskip \z@ \@plus\p@
725 \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
726 \def\@listi{\leftmargin\leftmargini
727 \topsep 4\p@ \@plus2\p@ \@minus2\p@
728 \parsep 2\p@ \@plus\p@ \@minus\p@
732 \@setfontsize\footnotesize\@xpt\@xiipt
733 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
734 \abovedisplayshortskip \z@ \@plus3\p@
735 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
736 \def\@listi{\leftmargin\leftmargini
737 \topsep 6\p@ \@plus2\p@ \@minus2\p@
738 \parsep 3\p@ \@plus2\p@ \@minus\p@
741 \belowdisplayskip \abovedisplayskip}
745 % \begin{macro}{\scriptsize}
746 % \begin{macro}{\tiny}
747 % \begin{macro}{\large}
748 % \begin{macro}{\Large}
749 % \begin{macro}{\LARGE}
750 % \begin{macro}{\huge}
751 % \begin{macro}{\Huge}
752 % これらは先ほどのマクロよりも簡単です。これらはフォントサイズを変更する
753 % だけで、リスト環境とディスプレイ数式のパラメータは変更しません。
756 \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
757 \newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt}
758 \newcommand{\large}{\@setfontsize\large\@xiipt{17}}
759 \newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
760 \newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
761 \newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
762 \newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
765 \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
766 \newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
767 \newcommand{\large}{\@setfontsize\large\@xiipt{17}}
768 \newcommand{\Large}{\@setfontsize\Large\@xivpt{21}}
769 \newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
770 \newcommand{\huge}{\@setfontsize\huge\@xxpt{28}}
771 \newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
774 \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
775 \newcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
776 \newcommand{\large}{\@setfontsize\large\@xivpt{21}}
777 \newcommand{\Large}{\@setfontsize\Large\@xviipt{25}}
778 \newcommand{\LARGE}{\@setfontsize\LARGE\@xxpt{28}}
779 \newcommand{\huge}{\@setfontsize\huge\@xxvpt{33}}
796 % \subsection{用紙サイズの決定}
798 % \begin{macro}{\columnsep}
799 % \begin{macro}{\columnseprule}
800 % |\columnsep|は、二段組のときの、左右(あるいは上下)の段間の幅です。
801 % このスペースの中央に|\columnseprule|の幅の罫線が引かれます。
802 % \changes{v1.0g}{1997/01/25}{\cs{columnsep}: 10pt to 3\cs{Cwd} or 2\cs{Cwd}.}
804 %<*article|report|book>
806 %<tate> \setlength\columnsep{3\Cwd}
807 %<yoko> \setlength\columnsep{2\Cwd}
809 \setlength\columnsep{10\p@}
811 \setlength\columnseprule{0\p@}
816 % \begin{macro}{\pagewidth}
817 % \begin{macro}{\pageheight}
818 % \begin{macro}{\stockwidth}
819 % \begin{macro}{\stockheight}
820 % 出力のPDFの用紙サイズをここで設定しておきます。
821 % |tombow|が真のときは2インチ足しておきます。
823 % [2015-10-18 LTJ] Lua\TeX\ 0.81.0ではプリミティブの名称変更がされたので,
826 % [2016-07-19 LTJ] luatex.defが新しくなったことに対応するaminophenさんのパッチを取り込みました。
829 \newlength{\stockwidth}
830 \newlength{\stockheight}
831 \setlength{\stockwidth}{\paperwidth}
832 \setlength{\stockheight}{\paperheight}
834 \advance \stockwidth 2in
835 \advance \stockheight 2in
837 \ifdefined\pdfpagewidth
838 \setlength{\pdfpagewidth}{\stockwidth}
839 \setlength{\pdfpageheight}{\stockheight}
841 \setlength{\pagewidth}{\stockwidth}
842 \setlength{\pageheight}{\stockheight}
852 % \begin{macro}{\lineskip}
853 % \begin{macro}{\normallineskip}
854 % これらの値は、行が近付き過ぎたときの\TeX の動作を制御します。
856 \setlength\lineskip{1\p@}
857 \setlength\normallineskip{1\p@}
862 % \begin{macro}{\baselinestretch}
863 % これは、|\baselineskip|の倍率を示すために使います。
864 % デフォルトでは、\emph{何もしません}。このコマンドが``empty''でない場合、
865 % |\baselineskip|の指定の\texttt{plus}や\texttt{minus}部分は無視される
868 \renewcommand{\baselinestretch}{}
872 % \begin{macro}{\parskip}
873 % \begin{macro}{\parindent}
874 % |\parskip|は段落間に挿入される、縦方向の追加スペースです。
875 % |\parindent|は段落の先頭の字下げ幅です。
877 \setlength\parskip{0\p@ \@plus \p@}
878 \setlength\parindent{1\Cwd}
883 % \begin{macro}{\smallskipamount}
884 % \begin{macro}{\medskipamount}
885 % \begin{macro}{\bigskipamount}
886 % これら3つのパラメータの値は、\LaTeX{}カーネルの中で設定されています。
887 % これらはおそらく、サイズオプションの指定によって変えるべきです。
888 % しかし、\LaTeX~2.09や\LaTeXe{}の以前のリリースの両方との互換性を保つために、
892 \setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}
893 \setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}
894 \setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}
901 % \begin{macro}{\@lowpenalty}
902 % \begin{macro}{\@medpenalty}
903 % \begin{macro}{\@highpenalty}
904 % |\nopagebreak|と|\nolinebreak|コマンドは、これらのコマンドが置かれた場所に、
905 % ペナルティを起いて、分割を制御します。
906 % 置かれるペナルティは、コマンドの引数によって、
907 % |\@lowpenalty|, |\@medpenalty|, |\@highpenalty|のいずれかが使われます。
912 %</article|report|book>
918 % \subsection{ページレイアウト}
920 % \subsubsection{縦方向のスペース}
922 % \begin{macro}{\headheight}
923 % \begin{macro}{\headsep}
924 % \begin{macro}{\topskip}
925 % |\headheight|は、ヘッダが入るボックスの高さです。
926 % |\headsep|は、ヘッダの下端と本文領域との間の距離です。
927 % |\topskip|は、本文領域の上端と1行目のテキストのベースラインとの距離です。
930 \setlength\headheight{12\p@}
933 \ifnum\c@@paper=2 % A5
934 \setlength\headsep{6mm}
935 \else % A4, B4, B5 and other
936 \setlength\headsep{8mm}
939 \setlength\headsep{8mm}
943 %<!bk>\setlength\headsep{25\p@}
944 %<10pt&bk>\setlength\headsep{.25in}
945 %<11pt&bk>\setlength\headsep{.275in}
946 %<12pt&bk>\setlength\headsep{.275in}
948 \setlength\topskip{1\Cht}
954 % \begin{macro}{\footskip}
955 % |\footskip|は、本文領域の下端とフッタの下端との距離です。
956 % フッタのボックスの高さを示す、|\footheight|は削除されました。
958 %<tate>\setlength\footskip{14mm}
960 %<!bk>\setlength\footskip{30\p@}
961 %<10pt&bk>\setlength\footskip{.35in}
962 %<11pt&bk>\setlength\footskip{.38in}
963 %<12pt&bk>\setlength\footskip{30\p@}
968 % \begin{macro}{\maxdepth}
969 % \changes{v1.1c}{1995/12/25}{\cs{@maxdepth}の設定を除外した}
970 % \TeX のプリミティブレジスタ|\maxdepth|は、|\topskip|と同じような
971 % 働きをします。|\@maxdepth|レジスタは、つねに|\maxdepth|のコピーでなくては
972 % いけません。これは|\begin{document}|の内部で設定されます。
973 % \TeX{}と\LaTeX~2.09では、|\maxdepth|は\texttt{4pt}に固定です。
974 % \LaTeXe{}では、|\maxdepth|$+$|\topskip|を基本サイズの1.5倍にしたいので、
975 % |\maxdepth|を|\topskip|の半分の値で設定します。
978 \setlength\maxdepth{4\p@}
980 \setlength\maxdepth{.5\topskip}
985 % \subsubsection{本文領域}
986 % |\textheight|と|\textwidth|は、本文領域の通常の高さと幅を示します。
987 % 縦組でも横組でも、``高さ''は行数を、``幅''は字詰めを意味します。
988 % 後ほど、これらの長さに|\topskip|の値が加えられます。
990 % \begin{macro}{\textwidth}
997 % \changes{v1.1a}{1997/01/25}{Add paper option with compatibility mode.}
998 % \changes{v1.1h}{1997/09/03}{landscapeでの指定を追加}
999 % 互換モード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
1002 \ifnum\c@@paper=2 % A5
1004 %<10pt&yoko> \setlength\textwidth{47\Cwd}
1005 %<11pt&yoko> \setlength\textwidth{42\Cwd}
1006 %<12pt&yoko> \setlength\textwidth{40\Cwd}
1007 %<10pt&tate> \setlength\textwidth{27\Cwd}
1008 %<11pt&tate> \setlength\textwidth{25\Cwd}
1009 %<12pt&tate> \setlength\textwidth{23\Cwd}
1011 %<10pt&yoko> \setlength\textwidth{28\Cwd}
1012 %<11pt&yoko> \setlength\textwidth{25\Cwd}
1013 %<12pt&yoko> \setlength\textwidth{24\Cwd}
1014 %<10pt&tate> \setlength\textwidth{46\Cwd}
1015 %<11pt&tate> \setlength\textwidth{42\Cwd}
1016 %<12pt&tate> \setlength\textwidth{38\Cwd}
1018 \else\ifnum\c@@paper=3 % B4
1020 %<10pt&yoko> \setlength\textwidth{75\Cwd}
1021 %<11pt&yoko> \setlength\textwidth{69\Cwd}
1022 %<12pt&yoko> \setlength\textwidth{63\Cwd}
1023 %<10pt&tate> \setlength\textwidth{53\Cwd}
1024 %<11pt&tate> \setlength\textwidth{49\Cwd}
1025 %<12pt&tate> \setlength\textwidth{44\Cwd}
1027 %<10pt&yoko> \setlength\textwidth{60\Cwd}
1028 %<11pt&yoko> \setlength\textwidth{55\Cwd}
1029 %<12pt&yoko> \setlength\textwidth{50\Cwd}
1030 %<10pt&tate> \setlength\textwidth{85\Cwd}
1031 %<11pt&tate> \setlength\textwidth{76\Cwd}
1032 %<12pt&tate> \setlength\textwidth{69\Cwd}
1034 \else\ifnum\c@@paper=4 % B5
1036 %<10pt&yoko> \setlength\textwidth{60\Cwd}
1037 %<11pt&yoko> \setlength\textwidth{55\Cwd}
1038 %<12pt&yoko> \setlength\textwidth{50\Cwd}
1039 %<10pt&tate> \setlength\textwidth{34\Cwd}
1040 %<11pt&tate> \setlength\textwidth{31\Cwd}
1041 %<12pt&tate> \setlength\textwidth{28\Cwd}
1043 %<10pt&yoko> \setlength\textwidth{37\Cwd}
1044 %<11pt&yoko> \setlength\textwidth{34\Cwd}
1045 %<12pt&yoko> \setlength\textwidth{31\Cwd}
1046 %<10pt&tate> \setlength\textwidth{55\Cwd}
1047 %<11pt&tate> \setlength\textwidth{51\Cwd}
1048 %<12pt&tate> \setlength\textwidth{47\Cwd}
1050 \else % A4 ant other
1052 %<10pt&yoko> \setlength\textwidth{73\Cwd}
1053 %<11pt&yoko> \setlength\textwidth{68\Cwd}
1054 %<12pt&yoko> \setlength\textwidth{61\Cwd}
1055 %<10pt&tate> \setlength\textwidth{41\Cwd}
1056 %<11pt&tate> \setlength\textwidth{38\Cwd}
1057 %<12pt&tate> \setlength\textwidth{35\Cwd}
1059 %<10pt&yoko> \setlength\textwidth{47\Cwd}
1060 %<11pt&yoko> \setlength\textwidth{43\Cwd}
1061 %<12pt&yoko> \setlength\textwidth{40\Cwd}
1062 %<10pt&tate> \setlength\textwidth{67\Cwd}
1063 %<11pt&tate> \setlength\textwidth{61\Cwd}
1064 %<12pt&tate> \setlength\textwidth{57\Cwd}
1072 \setlength\textwidth{52\Cwd}
1074 %<10pt&!bk&yoko> \setlength\textwidth{327\p@}
1075 %<11pt&!bk&yoko> \setlength\textwidth{342\p@}
1076 %<12pt&!bk&yoko> \setlength\textwidth{372\p@}
1077 %<10pt&bk&yoko> \setlength\textwidth{4.3in}
1078 %<11pt&bk&yoko> \setlength\textwidth{4.8in}
1079 %<12pt&bk&yoko> \setlength\textwidth{4.8in}
1080 %<10pt&tate> \setlength\textwidth{67\Cwd}
1081 %<11pt&tate> \setlength\textwidth{61\Cwd}
1082 %<12pt&tate> \setlength\textwidth{57\Cwd}
1090 % 2eモード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
1091 % 二段組では用紙サイズの8割、一段組では用紙サイズの7割を版面の幅として
1096 %<yoko> \setlength\textwidth{.8\paperwidth}
1097 %<tate> \setlength\textwidth{.8\paperheight}
1099 %<yoko> \setlength\textwidth{.7\paperwidth}
1100 %<tate> \setlength\textwidth{.7\paperheight}
1106 %<tate> \setlength\@tempdima{\paperheight}
1107 %<yoko> \setlength\@tempdima{\paperwidth}
1108 \addtolength\@tempdima{-2in}
1109 %<tate> \addtolength\@tempdima{-1.3in}
1110 %<yoko&10pt> \setlength\@tempdimb{327\p@}
1111 %<yoko&11pt> \setlength\@tempdimb{342\p@}
1112 %<yoko&12pt> \setlength\@tempdimb{372\p@}
1113 %<tate&10pt> \setlength\@tempdimb{67\Cwd}
1114 %<tate&11pt> \setlength\@tempdimb{61\Cwd}
1115 %<tate&12pt> \setlength\@tempdimb{57\Cwd}
1117 \ifdim\@tempdima>2\@tempdimb\relax
1118 \setlength\textwidth{2\@tempdimb}
1120 \setlength\textwidth{\@tempdima}
1123 \ifdim\@tempdima>\@tempdimb\relax
1124 \setlength\textwidth{\@tempdimb}
1126 \setlength\textwidth{\@tempdima}
1131 \@settopoint\textwidth
1135 % \begin{macro}{\textheight}
1142 % \changes{v1.1a}{1997/01/25}{Add paper option with compatibility mode.}
1143 % \changes{v1.1f}{1997/09/03}{landscapeでの指定を追加}
1144 % 互換モード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
1147 \ifnum\c@@paper=2 % A5
1149 %<10pt&yoko> \setlength\textheight{17\Cvs}
1150 %<11pt&yoko> \setlength\textheight{17\Cvs}
1151 %<12pt&yoko> \setlength\textheight{16\Cvs}
1152 %<10pt&tate> \setlength\textheight{26\Cvs}
1153 %<11pt&tate> \setlength\textheight{26\Cvs}
1154 %<12pt&tate> \setlength\textheight{25\Cvs}
1156 %<10pt&yoko> \setlength\textheight{28\Cvs}
1157 %<11pt&yoko> \setlength\textheight{25\Cvs}
1158 %<12pt&yoko> \setlength\textheight{24\Cvs}
1159 %<10pt&tate> \setlength\textheight{16\Cvs}
1160 %<11pt&tate> \setlength\textheight{16\Cvs}
1161 %<12pt&tate> \setlength\textheight{15\Cvs}
1163 \else\ifnum\c@@paper=3 % B4
1165 %<10pt&yoko> \setlength\textheight{38\Cvs}
1166 %<11pt&yoko> \setlength\textheight{36\Cvs}
1167 %<12pt&yoko> \setlength\textheight{34\Cvs}
1168 %<10pt&tate> \setlength\textheight{48\Cvs}
1169 %<11pt&tate> \setlength\textheight{48\Cvs}
1170 %<12pt&tate> \setlength\textheight{45\Cvs}
1172 %<10pt&yoko> \setlength\textheight{57\Cvs}
1173 %<11pt&yoko> \setlength\textheight{55\Cvs}
1174 %<12pt&yoko> \setlength\textheight{52\Cvs}
1175 %<10pt&tate> \setlength\textheight{33\Cvs}
1176 %<11pt&tate> \setlength\textheight{33\Cvs}
1177 %<12pt&tate> \setlength\textheight{31\Cvs}
1179 \else\ifnum\c@@paper=4 % B5
1181 %<10pt&yoko> \setlength\textheight{22\Cvs}
1182 %<11pt&yoko> \setlength\textheight{21\Cvs}
1183 %<12pt&yoko> \setlength\textheight{20\Cvs}
1184 %<10pt&tate> \setlength\textheight{34\Cvs}
1185 %<11pt&tate> \setlength\textheight{34\Cvs}
1186 %<12pt&tate> \setlength\textheight{32\Cvs}
1188 %<10pt&yoko> \setlength\textheight{35\Cvs}
1189 %<11pt&yoko> \setlength\textheight{34\Cvs}
1190 %<12pt&yoko> \setlength\textheight{32\Cvs}
1191 %<10pt&tate> \setlength\textheight{21\Cvs}
1192 %<11pt&tate> \setlength\textheight{21\Cvs}
1193 %<12pt&tate> \setlength\textheight{20\Cvs}
1195 \else % A4 and other
1197 %<10pt&yoko> \setlength\textheight{27\Cvs}
1198 %<11pt&yoko> \setlength\textheight{26\Cvs}
1199 %<12pt&yoko> \setlength\textheight{25\Cvs}
1200 %<10pt&tate> \setlength\textheight{41\Cvs}
1201 %<11pt&tate> \setlength\textheight{41\Cvs}
1202 %<12pt&tate> \setlength\textheight{38\Cvs}
1204 %<10pt&yoko> \setlength\textheight{43\Cvs}
1205 %<11pt&yoko> \setlength\textheight{42\Cvs}
1206 %<12pt&yoko> \setlength\textheight{39\Cvs}
1207 %<10pt&tate> \setlength\textheight{26\Cvs}
1208 %<11pt&tate> \setlength\textheight{26\Cvs}
1209 %<12pt&tate> \setlength\textheight{22\Cvs}
1212 %<yoko> \addtolength\textheight{\topskip}
1213 %<bk&yoko> \addtolength\textheight{\baselineskip}
1214 %<tate> \addtolength\textheight{\Cht}
1215 %<tate> \addtolength\textheight{\Cdp}
1220 %<10pt&!bk&yoko> \setlength\textheight{578\p@}
1221 %<10pt&bk&yoko> \setlength\textheight{554\p@}
1222 %<11pt&yoko> \setlength\textheight{580.4\p@}
1223 %<12pt&yoko> \setlength\textheight{586.5\p@}
1224 %<10pt&tate> \setlength\textheight{26\Cvs}
1225 %<11pt&tate> \setlength\textheight{25\Cvs}
1226 %<12pt&tate> \setlength\textheight{24\Cvs}
1233 % 2eモード:|a4j|や|b5j|のクラスオプションが指定された場合の設定:
1234 % 縦組では用紙サイズの70\%(book)か78\%(ariticle,report)、
1235 % 横組では70\%(book)か75\%(article,report)を版面の高さに設定します。
1238 %<tate&bk> \setlength\textheight{.75\paperwidth}
1239 %<tate&!bk> \setlength\textheight{.78\paperwidth}
1240 %<yoko&bk> \setlength\textheight{.70\paperheight}
1241 %<yoko&!bk> \setlength\textheight{.75\paperheight}
1246 %<tate> \setlength\@tempdima{\paperwidth}
1247 %<yoko> \setlength\@tempdima{\paperheight}
1248 \addtolength\@tempdima{-2in}
1249 %<yoko> \addtolength\@tempdima{-1.5in}
1250 \divide\@tempdima\baselineskip
1251 \@tempcnta\@tempdima
1252 \setlength\textheight{\@tempcnta\baselineskip}
1256 % 最後に、|\textheight|に|\topskip|の値を加えます。
1258 \addtolength\textheight{\topskip}
1259 \@settopoint\textheight
1263 % \subsubsection{マージン}
1265 % \begin{macro}{\topmargin}
1266 % |\topmargin|は、``印字可能領域''---用紙の上端から1インチ内側---%
1267 % の上端からヘッダ部分の上端までの距離です。
1274 \setlength\topmargin{-.3in}
1276 %<!bk> \setlength\topmargin{27\p@}
1277 %<10pt&bk> \setlength\topmargin{.75in}
1278 %<11pt&bk> \setlength\topmargin{.73in}
1279 %<12pt&bk> \setlength\topmargin{.73in}
1284 \ifnum\c@@paper=2 % A5
1285 \setlength\topmargin{.8in}
1286 \else % A4, B4, B5 and other
1287 \setlength\topmargin{32mm}
1290 \setlength\topmargin{32mm}
1292 \addtolength\topmargin{-1in}
1293 \addtolength\topmargin{-\headheight}
1294 \addtolength\topmargin{-\headsep}
1300 \setlength\topmargin{\paperheight}
1301 \addtolength\topmargin{-\headheight}
1302 \addtolength\topmargin{-\headsep}
1303 %<tate> \addtolength\topmargin{-\textwidth}
1304 %<yoko> \addtolength\topmargin{-\textheight}
1305 \addtolength\topmargin{-\footskip}
1307 % \changes{v1.1e}{1997/04/08}{横組クラスでの調整量を
1308 % -2.4インチから-2.0インチにした。}
1309 % \changes{v1.1j}{1998/02/03}{互換モード時のa5pのトップマージンを0.7in増加}
1312 \ifnum\c@@paper=2 % A5
1313 \addtolength\topmargin{-1.3in}
1315 \addtolength\topmargin{-2.0in}
1318 %<yoko> \addtolength\topmargin{-2.0in}
1319 %<tate> \addtolength\topmargin{-2.8in}
1322 % \changes{v1.1d}{1997/02/05}{\cs{tompargin}を半分にするのはアキ領域の計算後}
1323 % \changes{v1.1r}{1999/08/09}{\cs{if@stysize}フラグに限らず半分にする}
1325 \addtolength\topmargin{-.5\topmargin}
1327 \@settopoint\topmargin
1331 % \begin{macro}{\marginparsep}
1332 % \begin{macro}{\marginparpush}
1333 % |\marginparsep|は、本文と傍注の間にあけるスペースの幅です。
1335 % 縦組では本文の下(上)端と傍注の間になります。
1336 % |\marginparpush|は、傍注と傍注との間のスペースの幅です。
1339 \setlength\marginparsep{10\p@}
1341 %<tate> \setlength\marginparsep{15\p@}
1342 %<yoko> \setlength\marginparsep{10\p@}
1344 %<tate>\setlength\marginparpush{7\p@}
1346 %<10pt>\setlength\marginparpush{5\p@}
1347 %<11pt>\setlength\marginparpush{5\p@}
1348 %<12pt>\setlength\marginparpush{7\p@}
1354 % \begin{macro}{\oddsidemargin}
1355 % \begin{macro}{\evensidemargin}
1356 % \begin{macro}{\marginparwidth}
1357 % まず、互換モードでの長さを示します。
1362 %<tate> \setlength\oddsidemargin{0\p@}
1363 %<tate> \setlength\evensidemargin{0\p@}
1365 % 互換モード、横組、bookクラスの場合:
1369 %<10pt> \setlength\oddsidemargin {.5in}
1370 %<11pt> \setlength\oddsidemargin {.25in}
1371 %<12pt> \setlength\oddsidemargin {.25in}
1372 %<10pt> \setlength\evensidemargin {1.5in}
1373 %<11pt> \setlength\evensidemargin {1.25in}
1374 %<12pt> \setlength\evensidemargin {1.25in}
1375 %<10pt> \setlength\marginparwidth {.75in}
1376 %<11pt> \setlength\marginparwidth {1in}
1377 %<12pt> \setlength\marginparwidth {1in}
1380 % 互換モード、横組、reportとarticleクラスの場合:
1384 %<10pt> \setlength\oddsidemargin {44\p@}
1385 %<11pt> \setlength\oddsidemargin {36\p@}
1386 %<12pt> \setlength\oddsidemargin {21\p@}
1387 %<10pt> \setlength\evensidemargin {82\p@}
1388 %<11pt> \setlength\evensidemargin {74\p@}
1389 %<12pt> \setlength\evensidemargin {59\p@}
1390 %<10pt> \setlength\marginparwidth {107\p@}
1391 %<11pt> \setlength\marginparwidth {100\p@}
1392 %<12pt> \setlength\marginparwidth {85\p@}
1394 %<10pt> \setlength\oddsidemargin {60\p@}
1395 %<11pt> \setlength\oddsidemargin {54\p@}
1396 %<12pt> \setlength\oddsidemargin {39.5\p@}
1397 %<10pt> \setlength\evensidemargin {60\p@}
1398 %<11pt> \setlength\evensidemargin {54\p@}
1399 %<12pt> \setlength\evensidemargin {39.5\p@}
1400 %<10pt> \setlength\marginparwidth {90\p@}
1401 %<11pt> \setlength\marginparwidth {83\p@}
1402 %<12pt> \setlength\marginparwidth {68\p@}
1409 \setlength\oddsidemargin {30\p@}
1410 \setlength\evensidemargin {30\p@}
1411 \setlength\marginparwidth {48\p@}
1415 % 縦組、横組にかかわらず、スタイルオプション設定ではゼロです。
1416 % \changes{v1.0g}{1997/01/25}{\cs{oddsidemargin}, \cs{evensidemagin}:
1417 % 0pt if specified papersize at \cs{documentstyle} option.}
1421 \setlength\oddsidemargin{0\p@}
1422 \setlength\evensidemargin{0\p@}
1430 \setlength\@tempdima{\paperwidth}
1431 %<tate> \addtolength\@tempdima{-\textheight}
1432 %<yoko> \addtolength\@tempdima{-\textwidth}
1435 % |\oddsidemargin|を計算します。
1438 %<tate> \setlength\oddsidemargin{.6\@tempdima}
1439 %<yoko> \setlength\oddsidemargin{.4\@tempdima}
1441 \setlength\oddsidemargin{.5\@tempdima}
1443 \addtolength\oddsidemargin{-1in}
1445 % \changes{v1.1p}{1999/1/6}{\cs{oddsidemargin}のポイントへの変換を後ろに}
1446 % |\evensidemargin|を計算します。
1448 \setlength\evensidemargin{\paperwidth}
1449 \addtolength\evensidemargin{-2in}
1450 %<tate> \addtolength\evensidemargin{-\textheight}
1451 %<yoko> \addtolength\evensidemargin{-\textwidth}
1452 \addtolength\evensidemargin{-\oddsidemargin}
1453 \@settopoint\oddsidemargin % 1999.1.6
1454 \@settopoint\evensidemargin
1456 % |\marginparwidth|を計算します。
1457 % ここで、|\@tempdima|の値は、\linebreak
1458 % |\paperwidth| $-$ |\textwidth|です。
1459 % \changes{v1.1d}{1995/11/24}{typo: \cs{marginmarwidth} to \cs{marginparwidth}}
1463 \setlength\marginparwidth{.6\@tempdima}
1464 \addtolength\marginparwidth{-.4in}
1466 \setlength\marginparwidth{.5\@tempdima}
1467 \addtolength\marginparwidth{-.4in}
1469 \ifdim \marginparwidth >2in
1470 \setlength\marginparwidth{2in}
1478 \setlength\@tempdima{\paperheight}
1479 \addtolength\@tempdima{-\textwidth}
1480 \addtolength\@tempdima{-\topmargin}
1481 \addtolength\@tempdima{-\headheight}
1482 \addtolength\@tempdima{-\headsep}
1483 \addtolength\@tempdima{-\footskip}
1484 \setlength\marginparwidth{.5\@tempdima}
1486 \@settopoint\marginparwidth
1496 % \begin{macro}{\footnotesep}
1497 % |\footnotesep|は、それぞれの脚注の先頭に置かれる``支柱''の高さです。
1498 % このクラスでは、通常の|\footnotesize|の支柱と同じ長さですので、
1501 %<10pt>\setlength\footnotesep{6.65\p@}
1502 %<11pt>\setlength\footnotesep{7.7\p@}
1503 %<12pt>\setlength\footnotesep{8.4\p@}
1507 % \begin{macro}{\footins}
1508 % |\skip\footins|は、本文の最終行と最初の脚注との間の距離です。
1510 %<10pt>\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
1511 %<11pt>\setlength{\skip\footins}{10\p@ \@plus 4\p@ \@minus 2\p@}
1512 %<12pt>\setlength{\skip\footins}{10.8\p@ \@plus 4\p@ \@minus 2\p@}
1517 % すべてのフロートパラメータは、\LaTeX{}のカーネルでデフォルトが定義
1518 % されています。そのため、カウンタ以外のパラメータは|\renewcommand|で
1521 % \subsubsection{フロートパラメータ}
1523 % \begin{macro}{\floatsep}
1524 % \begin{macro}{\textfloatsep}
1525 % \begin{macro}{\intextsep}
1526 % フロートオブジェクトが本文のあるページに置かれるとき、
1527 % フロートとそのページにある別のオブジェクトの距離は、
1528 % これらのパラメータで制御されます。これらのパラメータは、一段組モードと
1529 % 二段組モードの段抜きでないフロートの両方で使われます。
1531 % |\floatsep|は、ページ上部あるいは下部のフロート間の距離です。
1533 % |\textfloatsep|は、ページ上部あるいは下部のフロートと本文との距離です。
1535 % |\intextsep|は、本文の途中に出力されるフロートと本文との距離です。
1538 \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1539 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1540 \setlength\intextsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1543 \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1544 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1545 \setlength\intextsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1548 \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 4\p@}
1549 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1550 \setlength\intextsep {14\p@ \@plus 4\p@ \@minus 4\p@}
1557 % \begin{macro}{\dblfloatsep}
1558 % \begin{macro}{\dbltextfloatsep}
1559 % 二段組モードで、|\textwidth|の幅を持つ、段抜きのフロートオブジェクトが
1560 % 本文と同じページに置かれるとき、本文とフロートとの距離は、
1561 % |\dblfloatsep|と|\dbltextfloatsep|によって制御されます。
1563 % |\dblfloatsep|は、ページ上部あるいは下部のフロートと本文との距離です。
1565 % |\dbltextfloatsep|は、ページ上部あるいは下部のフロート間の距離です。
1568 \setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1569 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1572 \setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
1573 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1576 \setlength\dblfloatsep {14\p@ \@plus 2\p@ \@minus 4\p@}
1577 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
1583 % \begin{macro}{\@fptop}
1584 % \begin{macro}{\@fpsep}
1585 % \begin{macro}{\@fpbot}
1586 % フロートオブジェクトが、独立したページに置かれるとき、
1587 % このページのレイアウトは、次のパラメータで制御されます。
1588 % これらのパラメータは、一段組モードか、二段組モードでの一段出力の
1589 % フロートオブジェクトに対して使われます。
1591 % ページ上部では、|\@fptop|の伸縮長が挿入されます。
1592 % ページ下部では、|\@fpbot|の伸縮長が挿入されます。
1593 % フロート間には|\@fpsep|が挿入されます。
1595 % なお、そのページを空白で満たすために、|\@fptop|と|\@fpbot|の
1596 % 少なくともどちらか一方に、|plus ...fil|を含めてください。
1599 \setlength\@fptop{0\p@ \@plus 1fil}
1600 \setlength\@fpsep{8\p@ \@plus 2fil}
1601 \setlength\@fpbot{0\p@ \@plus 1fil}
1604 \setlength\@fptop{0\p@ \@plus 1fil}
1605 \setlength\@fpsep{8\p@ \@plus 2fil}
1606 \setlength\@fpbot{0\p@ \@plus 1fil}
1609 \setlength\@fptop{0\p@ \@plus 1fil}
1610 \setlength\@fpsep{10\p@ \@plus 2fil}
1611 \setlength\@fpbot{0\p@ \@plus 1fil}
1618 % \begin{macro}{\@dblfptop}
1619 % \begin{macro}{\@dblfpsep}
1620 % \begin{macro}{\@dblfpbot}
1621 % 二段組モードでの二段抜きのフロートに対しては、
1625 \setlength\@dblfptop{0\p@ \@plus 1fil}
1626 \setlength\@dblfpsep{8\p@ \@plus 2fil}
1627 \setlength\@dblfpbot{0\p@ \@plus 1fil}
1630 \setlength\@dblfptop{0\p@ \@plus 1fil}
1631 \setlength\@dblfpsep{8\p@ \@plus 2fil}
1632 \setlength\@dblfpbot{0\p@ \@plus 1fil}
1635 \setlength\@dblfptop{0\p@ \@plus 1fil}
1636 \setlength\@dblfpsep{10\p@ \@plus 2fil}
1637 \setlength\@dblfpbot{0\p@ \@plus 1fil}
1645 % \subsubsection{フロートオブジェクトの上限値}
1647 % \begin{macro}{\c@topnumber}
1648 % \Lcount{topnumber}は、本文ページの上部に出力できるフロートの最大数です。
1650 %<*article|report|book>
1651 \setcounter{topnumber}{2}
1655 % \begin{macro}{\c@bottomnumber}
1656 % \Lcount{bottomnumber}は、本文ページの下部に出力できるフロートの最大数です。
1658 \setcounter{bottomnumber}{1}
1662 % \begin{macro}{\c@totalnumber}
1663 % \Lcount{totalnumber}は、本文ページに出力できるフロートの最大数です。
1665 \setcounter{totalnumber}{3}
1669 % \begin{macro}{\c@dbltopnumber}
1670 % \Lcount{dbltopnumber}は、二段組時における、本文ページの上部に出力できる
1673 \setcounter{dbltopnumber}{2}
1677 % \begin{macro}{\topfraction}
1678 % これは、本文ページの上部に出力されるフロートが占有できる最大の割り合いです。
1680 \renewcommand{\topfraction}{.7}
1684 % \begin{macro}{\bottomfraction}
1685 % これは、本文ページの下部に出力されるフロートが占有できる最大の割り合いです。
1687 \renewcommand{\bottomfraction}{.3}
1691 % \begin{macro}{\textfraction}
1692 % これは、本文ページに最低限、入らなくてはならない本文の割り合いです。
1694 \renewcommand{\textfraction}{.2}
1698 % \begin{macro}{\floatpagefraction}
1699 % これは、フロートだけのページで最低限、入らなくてはならない
1702 \renewcommand{\floatpagefraction}{.5}
1706 % \begin{macro}{\dbltopfraction}
1707 % これは、2段組時における本文ページに、
1708 % 2段抜きのフロートが占めることができる最大の割り合いです。
1710 \renewcommand{\dbltopfraction}{.7}
1714 % \begin{macro}{\dblfloatpagefraction}
1715 % これは、2段組時におけるフロートだけのページに最低限、
1716 % 入らなくてはならない2段抜きのフロートの割り合いです。
1718 \renewcommand{\dblfloatpagefraction}{.5}
1724 % \section{ページスタイル}\label{sec:pagestyle}
1725 % つぎの6種類のページスタイルを使用できます。
1726 % \pstyle{empty}は\file{latex.dtx}で定義されています。
1728 % \begin{tabular}{ll}
1729 % empty & ヘッダにもフッタにも出力しない\\
1730 % plain & フッタにページ番号のみを出力する\\
1731 % headnombre & ヘッダにページ番号のみを出力する\\
1732 % footnombre & フッタにページ番号のみを出力する\\
1733 % headings & ヘッダに見出しとページ番号を出力する\\
1734 % bothstyle & ヘッダに見出し、フッタにページ番号を出力する\\
1737 % ページスタイル\pstyle{foo}は、|\ps@foo|コマンドとして定義されます。
1739 % \begin{macro}{\@evenhead}
1740 % \begin{macro}{\@oddhead}
1741 % \begin{macro}{\@evenfoot}
1742 % \begin{macro}{\@oddfoot}
1743 % これらは|\ps@...|から呼び出され、ヘッダとフッタを出力するマクロです。
1745 % \DeleteShortVerb{\|}
1746 % \begin{tabular}{ll}
1747 % |\@oddhead| & 奇数ページのヘッダを出力\\
1748 % |\@oddfoot| & 奇数ページのフッタを出力\\
1749 % |\@evenhead| & 偶数ページのヘッダを出力\\
1750 % |\@evenfoot| & 偶数ページのフッタを出力\\
1752 % \MakeShortVerb{\|}
1754 % これらの内容は、横組の場合は|\textwidth|の幅を持つ|\hbox|に入れられ、
1755 % 縦組の場合は|\textheight|の幅を持つ|\hbox|に入れられます。
1761 % \subsection{マークについて}
1762 % ヘッダに入る章番号や章見出しは、見出しコマンドで実行されるマークコマンドで
1763 % 決定されます。ここでは、実行されるマークコマンドの定義を行なっています。
1764 % これらのマークコマンドは、\TeX{}の|\mark|機能を用いて、
1765 % `left'と`right'の2種類のマークを生成するように定義しています。
1768 % |\markboth{|\meta{LEFT}|}{|\meta{RIGHT}|}|: 両方のマークに追加します。
1770 % |\markright{|\meta{RIGHT}|}|: `右'マークに追加します。
1772 % |\leftmark|: |\@oddhead|, |\@oddfoot|, |\@evenhead|, |\@evenfoot|マクロで
1773 % 使われ、現在の``左''マークを出力します。
1774 % |\leftmark|は\TeX{}の|\botmark|コマンドのような働きをします。
1777 % |\rightmark|: |\@oddhead|, |\@oddfoot|, |\@evenhead|, |\@evenfoot|マクロで
1778 % 使われ、現在の``右''マークを出力します。
1779 % |\rightmark|は\TeX{}の|\firstmark|コマンドのような働きをします。
1783 % マークコマンドの動作は、左マークの`範囲内の'右マークのために
1784 % 合理的になっています。たとえば、左マークは|\chapter|コマンドによって
1785 % 変更されます。そして右マークは|\section|コマンドによって変更されます。
1786 % しかし、同一ページに複数の|\markboth|コマンドが現れたとき、
1789 % |\tableofcontents|のようなコマンドは、|\@mkboth|コマンドを用いて、
1790 % あるページスタイルの中でマークを設定しなくてはなりません。
1791 % |\@mkboth|は、|\ps@...|コマンドによって、|\markboth|(ヘッダを設定する)か、
1792 % |\@gobbletwo|(何もしない)に|\let|されます。
1794 % \changes{v1.0a}{1995/08/30}{柱の書体がノンブルに影響するバグの修正}
1796 % \subsection{plainページスタイル}
1797 % \pstyle{jpl@in}に|\let|するために、ここで定義をします。
1799 % \begin{macro}{\ps@plain}
1801 \def\ps@plain{\let\@mkboth\@gobbletwo
1802 \let\ps@jpl@in\ps@plain
1803 \let\@oddhead\@empty
1804 \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
1805 \let\@evenhead\@empty
1806 \let\@evenfoot\@oddfoot}
1810 % \subsection{jpl@inページスタイル}
1811 % \changes{v1.0d}{1996/02/29}{\pstyle{jpl@in}の初期値を定義}
1813 % \pstyle{jpl@in}スタイルは、クラスファイル内部で使用するものです。
1814 % \LaTeX{}では、bookクラスを\pstyle{headings}としています。
1815 % しかし、\cs{tableofcontnts}コマンドの内部では\pstyle{plain}として
1816 % 設定されるため、一つの文書でのページ番号の位置が上下に出力される
1819 % そこで、ここでは\cs{tableofcontents}や\cs{theindex}のページスタイル
1820 % を\pstyle{jpl@in}にし、実際に出力される形式は、ほかのページスタイル
1821 % で|\let|をしています。したがって、\pstyle{headings}のとき、目次ページの
1822 % ページ番号はヘッダ位置に出力され、\pstyle{plain}のときには、フッタ位置に
1825 % ここで、定義をしているのは、その初期値です。
1827 % \begin{macro}{\ps@jpl@in}
1829 \let\ps@jpl@in\ps@plain
1833 % \subsection{headnombreページスタイル}
1835 % \begin{macro}{\ps@headnombre}
1836 % \pstyle{headnombre}スタイルは、ヘッダにページ番号のみを出力します。
1838 \def\ps@headnombre{\let\@mkboth\@gobbletwo
1839 \let\ps@jpl@in\ps@headnombre
1840 %<yoko> \def\@evenhead{\thepage\hfil}%
1841 %<yoko> \def\@oddhead{\hfil\thepage}%
1842 %<tate> \def\@evenhead{\hfil\thepage}%
1843 %<tate> \def\@oddhead{\thepage\hfil}%
1844 \let\@oddfoot\@empty\let\@evenfoot\@empty}
1848 % \subsection{footnombreページスタイル}
1850 % \begin{macro}{\ps@footnombre}
1851 % \pstyle{footnombre}スタイルは、フッタにページ番号のみを出力します。
1853 \def\ps@footnombre{\let\@mkboth\@gobbletwo
1854 \let\ps@jpl@in\ps@footnombre
1855 %<yoko> \def\@evenfoot{\thepage\hfil}%
1856 %<yoko> \def\@oddfoot{\hfil\thepage}%
1857 %<tate> \def\@evenfoot{\hfil\thepage}%
1858 %<tate> \def\@oddfoot{\thepage\hfil}%
1859 \let\@oddhead\@empty\let\@evenhead\@empty}
1863 % \subsection{headingsスタイル}
1864 % \pstyle{headings}スタイルは、ヘッダに見出しとページ番号を出力します。
1866 % \begin{macro}{\ps@headings}
1867 % このスタイルは、両面印刷と片面印刷とで形式が異なります。
1871 % 横組の場合は、奇数ページが右に、偶数ページが左にきます。
1872 % 縦組の場合は、奇数ページが左に、偶数ページが右にきます。
1874 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
1875 \let\@oddfoot\@empty\let\@evenfoot\@empty
1876 %<yoko> \def\@evenhead{\thepage\hfil\leftmark}%
1877 %<yoko> \def\@oddhead{{\rightmark}\hfil\thepage}%
1878 %<tate> \def\@evenhead{{\leftmark}\hfil\thepage}%
1879 %<tate> \def\@oddhead{\thepage\hfil\rightmark}%
1880 \let\@mkboth\markboth
1882 \def\sectionmark##1{\markboth{%
1883 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1885 \def\subsectionmark##1{\markright{%
1886 \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1\zw\fi
1890 \def\chaptermark##1{\markboth{%
1891 \ifnum \c@secnumdepth >\m@ne
1892 %<book> \if@mainmatter
1893 \@chapapp\thechapter\@chappos\hskip1\zw
1897 \def\sectionmark##1{\markright{%
1898 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1904 % \changes{v1.1g}{1997/08/25}{片面印刷のとき、sectionレベルが出力されない
1907 \else % if not twoside
1908 \def\ps@headings{\let\ps@jpl@in\ps@headnombre
1909 \let\@oddfoot\@empty
1910 %<yoko> \def\@oddhead{{\rightmark}\hfil\thepage}%
1911 %<tate> \def\@oddhead{\thepage\hfil\rightmark}%
1912 \let\@mkboth\markboth
1914 \def\sectionmark##1{\markright{%
1915 \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1\zw\fi
1919 \def\chaptermark##1{\markright{%
1920 \ifnum \c@secnumdepth >\m@ne
1921 %<book> \if@mainmatter
1922 \@chapapp\thechapter\@chappos\hskip1\zw
1932 % \subsection{bothstyleスタイル}
1934 % \begin{macro}{\ps@bothstyle}
1935 % \pstyle{bothstyle}スタイルは、
1936 % ヘッダに見出しを、フッタにページ番号を出力します。
1938 % このスタイルは、両面印刷と片面印刷とで形式が異なります。
1939 % \changes{v1.0d}{1995/08/23}{横組のevenfootが中央揃えになっていたのを修正}
1940 % \changes{v1.0d}{1996/03/05}{横組で偶数ページと奇数ページの設定が逆なのを修正}
1943 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
1945 \def\@evenhead{\leftmark\hfil}% right page
1946 \def\@evenfoot{\thepage\hfil}% right page
1947 \def\@oddhead{\hfil\rightmark}% left page
1948 \def\@oddfoot{\hfil\thepage}% left page
1951 \def\@evenhead{\hfil\leftmark}% right page
1952 \def\@evenfoot{\hfil\thepage}% right page
1953 \def\@oddhead{\rightmark\hfil}% left page
1954 \def\@oddfoot{\thepage\hfil}% left page
1956 \let\@mkboth\markboth
1958 \def\sectionmark##1{\markboth{%
1959 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1961 \def\subsectionmark##1{\markright{%
1962 \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1\zw\fi
1966 \def\chaptermark##1{\markboth{%
1967 \ifnum \c@secnumdepth >\m@ne
1968 %<book> \if@mainmatter
1969 \@chapapp\thechapter\@chappos\hskip1\zw
1973 \def\sectionmark##1{\markright{%
1974 \ifnum \c@secnumdepth >\z@ \thesection.\hskip1\zw\fi
1979 % \changes{v1.1g}{1997/08/25}{片面印刷のとき、sectionレベルが出力されない
1981 % \changes{v1.1i}{1997/12/12}{report, bookクラスで片面印刷時に、
1982 % bothstyleスタイルにすると、コンパイルエラーになるのを修正}
1984 \else % if one column
1985 \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
1986 %<yoko> \def\@oddhead{\hfil\rightmark}%
1987 %<yoko> \def\@oddfoot{\hfil\thepage}%
1988 %<tate> \def\@oddhead{\rightmark\hfil}%
1989 %<tate> \def\@oddfoot{\thepage\hfil}%
1990 \let\@mkboth\markboth
1992 \def\sectionmark##1{\markright{%
1993 \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1\zw\fi
1997 \def\chaptermark##1{\markright{%
1998 \ifnum \c@secnumdepth >\m@ne
1999 %<book> \if@mainmatter
2000 \@chapapp\thechapter\@chappos\hskip1\zw
2010 % \subsection{myheadingスタイル}
2012 % \begin{macro}{\ps@myheadings}
2013 % \changes{v1.0d}{1995/08/23}{横組モードの左右が逆であったのを修正}
2014 % \pstyle{myheadings}ページスタイルは簡潔に定義されています。
2015 % ユーザがページスタイルを設計するときのヒナ型として使用することができます。
2017 \def\ps@myheadings{\let\ps@jpl@in\ps@plain%
2018 \let\@oddfoot\@empty\let\@evenfoot\@empty
2019 %<yoko> \def\@evenhead{\thepage\hfil\leftmark}%
2020 %<yoko> \def\@oddhead{{\rightmark}\hfil\thepage}%
2021 %<tate> \def\@evenhead{{\leftmark}\hfil\thepage}%
2022 %<tate> \def\@oddhead{\thepage\hfil\rightmark}%
2023 \let\@mkboth\@gobbletwo
2024 %<!article> \let\chaptermark\@gobble
2025 \let\sectionmark\@gobble
2026 %<article> \let\subsectionmark\@gobble
2034 % \subsubsection{表題}
2036 % \begin{macro}{\title}
2037 % \begin{macro}{\autor}
2038 % \begin{macro}{\date}
2039 % 文書のタイトル、著者、日付の情報のための、
2040 % これらの3つのコマンドは\file{latex.dtx}で提供されています。
2041 % これらのコマンドは次のように定義されています。
2043 %\newcommand*{\title}[1]{\gdef\@title{#1}}
2044 %\newcommand*{\author}[1]{\gdef\@author{#1}}
2045 %\newcommand*{\date}[1]{\gdef\@date{#1}}
2047 % |\date|マクロのデフォルトは、今日の日付です。
2055 % \begin{environment}{titlepage}
2056 % 通常の環境では、ページの最初と最後を除き、タイトルページ環境は何もしません。
2057 % また、ページ番号の出力を抑制します。レポートスタイルでは、
2058 % ページ番号を1にリセットし、そして最後で1に戻します。
2059 % 互換モードでは、ページ番号はゼロに設定されますが、
2060 % 右起こしページ用のページパラメータでは誤った結果になります。
2061 % 二段組スタイルでも一段組のページが作られます。
2066 \newenvironment{titlepage}
2068 %<book> \cleardoublepage
2069 \if@twocolumn\@restonecoltrue\onecolumn
2070 \else\@restonecolfalse\newpage\fi
2071 \thispagestyle{empty}%
2072 \setcounter{page}\z@
2074 {\if@restonecol\twocolumn\else\newpage\fi
2078 % そして、\LaTeX{}ネイティブのための定義です。
2081 \newenvironment{titlepage}
2083 %<book> \cleardoublepage
2085 \@restonecoltrue\onecolumn
2087 \@restonecolfalse\newpage
2089 \thispagestyle{empty}%
2090 \setcounter{page}\@ne
2092 {\if@restonecol\twocolumn \else \newpage \fi
2094 % 二段組モードでなければ、タイトルページの直後のページのページ番号も1に
2098 \setcounter{page}\@ne
2105 % \begin{macro}{\maketitle}
2106 % このコマンドは、表題を作成し、出力します。
2107 % 表題ページを独立させるかどうかによって定義が異なります。
2108 % reportとbookクラスのデフォルトは独立した表題です。
2109 % articleクラスはオプションで独立させることができます。
2111 % \begin{macro}{\p@thanks}
2112 % 縦組のときは、|\thanks|コマンドを|\p@thanks|に|\let|します。
2113 % このコマンドは|\footnotetext|を使わず、直接、文字を|\@thanks|に格納
2116 \def\p@thanks#1{\footnotemark
2117 \protected@xdef\@thanks{\@thanks
2118 \protect{\noindent$\m@th^\thefootnote$~#1\protect\par}}}
2124 \newcommand{\maketitle}{\begin{titlepage}%
2125 \let\footnotesize\small
2126 \let\footnoterule\relax
2127 %<tate> \let\thanks\p@thanks
2128 \let\footnote\thanks
2130 % \changes{v1.1d}{1997/02/12}{縦組クラスの表紙を縦書きにするようにした}
2132 %<tate> \vbox to\textheight\bgroup\tate\hsize\textwidth
2136 {\LARGE \@title \par}%
2140 \begin{tabular}[t]{c}%
2144 {\large \@date \par}% % Set date in \large size.
2146 %<tate> \vfil{\centering\@thanks}\vfil\null
2148 %<yoko> \@thanks\vfil\null
2151 % \Lcount{footnote}カウンタをリセットし、|\thanks|と|\maketitle|コマンドを
2152 % 無効にし、いくつかの内部マクロを空にして格納領域を節約します。
2154 \setcounter{footnote}{0}%
2155 \global\let\thanks\relax
2156 \global\let\maketitle\relax
2157 \global\let\p@thanks\relax
2158 \global\let\@thanks\@empty
2159 \global\let\@author\@empty
2160 \global\let\@date\@empty
2161 \global\let\@title\@empty
2163 % タイトルが組版されたら、|\title|コマンドなどの宣言を無効にできます。
2164 % |\and|の定義は、|\author|の引数でのみ使用しますので、破棄します。
2166 \global\let\title\relax
2167 \global\let\author\relax
2168 \global\let\date\relax
2169 \global\let\and\relax
2172 \newcommand{\maketitle}{\par
2174 \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
2175 \def\@makefnmark{\hbox{\unless\ifnum\ltjgetparameter{direction}=3 $\m@th^{\@thefnmark}$
2176 \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
2178 \long\def\@makefntext##1{\parindent 1\zw\noindent
2179 \hbox to 2\zw{\hss\@makefnmark}##1}%
2182 \long\def\@makefntext##1{\parindent 1em\noindent
2183 \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
2186 \ifnum \col@number=\@ne \@maketitle
2187 \else \twocolumn[\@maketitle]%
2191 \global\@topnum\z@ % Prevents figures from going at top of page.
2194 \thispagestyle{jpl@in}\@thanks
2196 % ここでグループを閉じ、\Lcount{footnote}カウンタをリセットし、
2197 % |\thanks|, |\maketitle|, |\@maketitle|を無効にし、
2198 % いくつかの内部マクロを空にして格納領域を節約します。
2201 \setcounter{footnote}{0}%
2202 \global\let\thanks\relax
2203 \global\let\maketitle\relax
2204 \global\let\p@thanks\relax
2205 \global\let\@thanks\@empty
2206 \global\let\@author\@empty
2207 \global\let\@date\@empty
2208 \global\let\@title\@empty
2209 \global\let\title\relax
2210 \global\let\author\relax
2211 \global\let\date\relax
2212 \global\let\and\relax
2217 % \begin{macro}{\@maketitle}
2218 % 独立した表題ページを作らない場合の、表題の出力形式です。
2224 %<yoko> \let\footnote\thanks
2225 %<tate> \let\footnote\p@thanks
2226 {\LARGE \@title \par}%
2230 \begin{tabular}[t]{c}%
2241 % \subsubsection{概要}
2243 % \begin{environment}{abstract}
2244 % 要約文のための環境です。bookクラスでは使えません。
2245 % reportスタイルと、|titlepage|オプションを指定したarticleスタイルでは、
2250 \newenvironment{abstract}{%
2253 \@beginparpenalty\@lowpenalty
2255 {\bfseries\abstractname}%
2258 {\par\vfil\null\endtitlepage}
2260 \newenvironment{abstract}{%
2262 \section*{\abstractname}%
2266 {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
2269 \fi}{\if@twocolumn\else\endquotation\fi}
2278 % \subsection{マークコマンド}
2280 % \begin{macro}{\chaptermark}
2281 % \begin{macro}{\sectionmark}
2282 % \begin{macro}{\subsectionmark}
2283 % \begin{macro}{\subsubsectionmark}
2284 % \begin{macro}{\paragraphmark}
2285 % \begin{macro}{\subparagraphmark}
2286 % |\...mark|コマンドを初期化します。これらのコマンドはページスタイルの
2287 % 定義で使われます(第\ref{sec:pagestyle}節参照)。
2288 % これらのたいていのコマンドは\file{latex.dtx}ですでに定義されています。
2290 %<!article>\newcommand*{\chaptermark}[1]{}
2291 %\newcommand*{\sectionmark}[1]{}
2292 %\newcommand*{\subsectionmark}[1]{}
2293 %\newcommand*{\subsubsectionmark}[1]{}
2294 %\newcommand*{\paragraph}[1]{}
2295 %\newcommand*{\subparagraph}[1]{}
2304 % \subsubsection{カウンタの定義}
2306 % \begin{macro}{\c@secnumdepth}
2307 % \Lcount{secnumdepth}には、番号を付ける、見出しコマンドのレベルを設定します。
2309 %<article>\setcounter{secnumdepth}{3}
2310 %<!article>\setcounter{secnumdepth}{2}
2314 % \begin{macro}{\c@chapter}
2315 % \begin{macro}{\c@section}
2316 % \begin{macro}{\c@subsection}
2317 % \begin{macro}{\c@subsubsection}
2318 % \begin{macro}{\c@paragraph}
2319 % \begin{macro}{\c@subparagraph}
2320 % これらのカウンタは見出し番号に使われます。
2321 % 最初の引数は、二番目の引数が増加するたびにリセットされます。
2322 % 二番目のカウンタはすでに定義されているものでなくてはいけません。
2326 \newcounter{chapter}
2327 \newcounter{section}[chapter]
2329 %<article>\newcounter{section}
2330 \newcounter{subsection}[section]
2331 \newcounter{subsubsection}[subsection]
2332 \newcounter{paragraph}[subsubsection]
2333 \newcounter{subparagraph}[paragraph]
2342 % \begin{macro}{\thepart}
2343 % \begin{macro}{\thechapter}
2344 % \begin{macro}{\thesection}
2345 % \begin{macro}{\thesubsection}
2346 % \begin{macro}{\thesubsubsection}
2347 % \begin{macro}{\theparagraph}
2348 % \begin{macro}{\thesubparagraph}
2349 % |\theCTR|が実際に出力される形式の定義です。
2351 % |\arabic{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2354 % |\roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2357 % |\Roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2360 % |\alph{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2361 % $1=$~a, $2=$~b のようにして出力します。
2363 % |\Roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2364 % $1=$~A, $2=$~B のようにして出力します。
2366 % |\kansuji{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の値を
2369 % |\rensuji{|\meta{obj}|}|は、\meta{obj}を横に並べて出力します。
2370 % したがって、横組のときには、何も影響しません。
2374 \renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
2375 %<article>\renewcommand{\thesection}{\rensuji{\@arabic\c@section}}
2377 \renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
2378 \renewcommand{\thesection}{\thechapter・\rensuji{\@arabic\c@section}}
2380 \renewcommand{\thesubsection}{\thesection・\rensuji{\@arabic\c@subsection}}
2381 \renewcommand{\thesubsubsection}{%
2382 \thesubsection・\rensuji{\@arabic\c@subsubsection}}
2383 \renewcommand{\theparagraph}{%
2384 \thesubsubsection・\rensuji{\@arabic\c@paragraph}}
2385 \renewcommand{\thesubparagraph}{%
2386 \theparagraph・\rensuji{\@arabic\c@subparagraph}}
2389 \renewcommand{\thepart}{\@Roman\c@part}
2390 %<article>\renewcommand{\thesection}{\@arabic\c@section}
2392 \renewcommand{\thechapter}{\@arabic\c@chapter}
2393 \renewcommand{\thesection}{\thechapter.\@arabic\c@section}
2395 \renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
2396 \renewcommand{\thesubsubsection}{%
2397 \thesubsection.\@arabic\c@subsubsection}
2398 \renewcommand{\theparagraph}{%
2399 \thesubsubsection.\@arabic\c@paragraph}
2400 \renewcommand{\thesubparagraph}{%
2401 \theparagraph.\@arabic\c@subparagraph}
2412 % \begin{macro}{\@chapapp}
2413 % \begin{macro}{\@chappos}
2414 % |\@chapapp|の初期値は`|\prechaptername|'です。
2416 % |\@chappos|の初期値は`|\postchaptername|'です。
2418 % |\appendix|コマンドは|\@chapapp|を`|\appendixname|'に、
2419 % |\@chappos|を空に再定義します。
2422 \newcommand{\@chapapp}{\prechaptername}
2423 \newcommand{\@chappos}{\postchaptername}
2429 % \subsubsection{前付け、本文、後付け}
2431 % \begin{macro}{\frontmatter}
2432 % \begin{macro}{\mainmatter}
2433 % \begin{macro}{\backmatter}
2434 % \changes{v1.1}{1997/01/15}{\cs{frontmatter}, \cs{mainmatter}, \cs{backmatter}
2436 % 一冊の本は論理的に3つに分割されます。
2437 % 表題や目次や「はじめに」あるいは権利などの前付け、
2438 % そして本文、それから用語集や索引や奥付けなどの後付けです。
2441 \newcommand\frontmatter{%
2442 \if@openright \cleardoublepage \else \clearpage \fi
2443 \@mainmatterfalse\pagenumbering{roman}}
2444 \newcommand{\mainmatter}{%
2445 \if@openright \cleardoublepage \else \clearpage \fi
2446 \@mainmattertrue\pagenumbering{arabic}}
2447 \newcommand{\backmatter}{%
2448 \if@openright \cleardoublepage \else \clearpage \fi
2456 % \subsubsection{ボックスの組み立て}
2457 % クラスファイル定義の、この部分では、|\@startsection|と|\secdef|の
2458 % 二つの内部マクロを使います。これらの構文を次に示します。
2460 % |\@startsection|マクロは6つの引数と1つのオプション引数`*'を取ります。
2462 % |\@startsection|\meta{name}\meta{level}\meta{indent}^^A
2463 % \meta{beforeskip}\meta{afterskip}\meta{style}
2465 % \null\hphantom{\bslash @startsection}^^A
2466 % |[|\meta{altheading}|]|\meta{heading}
2468 % それぞれの引数の意味は、次のとおりです。
2470 % \begin{description}
2471 % \item[\meta{name}] レベルコマンドの名前です(例:section)。
2472 % \item[\meta{level}] 見出しの深さを示す数値です(chapter=1, section=2,
2473 % $\ldots$)。``\meta{level}$<=$カウンタ\Lcount{secnumdepth}の値''のとき、
2475 % \item[\meta{indent}] 見出しに対する、左マージンからのインデント量です。
2476 % \item[\meta{beforeskip}] 見出しの上に置かれる空白の絶対値です。
2477 % 負の場合は、見出しに続くテキストのインデントを抑制します。
2478 % \item[\meta{afterskip}] 正のとき、見出しの後の垂直方向のスペースとなります。
2479 % 負の場合は、見出しの後の水平方向のスペースとなります。
2480 % \item[\meta{style}] 見出しのスタイルを設定するコマンドです。
2481 % \item[\meta{$*$}] 見出し番号を付けないとき、対応するカウンタは増加します。
2482 % \item[\meta{heading}] 新しい見出しの文字列です。
2485 % 見出しコマンドは通常、|\@startsection|と6つの引数で定義されています。
2488 % 見出しコマンドを|\@startsection|を用いないで定義するときに使います。
2489 % このマクロは、2つの引数を持ちます。
2491 % |\secdef|\meta{unstarcmds}\meta{starcmds}
2493 % \begin{description}
2494 % \item[\meta{unstarcmds}] 見出しコマンドの普通の形式で使われます。
2495 % \item[\meta{starcmds}] $*$形式の見出しコマンドで使われます。
2498 % |\secdef|は次のようにして使うことができます。
2500 % \def\chapter {... \secdef \CMDA \CMDB }
2501 % \def\CMDA [#1]#2{....} % \chapter[...]{...} の定義
2502 % \def\CMDB #1{....} % \chapter*{...} の定義
2506 % \subsubsection{partレベル}
2508 % \begin{macro}{\part}
2509 % このコマンドは、新しいパート(部)をはじめます。
2511 % articleクラスの場合は、簡単です。
2513 % 新しい段落を開始し、小さな空白を入れ、段落後のインデントをしないようにし、
2517 \newcommand{\part}{\par\addvspace{4ex}%
2519 \secdef\@part\@spart}
2522 % reportとbookスタイルの場合は、少し複雑です。
2524 % まず、右ページからはじまるように改ページをします。
2525 % そして、部扉のページスタイルを\pstyle{empty}にします。
2526 % 2段組の場合でも、1段組で作成しますが、後ほど2段組に戻すために、
2527 % |\@restonecol|スイッチを使います。
2528 % \changes{v1.1}{1997/01/15}{\cs{part}を\LaTeX\ の定義に修正}
2531 \newcommand{\part}{%
2532 \if@openright \cleardoublepage \else \clearpage \fi
2533 \thispagestyle{empty}%
2534 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
2536 \secdef\@part\@spart}
2541 % \begin{macro}{\@part}
2542 % このマクロが実際に部レベルの見出しを作成します。
2543 % このマクロも文書クラスによって定義が異なります。
2545 % articleクラスの場合は、\Lcount{secnumdepth}が$-1$よりも大きいとき、
2546 % 見出し番号を付けます。このカウンタが$-1$以下の場合には付けません。
2550 \ifnum \c@secnumdepth >\m@ne
2551 \refstepcounter{part}%
2552 \addcontentsline{toc}{part}{%
2553 \prepartname\thepart\postpartname\hspace{1\zw}#1}%
2555 \addcontentsline{toc}{part}{#1}%
2558 {\parindent\z@\raggedright
2559 \interlinepenalty\@M\reset@font
2560 \ifnum \c@secnumdepth >\m@ne
2561 \Large\bfseries\prepartname\thepart\postpartname
2564 \huge\bfseries#2\par}%
2565 \nobreak\vskip3ex\@afterheading}
2569 % reportとbookクラスの場合は、\Lcount{secnumdepth}が$-2$よりも大きいときに、
2570 % 見出し番号を付けます。$-2$以下では付けません。
2575 \ifnum \c@secnumdepth >-2\relax
2576 \refstepcounter{part}%
2577 \addcontentsline{toc}{part}{%
2578 \prepartname\thepart\postpartname\hspace{1em}#1}%
2580 \addcontentsline{toc}{part}{#1}%
2584 \interlinepenalty\@M\reset@font
2585 \ifnum \c@secnumdepth >-2\relax
2586 \huge\bfseries\prepartname\thepart\postpartname
2589 \Huge\bfseries#2\par}%
2595 % \begin{macro}{\@spart}
2596 % このマクロは、番号を付けないときの体裁です。
2600 \parindent\z@\raggedright
2601 \interlinepenalty\@M\reset@font
2602 \huge\bfseries#1\par}%
2603 \nobreak\vskip3ex\@afterheading}
2606 % \changes{v1.1k}{1998/03/23}{reportとbookクラスで番号を付けない見出しの
2607 % ペナルティが\cs{M@}だったのを\cs{@M}に修正}
2612 \interlinepenalty\@M\reset@font
2613 \Huge\bfseries#1\par}%
2619 % \begin{macro}{\@endpart}
2620 % |\@part|と|\@spart|の最後で実行されるマクロです。
2621 % 両面印刷モードのときは、白ページを追加します。
2622 % 二段組モードのときには、これ以降のページを二段組に戻します。
2625 \def\@endpart{\vfil\newpage
2626 \if@twoside\null\thispagestyle{empty}\newpage\fi
2628 % 二段組文書のとき、スイッチを二段組モードに戻す必要があります。
2630 \if@tempswa\twocolumn\fi}
2635 % \subsubsection{chapterレベル}
2637 % \begin{macro}{chapter}
2638 % 章レベルは、必ずページの先頭から開始します。
2639 % |openright|オプションが指定されている場合は、右ページからはじまる
2640 % ように|\cleardoublepage|を呼び出します。
2641 % そうでなければ、|\clearpage|を呼び出します。
2642 % なお、縦組の場合でも右ページからはじまるように、
2643 % フォーマットファイルで|\clerdoublepage|が定義されています。
2645 % 章見出しが出力されるページのスタイルは、\pstyle{jpl@in}になります。
2646 % \pstyle{jpl@in}は、\pstyle{headnomble}か\pstyle{footnomble}のいずれかです。
2647 % 詳細は、第\ref{sec:pagestyle}節を参照してください。
2649 % また、|\@topnum|をゼロにして、
2650 % 章見出しの上にトップフロートが置かれないようにしています。
2653 \newcommand{\chapter}{%
2654 \if@openright\cleardoublepage\else\clearpage\fi
2655 \thispagestyle{jpl@in}%
2658 \secdef\@chapter\@schapter}
2662 % \begin{macro}{\@chapter}
2663 % このマクロは、章見出しに番号を付けるときに呼び出されます。
2664 % \Lcount{secnumdepth}が$-1$よりも大きく、
2665 % |\@mainmatter|が真(bookクラスの場合)のときに、番号を出力します。
2667 \def\@chapter[#1]#2{%
2668 \ifnum \c@secnumdepth >\m@ne
2669 %<book> \if@mainmatter
2670 \refstepcounter{chapter}%
2671 \typeout{\@chapapp\space\thechapter\space\@chappos}%
2672 \addcontentsline{toc}{chapter}%
2673 {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
2674 %<book> \else\addcontentsline{toc}{chapter}{#1}\fi
2676 \addcontentsline{toc}{chapter}{#1}%
2679 \addtocontents{lof}{\protect\addvspace{10\p@}}%
2680 \addtocontents{lot}{\protect\addvspace{10\p@}}%
2681 \@makechapterhead{#2}\@afterheading}
2685 % \begin{macro}{\@makechapterhead}
2686 % このマクロが実際に章見出しを組み立てます。
2687 % \changes{v1.1o}{1998/12/24}{secnumdepthカウンタを$-1$以下にすると、
2688 % 見出し文字列も消えてしまうのを修正}
2689 % \changes{v1.2}{2001/09/04}{\cs{chapter}の出力位置がアスタリスク形式と
2690 % そうでないときと違うのを修正(ありがとう、鈴木@津さん)}
2692 \def\@makechapterhead#1{\hbox{}%
2696 \reset@font\huge\bfseries
2698 \ifnum \c@secnumdepth >\m@ne
2699 \setlength\@tempdima{\linewidth}%
2700 %<book> \if@mainmatter
2701 \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1\zw}%
2702 \addtolength\@tempdima{-\wd\z@}%
2705 \vtop{\hsize\@tempdima#1}%
2708 \fi}\nobreak\vskip3\Cvs}
2712 % \begin{macro}{\@schapter}
2713 % このマクロは、章見出しに番号を付けないときに呼び出されます。
2716 %<article> \if@twocolumn\@topnewpage[\@makeschapterhead{#1}]\else
2717 \@makeschapterhead{#1}\@afterheading
2723 % \begin{macro}{\@makeschapterhead}
2725 % \changes{v1.2}{2001/09/04}{\cs{chapter}の出力位置がアスタリスク形式と
2726 % そうでないときと違うのを修正(ありがとう、鈴木@津さん)}
2728 \def\@makeschapterhead#1{\hbox{}%
2732 \reset@font\huge\bfseries
2734 \setlength\@tempdima{\linewidth}%
2735 \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
2740 % \subsubsection{下位レベルの見出し}
2742 % \begin{macro}{\section}
2743 % 見出しの前後に空白を付け、|\Large\bfseries|で出力をします。
2745 \newcommand{\section}{\@startsection{section}{1}{\z@}%
2746 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
2747 {.5\Cvs \@plus.3\Cvs}%
2748 {\reset@font\Large\bfseries}}
2752 % \begin{macro}{\subsection}
2753 % 見出しの前後に空白を付け、|\large\bfseries|で出力をします。
2755 \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
2756 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
2757 {.5\Cvs \@plus.3\Cvs}%
2758 {\reset@font\large\bfseries}}
2762 % \begin{macro}{\subsubsection}
2763 % 見出しの前後に空白を付け、|\normalsize\bfseries|で出力をします。
2765 \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
2766 {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
2767 {.5\Cvs \@plus.3\Cvs}%
2768 {\reset@font\normalsize\bfseries}}
2772 % \begin{macro}{\paragraph}
2773 % 見出しの前に空白を付け、|\normalsize\bfseries|で出力をします。
2776 \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
2777 {3.25ex \@plus 1ex \@minus .2ex}%
2779 {\reset@font\normalsize\bfseries}}
2783 % \begin{macro}{\subparagraph}
2784 % 見出しの前に空白を付け、|\normalsize\bfseries|で出力をします。
2787 \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
2788 {3.25ex \@plus 1ex \@minus .2ex}%
2790 {\reset@font\normalsize\bfseries}}
2795 % \subsubsection{付録}
2797 % \begin{macro}{\appendix}
2798 % articleクラスの場合、|\appendix|コマンドは次のことを行ないます。
2801 % \item \Lcount{section}と\Lcount{subsection}カウンタをリセットする。
2802 % \item |\thesection|を英小文字で出力するように再定義する。
2807 \newcommand{\appendix}{\par
2808 \setcounter{section}{0}%
2809 \setcounter{subsection}{0}%
2810 %<tate> \renewcommand{\thesection}{\rensuji{\@Alph\c@section}}}
2811 %<yoko> \renewcommand{\thesection}{\@Alph\c@section}}
2815 % reportとbookクラスの場合、|\appendix|コマンドは次のことを行ないます。
2818 % \item \Lcount{chapter}と\Lcount{section}カウンタをリセットする。
2819 % \item |\@chapapp|を|\appendixname|に設定する。
2820 % \item |\@chappos|を空にする。
2821 % \item |\thechapter|を英小文字で出力するように再定義する。
2826 \newcommand{\appendix}{\par
2827 \setcounter{chapter}{0}%
2828 \setcounter{section}{0}%
2829 \renewcommand{\@chapapp}{\appendixname}%
2830 \renewcommand{\@chappos}\space%
2831 %<tate> \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
2832 %<yoko> \renewcommand{\thechapter}{\@Alph\c@chapter}}
2839 % \subsection{リスト環境}
2840 % ここではリスト環境について説明をしています。
2842 % リスト環境のデフォルトは次のように設定されます。
2844 % まず、|\rigtmargin|, |\listparindent|, |\itemindent|をゼロにします。
2845 % そして、K番目のレベルのリストは|\@listK|で示されるマクロが呼び出されます。
2846 % ここで`K'は小文字のローマ数字で示されます。たとえば、3番目のレベルのリスト
2847 % として|\@listiii|が呼び出されます。
2848 % |\@listK|は|\leftmargin|を|\leftmarginK|に設定します。
2850 % \begin{macro}{\leftmargin}
2851 % \begin{macro}{\leftmargini}
2852 % \begin{macro}{\leftmarginii}
2853 % \begin{macro}{\leftmarginiii}
2854 % \begin{macro}{\leftmarginiv}
2855 % \begin{macro}{\leftmarginv}
2856 % \begin{macro}{\leftmarginvi}
2857 % 二段組モードのマージンは少しだけ小さく設定してあります。
2860 \setlength\leftmargini {2em}
2862 \setlength\leftmargini {2.5em}
2865 % 次の3つの値は、|\labelsep|とデフォルトラベル(`(m)', `vii.', `M.')の
2868 \setlength\leftmarginii {2.2em}
2869 \setlength\leftmarginiii {1.87em}
2870 \setlength\leftmarginiv {1.7em}
2872 \setlength\leftmarginv {.5em}
2873 \setlength\leftmarginvi{.5em}
2875 \setlength\leftmarginv {1em}
2876 \setlength\leftmarginvi{1em}
2887 % \begin{macro}{\labelsep}
2888 % \begin{macro}{\labelwidth}
2889 % |\labelsep|はラベルとテキストの項目の間の距離です。
2890 % |\labelwidth|はラベルの幅です。
2892 \setlength \labelsep {.5em}
2893 \setlength \labelwidth{\leftmargini}
2894 \addtolength\labelwidth{-\labelsep}
2899 % \begin{macro}{\@beginparpenalty}
2900 % \begin{macro}{\@endparpenalty}
2901 % これらのペナルティは、リストや段落環境の前後に挿入されます。
2902 % \begin{macro}{\@itempenalty}
2903 % このペナルティは、リスト項目の間に挿入されます。
2905 \@beginparpenalty -\@lowpenalty
2906 \@endparpenalty -\@lowpenalty
2907 \@itempenalty -\@lowpenalty
2908 %</article|report|book>
2914 % \begin{macro}{\partopsep}
2915 % リスト環境の前に空行がある場合、|\parskip|と|\topsep|に|\partopsep|が
2916 % 加えられた値の縦方向の空白が取られます。
2918 %<10pt>\setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
2919 %<11pt>\setlength\partopsep{3\p@ \@plus 1\p@ \@minus 1\p@}
2920 %<12pt>\setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
2924 % \begin{macro}{\@listi}
2925 % \begin{macro}{\@listI}
2926 % |\@listi|は、|\leftmargin|, |\parsep|, |\topsep|, |\itemsep|などの
2928 % この定義は、フォントサイズコマンドによって変更されます(たとえば、
2929 % |\small|の中では``小さい''リストパラメータになります)。
2931 % このため、|\normalsize|がすべてのパラメータを戻せるように、
2932 % |\@listI|は|\@listi|のコピーを保存するように定義されています。
2935 \def\@listi{\leftmargin\leftmargini
2937 \parsep 4\p@ \@plus2\p@ \@minus\p@
2938 \topsep 8\p@ \@plus2\p@ \@minus4\p@
2939 \itemsep4\p@ \@plus2\p@ \@minus\p@}
2942 \parsep 4.5\p@ \@plus2\p@ \@minus\p@
2943 \topsep 9\p@ \@plus3\p@ \@minus5\p@
2944 \itemsep4.5\p@ \@plus2\p@ \@minus\p@}
2947 \parsep 5\p@ \@plus2.5\p@ \@minus\p@
2948 \topsep 10\p@ \@plus4\p@ \@minus6\p@
2949 \itemsep5\p@ \@plus2.5\p@ \@minus\p@}
2953 % ここで、パラメータを初期化しますが、厳密には必要ありません。
2960 % \begin{macro}{\@listii}
2961 % \begin{macro}{\@listiii}
2962 % \begin{macro}{\@listiv}
2963 % \begin{macro}{\@listv}
2964 % \begin{macro}{\@listvi}
2965 % 下位レベルのリスト環境のパラメータの設定です。
2966 % これらは保存用のバージョンを持たないことと、
2967 % フォントサイズコマンドによって変更されないことに注意をしてください。
2968 % 言い換えれば、このクラスは、本文サイズが
2969 % |\normalsize|で現れるリストの入れ子についてだけ考えています。
2971 \def\@listii{\leftmargin\leftmarginii
2972 \labelwidth\leftmarginii \advance\labelwidth-\labelsep
2974 \topsep 4\p@ \@plus2\p@ \@minus\p@
2975 \parsep 2\p@ \@plus\p@ \@minus\p@
2978 \topsep 4.5\p@ \@plus2\p@ \@minus\p@
2979 \parsep 2\p@ \@plus\p@ \@minus\p@
2982 \topsep 5\p@ \@plus2.5\p@ \@minus\p@
2983 \parsep 2.5\p@ \@plus\p@ \@minus\p@
2986 \def\@listiii{\leftmargin\leftmarginiii
2987 \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
2988 %<10pt> \topsep 2\p@ \@plus\p@\@minus\p@
2989 %<11pt> \topsep 2\p@ \@plus\p@\@minus\p@
2990 %<12pt> \topsep 2.5\p@\@plus\p@\@minus\p@
2992 \partopsep \p@ \@plus\z@ \@minus\p@
2994 \def\@listiv {\leftmargin\leftmarginiv
2995 \labelwidth\leftmarginiv
2996 \advance\labelwidth-\labelsep}
2997 \def\@listv {\leftmargin\leftmarginv
2998 \labelwidth\leftmarginv
2999 \advance\labelwidth-\labelsep}
3000 \def\@listvi {\leftmargin\leftmarginvi
3001 \labelwidth\leftmarginvi
3002 \advance\labelwidth-\labelsep}
3012 % \subsubsection{enumerate環境}
3013 % enumerate環境は、カウンタ\Lcount{enumi}, \Lcount{enumii}, \Lcount{enumiii},
3014 % \Lcount{enumiv}を使います。\Lcount{enumN}はN番目のレベルの番号を制御します。
3016 % \begin{macro}{\theenumi}
3017 % \begin{macro}{\theenumii}
3018 % \begin{macro}{\theenumiii}
3019 % \begin{macro}{\theenumiv}
3021 % これらは、すでに\file{ltlists.dtx}で定義されています。
3023 %<*article|report|book>
3025 \renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
3026 \renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
3027 \renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
3028 \renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
3031 \renewcommand{\theenumi}{\@arabic\c@enumi}
3032 \renewcommand{\theenumii}{\@alph\c@enumii}
3033 \renewcommand{\theenumiii}{\@roman\c@enumiii}
3034 \renewcommand{\theenumiv}{\@Alph\c@enumiv}
3042 % \begin{macro}{\labelenumi}
3043 % \begin{macro}{\labelenumii}
3044 % \begin{macro}{\labelenumiii}
3045 % \begin{macro}{\labelenumiv}
3046 % enumerate環境のそれぞれの項目のラベルは、
3047 % |\labelenumi| \ldots\ |\labelenumiv|で生成されます。
3050 \newcommand{\labelenumi}{\theenumi}
3051 \newcommand{\labelenumii}{\theenumii}
3052 \newcommand{\labelenumiii}{\theenumiii}
3053 \newcommand{\labelenumiv}{\theenumiv}
3056 \newcommand{\labelenumi}{\theenumi.}
3057 \newcommand{\labelenumii}{(\theenumii)}
3058 \newcommand{\labelenumiii}{\theenumiii.}
3059 \newcommand{\labelenumiv}{\theenumiv.}
3067 % \begin{macro}{\p@enumii}
3068 % \begin{macro}{\p@enumiii}
3069 % \begin{macro}{\p@enumiv}
3071 % enumerate環境のN番目のリスト項目が参照されるときの書式です。
3073 \renewcommand{\p@enumii}{\theenumi}
3074 \renewcommand{\p@enumiii}{\theenumi(\theenumii)}
3075 \renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
3081 % \begin{environment}{enumerate}
3082 % \changes{v1.1q}{1999/05/18}{縦組時のみに設定するようにした}
3083 % トップレベルで使われたときに、最初と最後に半行分のスペースを開けるように、
3084 % 変更します。この環境は、\file{ltlists.dtx}で定義されています。
3087 \renewenvironment{enumerate}
3088 {\ifnum \@enumdepth >\thr@@\@toodeep\else
3089 \advance\@enumdepth\@ne
3090 \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
3091 \list{\csname label\@enumctr\endcsname}{%
3092 \ifnum\ltjgetparameter{direction}=3
3093 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
3095 \parskip\z@ \itemsep\z@ \parsep\z@
3096 \labelwidth1\zw \labelsep.3\zw
3097 \ifnum \@enumdepth=\@ne \leftmargin1\zw\relax
3098 \else\leftmargin\leftskip\fi
3099 \advance\leftmargin 1\zw
3101 \usecounter{\@enumctr}%
3102 \def\makelabel##1{\hss\llap{##1}}}%
3108 % \subsubsection{itemize環境}
3110 % \begin{macro}{\labelitemi}
3111 % \begin{macro}{\labelitemii}
3112 % \begin{macro}{\labelitemiii}
3113 % \begin{macro}{\labelitemiv}
3114 % itemize環境のそれぞれの項目のラベルは、
3115 % |\labelenumi| \ldots\ |\labelenumiv|で生成されます。
3116 % \changes{v1.1a}{1997/01/28}{Bug fix: \cs{labelitemii}.}
3118 \newcommand{\labelitemi}{\textbullet}
3119 \newcommand{\labelitemii}{%
3120 \ifnum\ltjgetparameter{direction}=3
3123 {\normalfont\bfseries\textendash}
3126 \newcommand{\labelitemiii}{\textasteriskcentered}
3127 \newcommand{\labelitemiv}{\textperiodcentered}
3134 % \begin{environment}{itemize}
3135 % \changes{v1.0e}{1996/03/14}{縦組時のみに設定するようにした}
3136 % トップレベルで使われたときに、最初と最後に半行分のスペースを開けるように、
3137 % 変更します。この環境は、\file{ltlists.dtx}で定義されています。
3139 \renewenvironment{itemize}
3140 {\ifnum \@itemdepth >\thr@@\@toodeep\else
3141 \advance\@itemdepth\@ne
3142 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
3144 \list{\csname \@itemitem\endcsname}{%
3145 \ifnum\ltjgetparameter{direction}=3
3146 \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
3148 \parskip\z@ \itemsep\z@ \parsep\z@
3149 \labelwidth1\zw \labelsep.3\zw
3150 \ifnum \@itemdepth =\@ne \leftmargin1\zw\relax
3151 \else\leftmargin\leftskip\fi
3152 \advance\leftmargin 1\zw
3154 \def\makelabel##1{\hss\llap{##1}}}%
3160 % \subsubsection{description環境}
3162 % \begin{environment}{description}
3163 % \changes{v1.0e}{1996/03/14}{\cs{topskip}や\cs{parkip}などの値を縦組時のみに
3165 % description環境を定義します。
3166 % 縦組時には、インデントが3字分だけ深くなります。
3168 \newenvironment{description}
3169 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
3170 \ifnum\ltjgetparameter{direction}=3
3171 \leftmargin\leftskip \advance\leftmargin3\Cwd
3172 \rightmargin\rightskip
3173 \labelsep=1\zw \itemsep\z@
3174 \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
3176 \let\makelabel\descriptionlabel}}{\endlist}
3180 % \begin{macro}{\descriptionlabel}
3181 % ラベルの形式を変更する必要がある場合は、|\descriptionlabel|を
3184 \newcommand{\descriptionlabel}[1]{%
3185 \hspace\labelsep\normalfont\bfseries #1}
3190 % \subsubsection{verse環境}
3192 % \begin{environment}{verse}
3193 % verse環境は、リスト環境のパラメータを使って定義されています。
3194 % 改行をするには|\\|を用います。|\\|は|\@centercr|に|\let|されています。
3196 \newenvironment{verse}
3198 \list{}{\itemsep\z@ \itemindent -1.5em%
3199 \listparindent\itemindent
3200 \rightmargin\leftmargin \advance\leftmargin 1.5em}%
3201 \item\relax}{\endlist}
3205 % \subsubsection{quotation環境}
3207 % \begin{environment}{quotation}
3208 % quotation環境もまた、list環境のパラメータを使用して定義されています。
3209 % この環境の各行は、|\textwidth|よりも小さく設定されています。
3210 % この環境における、段落の最初の行はインデントされます。
3212 \newenvironment{quotation}
3213 {\list{}{\listparindent 1.5em%
3214 \itemindent\listparindent
3215 \rightmargin\leftmargin
3216 \parsep\z@ \@plus\p@}%
3217 \item\relax}{\endlist}
3221 % \subsubsection{quote環境}
3223 % \begin{environment}{quote}
3224 % quote環境は、段落がインデントされないことを除き、quotation環境と同じです。
3226 \newenvironment{quote}
3227 {\list{}{\rightmargin\leftmargin}%
3228 \item\relax}{\endlist}
3236 % \file{ltfloat.dtx}では、フロートオブジェクトを操作するためのツールしか
3237 % 定義していません。タイプが\texttt{TYPE}のフロートオブジェクトを
3238 % 扱うマクロを定義するには、次の変数が必要です。
3240 % \begin{description}
3241 % \item[\texttt{\bslash fps@TYPE}]
3242 % タイプ\texttt{TYPE}のフロートを置くデフォルトの位置です。
3244 % \item[\texttt{\bslash ftype@TYPE}]
3245 % タイプ\texttt{TYPE}のフロートの番号です。
3246 % 各\texttt{TYPE}には、一意な、2の倍数の\texttt{TYPE}番号を割り当てます。
3247 % たとえば、図が番号1ならば、表は2です。次のタイプは4となります。
3249 % \item[\texttt{\bslash ext@TYPE}]
3250 % タイプ\texttt{TYPE}のフロートの目次を出力するファイルの拡張子です。
3251 % たとえば、|\ext@figure|は`lot'です。
3253 % \item[\texttt{\bslash fnum@TYPE}]
3254 % キャプション用の図番号を生成するマクロです。
3255 % たとえば、|\fnum@figure|は`図|\thefigure|'を作ります。
3258 % \subsubsection{figure環境}
3259 % ここでは、figure環境を実装しています。
3261 % \begin{macro}{\c@figure}
3262 % \begin{macro}{\thefigure}
3265 %<article>\newcounter{figure}
3266 %<report|book>\newcounter{figure}[chapter]
3268 %<article>\renewcommand{\thefigure}{\rensuji{\@arabic\c@figure}}
3270 % \changes{v1.1d}{1997/02/14}{\cs{ifnum}文の構文エラーを訂正。}
3273 \renewcommand{\thefigure}{%
3274 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
3278 %<article>\renewcommand{\thefigure}{\@arabic\c@figure}
3280 \renewcommand{\thefigure}{%
3281 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
3288 % \begin{macro}{\fps@figure}
3289 % \begin{macro}{\ftype@figure}
3290 % \begin{macro}{\ext@figure}
3291 % \begin{macro}{\fnum@figure}
3292 % フロートオブジェクトタイプ``figure''のためのパラメータです。
3294 \def\fps@figure{tbp}
3295 \def\ftype@figure{1}
3296 \def\ext@figure{lof}
3297 %<tate>\def\fnum@figure{\figurename\thefigure}
3298 %<yoko>\def\fnum@figure{\figurename~\thefigure}
3305 % \begin{environment}{figure}
3306 % \begin{environment}{figure*}
3307 % |*|形式は2段抜きのフロートとなります。
3309 \newenvironment{figure}
3312 \newenvironment{figure*}
3313 {\@dblfloat{figure}}
3319 % \subsubsection{table環境}
3320 % ここでは、table環境を実装しています。
3322 % \begin{macro}{\c@table}
3323 % \begin{macro}{\thetable}
3324 % \changes{v1.1n}{1998/10/13}
3325 % {report, bookクラスでchapterカウンタを考慮していなかったのを修正。
3329 %<article>\newcounter{table}
3330 %<report|book>\newcounter{table}[chapter]
3332 %<article>\renewcommand{\thetable}{\rensuji{\@arabic\c@table}}
3334 \renewcommand{\thetable}{%
3335 \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
3339 %<article>\renewcommand{\thetable}{\@arabic\c@table}
3341 \renewcommand{\thetable}{%
3342 \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
3349 % \begin{macro}{\fps@table}
3350 % \begin{macro}{\ftype@table}
3351 % \begin{macro}{\ext@table}
3352 % \begin{macro}{\fnum@table}
3353 % フロートオブジェクトタイプ``table''のためのパラメータです。
3358 %<tate>\def\fnum@table{\tablename\thetable}
3359 %<yoko>\def\fnum@table{\tablename~\thetable}
3366 % \begin{environment}{table}
3367 % \begin{environment}{table*}
3368 % |*|形式は2段抜きのフロートとなります。
3370 \newenvironment{table}
3373 \newenvironment{table*}
3380 % \subsection{キャプション}
3382 % \begin{macro}{\@makecaption}
3383 % |\caption|コマンドは、キャプションを組み立てるために|\@mkcaption|を呼出ます。
3384 % このコマンドは二つの引数を取ります。
3385 % 一つは、\meta{number}で、フロートオブジェクトの番号です。
3386 % もう一つは、\meta{text}でキャプション文字列です。
3387 % \meta{number}には通常、`図 3.2'のような文字列が入っています。
3388 % このマクロは、|\parbox|の中で呼び出されます。書体は|\normalsize|です。
3390 % \begin{macro}{\abovecaptionskip}
3391 % \begin{macro}{\belowcaptionskip}
3392 % これらの長さはキャプションの前後に挿入されるスペースです。
3394 \newlength\abovecaptionskip
3395 \newlength\belowcaptionskip
3396 \setlength\abovecaptionskip{10\p@}
3397 \setlength\belowcaptionskip{0\p@}
3402 % キャプション内で複数の段落を作成することができるように、
3403 % このマクロは|\long|で定義をします。
3405 \long\def\@makecaption#1#2{%
3406 \vskip\abovecaptionskip
3407 \ifnum\ltjgetparameter{direction}=3 \sbox\@tempboxa{#1\hskip1\zw#2}%
3408 \else\sbox\@tempboxa{#1: #2}%
3410 \ifdim \wd\@tempboxa >\hsize
3411 \ifnum\ltjgetparameter{direction}=3 #1\hskip1\zw#2\relax\par
3412 \else #1: #2\relax\par\fi
3414 \global \@minipagefalse
3415 \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
3417 \vskip\belowcaptionskip}
3421 % \subsection{コマンドパラメータの設定}
3423 % \subsubsection{arrayとtabular環境}
3425 % \begin{macro}{\arraycolsep}
3426 % array環境のカラムは2|\arraycolsep|で分離されます。
3428 \setlength\arraycolsep{5\p@}
3432 % \begin{macro}{\tabcolsep}
3433 % tabular環境のカラムは2|\tabcolsep|で分離されます。
3435 \setlength\tabcolsep{6\p@}
3439 % \begin{macro}{\arrayrulewidth}
3440 % arrayとtabular環境内の罫線の幅です。
3442 \setlength\arrayrulewidth{.4\p@}
3446 % \begin{macro}{\doublerulesep}
3447 % arrayとtabular環境内の罫線間を調整する空白です。
3449 \setlength\doublerulesep{2\p@}
3453 % \subsubsection{tabbing環境}
3455 % \begin{macro}{\tabbingsep}
3456 % |\'|コマンドで置かれるスペースを制御します。
3458 \setlength\tabbingsep{\labelsep}
3462 % \subsubsection{minipage環境}
3464 % \begin{macro}{\@mpfootins}
3465 % minipageにも脚注を付けることができます。
3466 % |\skip||\@mpfootins|は、通常の|\skip||\footins|と同じような動作をします。
3468 \skip\@mpfootins = \skip\footins
3472 % \subsubsection{framebox環境}
3474 % \begin{macro}{\fboxsep}
3475 % \begin{macro}{\fboxrule}
3476 % |\fboxsep|は、|\fbox|と|\framebox|での、
3477 % テキストとボックスの間に入る空白です。
3478 % |\fboxrule|は|\fbox|と|\framebox|で作成される罫線の幅です。
3480 \setlength\fboxsep{3\p@}
3481 \setlength\fboxrule{.4\p@}
3486 % \subsubsection{equationとeqnarray環境}
3488 % \begin{macro}{\theequation}
3489 % equationカウンタは、新しい章の開始でリセットされます。
3490 % また、equation番号には、章番号が付きます。
3492 % このコードは|\chapter|定義の後、より正確にはchapterカウンタの定義の後、
3495 %<article>\renewcommand{\theequation}{\@arabic\c@equation}
3497 \@addtoreset{equation}{chapter}
3498 \renewcommand{\theequation}{%
3499 \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
3505 % \section{フォントコマンド}
3506 % まず、数式内に日本語を直接、記述するために数式記号用文字に
3507 % ``JY3/mc/m/n''を登録します。数式バージョンがboldの場合は、
3508 % ``JY3/gt/m/n''を用います。
3509 % これらは、|\mathmc|, |\mathgt|として登録されます。
3510 % また、日本語数式ファミリとして|\symmincho|がこの段階で設定されます。
3511 % |mathrmmc|オプションが指定されていた場合には、これに引き続き
3512 % |\mathrm|と|\mathbf|を和欧文両対応にするための作業がなされます。この際、
3513 % 他のマクロとの衝突を避けるため|\AtBeginDocument|
3514 % を用いて展開順序を遅らせる必要があります。
3518 % \changes{v1.6}{2006/06/27}{フォントコマンドを修正。ありがとう、ymtさん。}
3520 % compatibility mode では和文数式フォントfamが2重定義されていた
3523 \if@compatibility\else
3524 \DeclareSymbolFont{mincho}{JY3}{mc}{m}{n}
3525 \DeclareSymbolFontAlphabet{\mathmc}{mincho}
3526 \SetSymbolFont{mincho}{bold}{JY3}{gt}{m}{n}
3528 \DeclareMathAlphabet{\mathgt}{JY3}{gt}{m}{n}
3532 \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
3533 \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
3538 % ここでは\LaTeX~2.09で一般的に使われていたコマンドを定義しています。
3539 % これらのコマンドはテキストモードと数式モードの\emph{どちらでも}動作します。
3540 % これらは互換性のために提供をしますが、できるだけ|\text...|と|\math...|を
3543 % \begin{macro}{\mc}
3544 % \begin{macro}{\gt}
3545 % \begin{macro}{\rm}
3546 % \begin{macro}{\sf}
3547 % \begin{macro}{\tt}
3548 % これらのコマンドはフォントファミリを変更します。
3549 % 互換モードの同名コマンドと異なり、すべてのコマンドがデフォルトフォントに
3550 % リセットしてから、対応する属性を変更することに注意してください。
3552 \DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
3553 \DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
3554 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
3555 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
3556 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
3564 % \begin{macro}{\bf}
3565 % このコマンドはボールド書体にします。ノーマル書体に変更するには、
3566 % |\mdseries|と指定をします。
3568 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
3572 % \begin{macro}{\it}
3573 % \begin{macro}{\sl}
3574 % \begin{macro}{\sc}
3575 % これらのコマンドはフォントシェイプを切替えます。
3576 % スラント体とスモールキャップの数式アルファベットはありませんので、
3577 % 数式モードでは何もしませんが、警告メッセージを出力します。
3578 % |\upshape|コマンドで通常のシェイプにすることができます。
3580 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
3581 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
3582 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
3588 % \begin{macro}{\cal}
3589 % \begin{macro}{\mit}
3590 % これらのコマンドは数式モードでだけ使うことができます。
3592 % 現在のNFSSは、これらのコマンドが警告を生成するように定義していますので、
3593 % `手ずから'定義する必要があります。
3595 \DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
3596 \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
3606 % |\section|コマンドは、\file{.toc}ファイルに、次のような行を出力します。
3608 % |\contentsline{section}{|\meta{title}|}{|\meta{page}|}|
3610 % \meta{title}には項目が、\meta{page}にはページ番号が入ります。
3611 % |\section|に見出し番号が付く場合は、\meta{title}は、
3612 % |\numberline{|\meta{num}|}{|\meta{heading}|}|となります。
3613 % \meta{num}は|\thesection|コマンドで生成された見出し番号です。
3614 % \meta{heading}は見出し文字列です。この他の見出しコマンドも同様です。
3616 % figure環境での|\caption|コマンドは、\file{.lof}ファイルに、
3619 % |\contentsline{figure}{\numberline{|\meta{num}|}{|%
3620 % \meta{caption}|}}{|\meta{page}|}|
3622 % \meta{num}は、|\thefigure|コマンドで生成された図番号です。
3623 % \meta{caption}は、キャプション文字列です。table環境も同様です。
3625 % |\contentsline{|\meta{name}|}|コマンドは、|\l@|\meta{name}に展開されます。
3626 % したがって、目次の体裁を記述するには、|\l@chapter|, |\l@section|などを
3627 % 定義します。図目次のためには|\l@figure|です。
3628 % これらの多くのコマンドは|\@dottedtocline|コマンドで定義されています。
3629 % このコマンドは次のような書式となっています。
3631 % |\@dottedtocline{|\meta{level}|}{|\meta{indent}|}{|^^A
3632 % \meta{numwidth}|}{|\meta{title}|}{|\meta{page}|}|
3634 % \begin{description}
3635 % \item[\meta{level}] ``\meta{level} $<=$ \Lcount{tocdepth}''のときにだけ、
3636 % 生成されます。|\chapter|はレベル0、|\section|はレベル1、$\ldots$ です。
3637 % \item[\meta{indent}] 一番外側からの左マージンです。
3638 % \item[\meta{numwidth}] 見出し番号(|\numberline|コマンドの\meta{num})が
3642 % \begin{macro}{\c@tocdepth}
3643 % \Lcount{tocdepth}は、目次ページに出力をする見出しレベルです。
3645 %<article>\setcounter{tocdepth}{3}
3646 %<!article>\setcounter{tocdepth}{2}
3650 % また、目次を生成するために次のパラメータも使います。
3652 % \begin{macro}{\@pnumwidth}
3655 \newcommand{\@pnumwidth}{1.55em}
3659 % \begin{macro}{\@tocmarg}
3660 % 複数行にわたる場合の右マージンです。
3662 \newcommand{\@tocrmarg}{2.55em}
3666 % \begin{macro}{\@dotsep}
3667 % ドットの間隔(mu単位)です。2や1.7のように指定をします。
3669 \newcommand{\@dotsep}{4.5}
3673 % \begin{macro}{\toclineskip}
3674 % この長さ変数は、目次項目の間に入るスペースの長さです。
3675 % デフォルトはゼロとなっています。縦組のとき、スペースを少し広げます。
3677 \newdimen\toclineskip
3678 %<yoko>\setlength\toclineskip{\z@}
3679 %<tate>\setlength\toclineskip{2\p@}
3683 % \begin{macro}{\numberline}
3684 % \begin{macro}{\@lnumwidth}
3685 % |\numberline|マクロの定義を示します。オリジナルの定義では、ボックスの幅を
3686 % |\@tempdima|にしていますが、この変数はいろいろな箇所で使われますので、
3687 % 期待した値が入らない場合があります。
3689 % たとえば、|lltjfont.sty|での|\selectfont|は、和欧文のベースラインを調整する
3690 % ために|\@tempdima|変数を用いています。そのため、|\l@...|マクロの中で
3691 % フォントを切替えると、|\numberline|マクロのボックス
3692 % の幅が、ベースラインを調整するときに計算した値になってしまいます。
3694 % フォント選択コマンドの後、あるいは|\numberline|マクロの中でフォントを
3695 % 切替えてもよいのですが、一時変数を意識したくないので、
3696 % 見出し番号の入るボックスを|\@lnumwidth|変数を用いて組み立てるように
3697 % |\numberline|マクロを再定義します。
3699 \newdimen\@lnumwidth
3700 \def\numberline#1{\hbox to\@lnumwidth{#1\hfil}}
3705 % \begin{macro}{\@dottedtocline}
3706 % 目次の各行間に|\toclineskip|を入れるように変更します。
3707 % このマクロは\file{ltsect.dtx}で定義されています。
3708 % \changes{v1.3}{2001/10/04}{第5引数の書体を\cs{rmfamily}から\cs{normalfont}に変更}
3710 \def\@dottedtocline#1#2#3#4#5{%
3711 \ifnum #1>\c@tocdepth \else
3712 \vskip\toclineskip \@plus.2\p@
3713 {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
3714 \parindent #2\relax\@afterindenttrue
3715 \interlinepenalty\@M
3717 \@lnumwidth #3\relax
3718 \advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
3720 \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
3722 \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
3728 % \begin{macro}{\addcontentsline}
3729 % ページ番号を|\rensuji|で囲むように変更します。
3730 % 横組のときにも`|\rensuji|'コマンドが出力されますが、
3731 % このコマンドによる影響はありません。
3733 % このマクロは\file{ltsect.dtx}で定義されています。
3735 \def\addcontentsline#1#2#3{%
3736 \protected@write\@auxout
3737 {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
3738 %<tate>\@temptokena{\rensuji{\thepage}}}%
3739 %<yoko>\@temptokena{\thepage}}%
3740 {\string\@writefile{#1}%
3741 {\protect\contentsline{#2}{#3}{\the\@temptokena}}}%
3747 % \subsubsection{本文目次}
3749 % \begin{macro}{\tableofcontents}
3752 \newcommand{\tableofcontents}{%
3754 \if@twocolumn\@restonecoltrue\onecolumn
3755 \else\@restonecolfalse\fi
3757 %<article> \section*{\contentsname
3758 %<!article> \chapter*{\contentsname
3759 \@mkboth{\contentsname}{\contentsname}%
3761 %<report|book> \if@restonecol\twocolumn\fi
3766 % \begin{macro}{\l@part}
3769 \newcommand*{\l@part}[2]{%
3770 \ifnum \c@tocdepth >-2\relax
3771 %<article> \addpenalty{\@secpenalty}%
3772 %<!article> \addpenalty{-\@highpenalty}%
3773 \addvspace{2.25em \@plus\p@}%
3775 \parindent\z@\rightskip\@pnumwidth
3776 \parfillskip-\@pnumwidth
3777 {\leavevmode\large\bfseries
3778 \setlength\@lnumwidth{4\zw}%
3780 \hbox to\@pnumwidth{\hss#2}}\par
3782 %<article> \if@compatibility
3783 \global\@nobreaktrue
3784 \everypar{\global\@nobreakfalse\everypar{}}%
3791 % \begin{macro}{\l@chapter}
3795 \newcommand*{\l@chapter}[2]{%
3796 \ifnum \c@tocdepth >\m@ne
3797 \addpenalty{-\@highpenalty}%
3798 \addvspace{1.0em \@plus\p@}%
3800 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
3801 \leavevmode\bfseries
3802 \setlength\@lnumwidth{4\zw}%
3803 \advance\leftskip\@lnumwidth \hskip-\leftskip
3804 #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
3805 \penalty\@highpenalty
3812 % \begin{macro}{\l@section}
3816 \newcommand*{\l@section}[2]{%
3817 \ifnum \c@tocdepth >\z@
3818 \addpenalty{\@secpenalty}%
3819 \addvspace{1.0em \@plus\p@}%
3821 \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
3822 \leavevmode\bfseries
3823 \setlength\@lnumwidth{1.5em}%
3824 \advance\leftskip\@lnumwidth \hskip-\leftskip
3825 #1\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par
3833 %<tate>\newcommand*{\l@section}{\@dottedtocline{1}{1\zw}{4\zw}}
3834 %<yoko>\newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
3839 % \begin{macro}{\l@subsection}
3840 % \begin{macro}{\l@subsubsection}
3841 % \begin{macro}{\l@paragraph}
3842 % \begin{macro}{\l@subparagraph}
3847 \newcommand*{\l@subsection} {\@dottedtocline{2}{1\zw}{4\zw}}
3848 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{2\zw}{6\zw}}
3849 \newcommand*{\l@paragraph} {\@dottedtocline{4}{3\zw}{8\zw}}
3850 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{4\zw}{9\zw}}
3853 \newcommand*{\l@subsection} {\@dottedtocline{2}{2\zw}{6\zw}}
3854 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3\zw}{8\zw}}
3855 \newcommand*{\l@paragraph} {\@dottedtocline{4}{4\zw}{9\zw}}
3856 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{5\zw}{10\zw}}
3861 \newcommand*{\l@subsection} {\@dottedtocline{2}{1.5em}{2.3em}}
3862 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{3.8em}{3.2em}}
3863 \newcommand*{\l@paragraph} {\@dottedtocline{4}{7.0em}{4.1em}}
3864 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{10em}{5em}}
3867 \newcommand*{\l@subsection} {\@dottedtocline{2}{3.8em}{3.2em}}
3868 \newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
3869 \newcommand*{\l@paragraph} {\@dottedtocline{4}{10em}{5em}}
3870 \newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
3880 % \subsubsection{図目次と表目次}
3882 % \begin{macro}{\listoffigures}
3885 \newcommand{\listoffigures}{%
3887 \if@twocolumn\@restonecoltrue\onecolumn
3888 \else\@restonecolfalse\fi
3889 \chapter*{\listfigurename
3891 %<article> \section*{\listfigurename
3892 \@mkboth{\listfigurename}{\listfigurename}}%
3894 %<report|book> \if@restonecol\twocolumn\fi
3899 % \begin{macro}{\l@figure}
3902 %<tate>\newcommand*{\l@figure}{\@dottedtocline{1}{1\zw}{4\zw}}
3903 %<yoko>\newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
3907 % \begin{macro}{\listoftables}
3908 % \changes{v1.0c}{1995/12/28}{fix the \cs{listoftable} typo.}
3911 \newcommand{\listoftables}{%
3913 \if@twocolumn\@restonecoltrue\onecolumn
3914 \else\@restonecolfalse\fi
3915 \chapter*{\listtablename
3917 %<article> \section*{\listtablename
3918 \@mkboth{\listtablename}{\listtablename}}%
3920 %<report|book> \if@restonecol\twocolumn\fi
3925 % \begin{macro}{\l@table}
3926 % 表目次の体裁は、図目次と同じにします。
3928 \let\l@table\l@figure
3935 % \begin{macro}{\bibindent}
3936 % オープンスタイルの参考文献で使うインデント幅です。
3939 \setlength\bibindent{1.5em}
3943 % \begin{macro}{\newblock}
3944 % |\newblock|のデフォルト定義は、小さなスペースを生成します。
3946 \newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
3950 % \begin{environment}{thebibliography}
3951 % 参考文献や関連図書のリストを作成します。
3953 \newenvironment{thebibliography}[1]
3954 %<article>{\section*{\refname\@mkboth{\refname}{\refname}}%
3955 %<report|book>{\chapter*{\bibname\@mkboth{\bibname}{\bibname}}%
3956 \list{\@biblabel{\@arabic\c@enumiv}}%
3957 {\settowidth\labelwidth{\@biblabel{#1}}%
3958 \leftmargin\labelwidth
3959 \advance\leftmargin\labelsep
3961 \usecounter{enumiv}%
3962 \let\p@enumiv\@empty
3963 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
3966 % \changes{v1.1a}{1997/01/23}{\LaTeX\ \texttt{!<1996/12/01!>}に合わせて修正}
3969 \@clubpenalty\clubpenalty
3973 {\@latex@warning{Empty `thebibliography' environment}}%
3978 % \begin{macro}{\@openbib@code}
3979 % |\@openbib@code|のデフォルト定義は何もしません。
3980 % この定義は、\Lopt{openbib}オプションによって変更されます。
3982 \let\@openbib@code\@empty
3986 % \begin{macro}{\@biblabel}
3987 % The label for a |\bibitem[...]| command is produced by this
3988 % macro. The default from \file{latex.dtx} is used.
3990 % \renewcommand*{\@biblabel}[1]{[#1]\hfill}
3994 % \begin{macro}{\@cite}
3995 % The output of the |\cite| command is produced by this macro. The
3996 % default from \file{latex.dtx} is used.
3998 % \renewcommand*{\@cite}[1]{[#1]}
4005 % \begin{environment}{theindex}
4007 % 索引の先頭のページのスタイルは\pstyle{jpl@in}とします。したがって、
4008 % \pstyle{headings}と\pstyle{bothstyle}に適した位置に出力されます。
4010 \newenvironment{theindex}
4011 {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
4012 \columnseprule\z@ \columnsep 35\p@
4013 %<article> \twocolumn[\section*{\indexname}]%
4014 %<report|book> \twocolumn[\@makeschapterhead{\indexname}]%
4015 \@mkboth{\indexname}{\indexname}%
4016 \thispagestyle{jpl@in}\parindent\z@
4017 \parskip\z@ \@plus .3\p@\relax
4019 {\if@restonecol\onecolumn\else\clearpage\fi}
4023 % \begin{macro}{\@idxitem}
4024 % \begin{macro}{\subitem}
4025 % \begin{macro}{\subsubitem}
4026 % 索引項目の字下げ幅です。|\@idxitem|は|\item|の項目の字下げ幅です。
4028 \newcommand{\@idxitem}{\par\hangindent 40\p@}
4029 \newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
4030 \newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
4036 % \begin{macro}{\indexspace}
4037 % 索引の``文字''見出しの前に入るスペースです。
4039 \newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
4046 % \begin{macro}{\footnoterule}
4049 \renewcommand{\footnoterule}{%
4051 \hrule width .4\columnwidth
4056 % \begin{macro}{\c@footnote}
4057 % reportとbookクラスでは、chapterレベルでリセットされます。
4059 %<!article>\@addtoreset{footnote}{chapter}
4063 % \begin{macro}{\@makefntext}
4064 % このマクロにしたがって脚注が組まれます。
4066 % |\@makefnmark|は脚注記号を組み立てるマクロです。
4069 \newcommand\@makefntext[1]{\parindent 1\zw
4070 \noindent\hbox to 2\zw{\hss\@makefnmark}#1}
4073 \newcommand\@makefntext[1]{\parindent 1em
4074 \noindent\hbox to 1.8em{\hss\@makefnmark}#1}
4081 % 組版時における現在の日付を出力します。
4083 % \iffalse meta-comment!
4084 % 注意:ここで \DisableCrossrefs, \EnableCrossrefs をしているのは、
4085 % platex jclasses.dtx で dvi を作るときにエラーになるため。
4088 % \begin{macro}{\if西暦}
4089 % \begin{macro}{\西暦}
4090 % \begin{macro}{\和暦}
4091 % \changes{v1.0h}{1996/12/17}{Typo:和歴 to 和暦}
4092 % |\today|コマンドの`年'を、
4093 % 西暦か和暦のどちらで出力するかを指定するコマンドです。
4095 \newif\if西暦 \西暦false
4104 % \begin{macro}{\heisei}
4105 % \changes{v1.1m}{1998/04/07}{\cs{today}の計算手順を変更}
4106 % |\today|コマンドを|\rightmark|で指定したとき、|\rightmark|を出力する部分
4107 % で和暦のための計算ができないので、クラスファイルを読み込む時点で計算して
4110 \newcount\heisei \heisei\year \advance\heisei-1988\relax
4114 % \begin{macro}{\today}
4117 % \changes{v1.6-ltj-9}{2015/01/01}{縦組では,この漢数字による日付出力でエラーになりました.
4118 % Lua\TeX-ja では,\cs{kansuji}の後に\cs{number}を続けることは出来ないので\cs{number}を削除しました.}
4121 \ifnum\ltjgetparameter{direction}=3
4127 平成\ifnum\heisei=1 元年\else\kansuji\heisei 年\fi
4137 平成\ifnum\heisei=1 元年\else\number\heisei~年\fi
4150 % \begin{macro}{\prepartname}
4151 % \begin{macro}{\postpartname}
4152 % \begin{macro}{\prechaptername}
4153 % \begin{macro}{\postchaptername}
4155 \newcommand{\prepartname}{第}
4156 \newcommand{\postpartname}{部}
4157 %<report|book>\newcommand{\prechaptername}{第}
4158 %<report|book>\newcommand{\postchaptername}{章}
4165 % \begin{macro}{\contentsname}
4166 % \begin{macro}{\listfigurename}
4167 % \begin{macro}{\listtablename}
4169 \newcommand{\contentsname}{目 次}
4170 \newcommand{\listfigurename}{図 目 次}
4171 \newcommand{\listtablename}{表 目 次}
4177 % \begin{macro}{\refname}
4178 % \begin{macro}{\bibname}
4179 % \begin{macro}{\indexname}
4181 %<article>\newcommand{\refname}{参考文献}
4182 %<report|book>\newcommand{\bibname}{関連図書}
4183 \newcommand{\indexname}{索 引}
4189 % \begin{macro}{\figurename}
4190 % \begin{macro}{\tablename}
4192 \newcommand{\figurename}{図}
4193 \newcommand{\tablename}{表}
4198 % \begin{macro}{\appendixname}
4199 % \begin{macro}{\abstractname}
4201 \newcommand{\appendixname}{付 録}
4202 %<article|report>\newcommand{\abstractname}{概 要}
4207 % \changes{v1.0d}{1996/02/29}{articleとreportのデフォルトを
4208 % \pstyle{plain}に修正}
4209 % \changes{v1.4}{2002/04/09}{縦組スタイルで\cs{flushbottom}しないようにした}
4211 %<book>\pagestyle{headings}
4212 %<!book>\pagestyle{plain}
4213 \pagenumbering{arabic}
4222 % |\@mparswitch|は傍注を左右(縦組では上下)どちらのマージンに
4223 % 出力するかの指定です。偽の場合、傍注は一方の側にしか出力されません。
4224 % このスイッチを真とすると、とくに縦組の場合、奇数ページでは本文の上に、
4225 % 偶数ページでは本文の下に傍注が出力されますので、おかしなことになります。
4227 % また、縦組のときには、傍注を本文の下に出すようにしています。
4228 % |\reversemarginpar|とすると本文の上側に出力されます。
4229 % ただし、二段組の場合は、つねに隣接するテキスト側のマージンに出力されます。
4242 %</article|report|book>