OSDN Git Service

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