• 検索結果がありません。

第 4 章 特記事項 57

5.7 罫線と支柱

\makebox[\textwidth]{%

c e n t r a l}\par

\makebox[\textwidth][s]{%

s p r e a d}\par

\framebox[1.1\width]{Guess I’m framed now!} \par

\framebox[0.8\width][r]{Bummer, I am to wide} \par

\framebox[1cm][l]{never mind, so am I}

Can you read this?

c e n t r a l

s p r e a d

Guess I’m framed now!

Bummer, I am to wide

never mind, so am ICan you read this?

水平方向の制御を理解したところで,次は垂直方向の説明に移りましょう5. LATEXでは,何でもないことです.

\raisebox{lift}[depth][height]{text}

上記のコマンドで,ボックスを上下方向へ移動させることができます.最初の三 つのパラメータ内には,text引数で与えられた文字列を組版したときのボック スの大きさに基づいて設定される\width,\height,\depth,\totalheight コマンドが使用できます.

\raisebox{0pt}[0pt][0pt]{\Large%

\textbf{Aaaa\raisebox{-0.3ex}{a}%

\raisebox{-0.7ex}{aa}%

\raisebox{-1.2ex}{r}%

\raisebox{-2.2ex}{g}%

\raisebox{-4.5ex}{h}}}

he shouted but not even the next one in line noticed that something terrible had happened to her.

Aaaaaaar g h

he shouted but not even the next one in line noticed that something terrible had happened to her.

5.7 罫線と支柱

数ページ前に,次のコマンドがあったことに気付いた人もいるでし ょう.

\rule[lift]{width}{height}

通常このコマンド は,単純な黒塗りのボックスを出力し ます.

\rule{3mm}{.1pt}%

\rule[-1mm]{5mm}{1cm}%

\rule{3mm}{.1pt}%

\rule[1mm]{1cm}{5mm}%

\rule{3mm}{.1pt}

5全制御は,水平,垂直の両方向の制御によってなされるだけです. . .

805LATEXのカスタマイズ このコマンド は,垂直方向,水平方向の罫線を描くのに使用できます.例 えば,この冊子の表紙に描かれている罫線はこの \ruleコマンド を使用して 描いています.

特別な場合として,高さのみがあり幅が零の罫線も描くことができます.組 版では,支柱と呼ばれます.これは,ページ中の要素の高さがある値より小 さくならないようにするために使われます.例えば ,tabular環境中で行の 高さをある高さ以上にするために使用します.

\begin{tabular}{|c|}

\hline

\rule{1pt}{4ex}Pitprop \ldots\\

\hline

\rule{0pt}{4ex}Strut\\

\hline

\end{tabular}

Pitprop. . . Strut

参考文献

[1] Leslie Lamport. LATEX: A Document Preparation System. Addison-Wesley, Reading, Massachusetts, second edition, 1994, ISBN 0-201-52983-1. [ 邦訳:阿瀬はる美訳 『 文書処理システム LATEX 2ε』 ピア ソン・エデュケーション,1999年,ISBN 4-89471-139-7.]

[2] Donald E. Knuth. The TEXbook, Volume A of Computers and Type-setting, Addison-Wesley, Reading, Massachusetts, second edition, 1984, ISBN 0-201-13448-9. [ 邦訳:斎藤信男監修,鷺谷好輝訳 『 改訂新版 TEXブック』アスキー出版局,1992年,ISBN 4-7561-0120-8.] [3] Michel Goossens, Frank Mittelbach and Alexander Samarin.The LATEX

Companion. Addison-Wesley, Reading, Massachusetts, 1994, ISBN 0-201-54199-8. [ 邦訳:アスキー書籍編集部監訳『The LATEX コンパニ オン 』アスキー出版局,1998年,ISBN 4-7561-1813-5.]

[4] それぞれのLATEXシステムには,そのシステムに固有な事項について説 明されている,いわゆるLATEX ローカルガイドが存在しています.ファ イル名は通常,local.texとなっています.運悪く,そのような文書を 用意していない怠け者のシステム管理者だった場合,わからないことは,

近くのLATEX伝道師に会いに行ってお尋ね下さい.

[5] LATEX3 Project Team. LATEX 2ε for authors. usrguide.texというファ イル名で,LATEX 2εの基本ファイルと一緒に配布されています.

[6] LATEX3 Project Team. LATEX 2ε for Class and Package writers.

clsguide.texというファイル名で,LATEX 2εの基本ファイルと一緒に 配布されています.

[7] LATEX3 Project Team. LATEX 2ε Font selection. fntguide.texという ファイル名で,LATEX 2εの基本ファイルと一緒に配布されています.

[8] D. P. Carlisle. Packages in the ‘graphics’ bundle. grfguide.texとい うファイル名で,一連の‘graphics’パッケージと一緒に配布され,LATEX の基本ファイルの入手先から入手できます.

[9] Rainer Sch¨opf, Bernd Raichle, Chris Rowley. A New Implementation of LATEX’s verbatim Environments. verbatim.dtxというファイル名で,

82 参考文献 一連の‘tools’パッケージと一緒に配布され,LATEXの基本ファイルの入 手先から入手てきます.

[10] Graham Williams. The TeX Catalogue. このカタログは,TEXLATEX に関連した多数のパッケージファイルのほぼ完全な一覧となっています.

CTAN:/tex-archive/help/Catalogue/catalogue.html から入手でき ます.

[11] Keith Reckdahl. Using EPS Graphics in LATEX 2εDocuments.このファ イルは,EPSファイルに関するあらゆる事や今まで知りたかった事より も多くの事柄,さらにLATEX文書内でのEPSファイルの扱い方について 説明しています.CTAN:/tex-archive/info/epslatex.psから入手で きます.

索 引

\!, 43

", 21

$, 37

’, 40

\(, 37

\), 37

\,, 38, 43 -, 22

, 22

\-, 20 –, 22

—, 22 . . . , 22 .aux, 13 .cls, 11 .dtx, 11 .dvi, 11 .idx, 13 .ilg, 13 .ind, 13 .ins, 11 .lof, 13 .log, 13 .lot, 13 .sty, 11 .tex, 11 .toc, 13

\:, 43

\;, 43

\@, 25

\[, 37

\\, 19, 30–32, 74

\\*, 19

\], 37

^, 39 _, 39

|, 32

~, 25 A4用紙, 10 A5用紙, 10 acute, 23

\addtolength, 76 æ, 23

amsbsy, 49 amsfonts, 38, 56

amsmath, 41–43, 45, 49 amssymb, 39, 50

\and, 27

\appendix, 26

\arccos, 40

\arcsin, 40

\arctan, 40

\arg, 40 array, 44 articleクラス, 9

\atop, 41

\author, 27 B5用紙, 10 babel, 20, 24

\backmatter, 27

\backslash, 6

\begin, 29

\bibitem, 59

\Big, 42

\big, 42

84 索 引

\Bigg, 42

\bigg, 42

\binom, 41

\bmod, 41 bold face, 69

\boldmath, 48

\boldsymbol, 49 bookクラス, 9 calc, 76

\caption, 35, 63

\cdots, 42 center, 30

\chapter, 26

\chaptermark, 61

\choose, 41

\ci, 65

\cite, 59

\cleardoublepage, 36

\clearpage, 36 command, 65 comment, 7

\cos, 40

\cosh, 40

\cot, 40

\coth, 40

\csc, 40

\date, 27 dcolumn, 33

\ddots, 43

\deg, 40

\depth, 78, 79 description, 29

\det, 40

\dim, 40

displaymath, 37

\displaystyle, 46 doc, 12

\documentclass, 8, 9, 11, 20

\dum, 65

\emph, 29, 69 empty, 13

Encapsulated PostScript, 57

\end, 29

enumerate, 29 EPSファイル, 57 eqnarray, 44 equation, 37 eucal, 56 eufrak, 56

executive用紙, 10

\exp, 40 exscale, 12, 42

fancyhdr, 61, 62 figure, 34, 35 flushleft, 30 flushright, 30 fontenc, 12, 25

\footnote, 28, 63

\footnotesize, 69

\frac, 41

\fragile, 63

\framebox, 78

\frenchspacing, 26

\frontmatter, 27

\fussy, 20

\gcd, 40

\genfrac, 41 GhostScript, 57 graphics, 57 graphicx, 57 grave, 23 headings, 13

\height, 78, 79

\hline, 32

\hom, 40

\hspace, 67, 73

\Huge, 69

\huge, 69

索 引 85

\hyphenation, 20

\idotsint, 43 ifthen, 12

\iiiint, 43

\iiint, 43

\iint, 43

\include, 14

\includegraphics, 58, 78

\includeonly, 14

\indent, 73 indentfirst, 73

\index, 60

\inf, 40

\input, 14 inputenc, 12, 24

\int, 41 italic, 69

\item, 29 itemize, 29

\ker, 40

Knuth, Donald E., 1

\label, 28, 38 Lamport, Leslie, 1

\LARGE, 69

\Large, 69

\large, 69

\LaTeX, 21 LATEX 2.09, 1 LATEX 2ε, 1 LATEX3, 1, 4

\LaTeXe, 21 latexsym, 12 LATEXの良い点, 3 layout, 76

\ldots, 22, 42

\left, 42

\left., 42

\leftmark, 61 legal用紙, 10

letter用紙, 10

\lg, 40

\lim, 40

\liminf, 40

\limsup, 40

\linebreak, 19

\linespread, 72

\listoffigures, 36

\listoftables, 36

\ln, 40

\log, 40

\mainmatter, 27

\makebox, 78 makeidx, 12, 60

makeidxパッケージ, 60

\makeindex, 60

makeindexプログラム, 60

\maketitle, 27 math, 37

\mathbb, 39

\mathbf, 70

\mathcal, 70

\mathit, 70

\mathnormal, 70

\mathrm, 46, 70 mathrsfs, 56

\mathsf, 70

\mathtt, 70

\max, 40

\mbox, 21, 23, 78

\min, 40 minipage, 78

Mittelbach, Frank, 1

\multicolumn, 33

\newcommand, 66

\newenvironment, 67

\newline, 19

\newpage, 19

\newtheorem, 47

86 索 引

\noindent, 73

\nolinebreak, 19

\nonumber, 45

\nopagebreak, 19

\normalsize, 69 œ, 23

option, 9

\overbrace, 40 overfull hbox, 19

\overleftarrow, 40

\overline, 40

\overrightarrow, 40 package, 9

\pagebreak, 19

\pageref, 28

\pagestyle, 13 paper size, 10

\paragraph, 26

\parbox, 78

\parindent, 72

\parskip, 72

\part, 26

\phantom, 45, 63 plain, 13

\pmod, 41 PostScript, 57

\Pr, 40

\printindex, 61

\prod, 41

\protect, 63

\providecommand, 66

\ProvidesPackage, 68

\qquad, 38, 43

\quad, 38, 43 quotation, 31 quote, 30

\raisebox, 79

\ref, 28, 38

\renewcomannd, 66

\renewenvironment, 67 reportクラス, 9

\right, 42, 44

\right., 42

\rightmark, 61 roman, 69

\rule, 67, 79, 80 sans serif, 69

\scriptscriptstyle, 46

\scriptsize, 69

\scriptstyle, 46

\sec, 40

\section, 26, 63

\sectionmark, 61

\setlength, 72, 76

\settodepth, 77

\settoheight, 77

\settowidth, 77 showidx, 61

\sin, 40

\sinh, 40 slanted, 69

\sloppy, 20

\small, 69 small caps, 69

\sqrt, 39

\stackrel, 41

\stretch, 67, 73

\subparagraph, 26

\subsection, 26

\subsectionmark, 61

\subsubsection, 26

\sum, 41

\sup, 40

syntonly, 12, 14 table, 34, 35

\tableofcontents, 27 tabular, 32, 78

索 引 87

\tan, 40

\tanh, 40

\TeX, 21

\textbf, 69

\textit, 69

\textmd, 69

\textnormal, 69

\textrm, 46, 69

\textsc, 69

\textsf, 69

\textsl, 69

\textstyle, 46

\texttt, 69

\textup, 69

\textwidth, 78

thebibliography, 59

\thispagestyle, 14

\tiny, 69 title, 10

\title, 27

\tnss, 66

\today, 21

\totalheight, 78, 79 umlaut, 23

\underbrace, 40 underfull hbox, 20

\underline, 40 upright, 69 URL, 22

\UsePackage, 11

\usepackage, 11, 24, 25, 67

\vdots, 43

\vec, 40

\verb, 31, 32 verbatim, 7, 62 verbatim, 31, 62

\verbatiminput, 62 verse, 31

\vspace, 74

\widehat, 40

\widetilde, 40

\width, 78, 79 www, 22 WYSIWYG, 3 色付き文字, 9 引用符, 21 Y=, 5 改行, 19 角括弧, 6 拡張子, 11 片面印刷用, 10 括弧, 42

角括弧, 6 中括弧, 6 ブラケット, 6 ブレース, 6 環境

array, 44 center, 30 command, 65 comment, 7 description, 29 displaymath, 37 enumerate, 29 eqnarray, 44 equation, 37 figure, 34, 35 flushleft, 30 flushright, 30 itemize, 29 math, 37 minipage, 78 quotation, 31 quote, 30 table, 34, 35 tabular, 32, 78 thebibliography, 59 verbatim, 31, 62 verse, 31

88 索 引 画像, 57

行間隔, 72 空行, 5

区切り記号, 42 言語, 24

英語以外の, 24 構造, 7

壊れやすいコマンド, 63 合字, 23

索引, 60 参考文献, 59 三点リーダ, 42 式, 37

指数, 39 支柱, 80

小数点で揃える, 33 省略記号, 22 剰余関数, 41 垂直方向

—のスペース, 74

—のド ット, 43 水平

—な直線, 40

—なブレース( 中括弧), 40 水平方向

—のスペース, 73

—のド ット, 43 数式, 37

関数, 40 記号, 50 区切り記号, 42 文字サイズ, 46 アクセント, 40, 50 グループ 化, 39

スペース, 43 ボールド 体, 48

マイナス記号, 22 数式スペース, 43 寸法, 73, 74 図, 9, 57

積記号, 41 積分記号, 41 相互参照, 28 総和記号, 41 添字, 39

上付き, 39 下付き, 39 単位, 73, 74 段落, 17 中括弧, 6 点のないıと, 23 特殊文字, 5, 23 長い数式, 45

斜め方向のド ット, 43 二段組, 10

入力ファイル, 8 配置場所, 34 引数, 6 左寄せ, 30 表, 32 表題, 10, 27 複数の数式, 44 太文字記号, 48 浮動体, 34 文書クラス, 9

article, 9 book, 9 report, 9 分数, 41 平方根, 39 右寄せ, 30 目次, 27 文字

—の大きさ, 69

—サイズ, 69 文字サイズ, 69

基本—, 10 数式の—, 46 文書の—, 10 矢印記号, 40

索 引 89 幽霊, 45

用紙サイズ, 10 A4, 10 A5, 10 B5, 10 executive, 10 legal, 10 letter, 10 両面印刷用, 10 例題, 5

アキュート, 23 アクセント

acute, 23 grave, 23 umlaut, 23

数式モード における—, 50 アクセント記号, 23

ウムラウト, 23 エムダッシュ, 22 エンコーデ ィング, 12 エンダッシュ, 22 オプション引数, 6, 9 ギ リシャ文字, 39 クラスファイル

article, 9 book, 9 report, 9 グループ 化, 69 グレ イブ, 23 コマンド, 6

\!, 43

\(, 37

\), 37

\,, 38, 43

\-, 20

\:, 43

\;, 43

\@, 25

\[, 37

\\, 19, 30–32, 74

\\*, 19

\], 37

\addtolength, 76

\and, 27

\appendix, 26

\arccos, 40

\arcsin, 40

\arctan, 40

\arg, 40

\atop, 41

\author, 27

\backmatter, 27

\backslash, 6

\begin, 29

\bibitem, 59

\Big, 42

\big, 42

\Bigg, 42

\bigg, 42

\binom, 41

\bmod, 41

\boldmath, 48

\boldsymbol, 49

\caption, 35, 63

\cdots, 42

\chapter, 26

\chaptermark, 61

\choose, 41

\ci, 65

\cite, 59

\cleardoublepage, 36

\clearpage, 36

\cos, 40

\cosh, 40

\cot, 40

\coth, 40

\csc, 40

\date, 27

\ddots, 43

\deg, 40

90 索 引

\depth, 78, 79

\det, 40

\dim, 40

\displaystyle, 46

\documentclass, 8, 9, 11, 20

\dum, 65

\emph, 29, 69

\end, 29

\exp, 40

\footnote, 28, 63

\footnotesize, 69

\frac, 41

\fragile, 63

\framebox, 78

\frenchspacing, 26

\frontmatter, 27

\fussy, 20

\gcd, 40

\genfrac, 41

\height, 78, 79

\hline, 32

\hom, 40

\hspace, 67, 73

\Huge, 69

\huge, 69

\hyphenation, 20

\idotsint, 43

\iiiint, 43

\iiint, 43

\iint, 43

\include, 14

\includegraphics, 58, 78

\includeonly, 14

\indent, 73

\index, 60

\inf, 40

\input, 14

\int, 41

\item, 29

\ker, 40

\label, 28, 38

\LARGE, 69

\Large, 69

\large, 69

\LaTeX, 21

\LaTeXe, 21

\ldots, 22, 42

\left, 42

\left., 42

\leftmark, 61

\lg, 40

\lim, 40

\liminf, 40

\limsup, 40

\linebreak, 19

\linespread, 72

\listoffigures, 36

\listoftables, 36

\ln, 40

\log, 40

\mainmatter, 27

\makebox, 78

\makeindex, 60

\maketitle, 27

\mathbb, 39

\mathbf, 70

\mathcal, 70

\mathit, 70

\mathnormal, 70

\mathrm, 46, 70

\mathsf, 70

\mathtt, 70

\max, 40

\mbox, 21, 23, 78

\min, 40

\multicolumn, 33

\newcommand, 66

\newenvironment, 67

\newline, 19

\newpage, 19

索 引 91

\newtheorem, 47

\noindent, 73

\nolinebreak, 19

\nonumber, 45

\nopagebreak, 19

\normalsize, 69

\overbrace, 40

\overleftarrow, 40

\overline, 40

\overrightarrow, 40

\pagebreak, 19

\pageref, 28

\pagestyle, 13

\paragraph, 26

\parbox, 78

\parindent, 72

\parskip, 72

\part, 26

\phantom, 45, 63

\pmod, 41

\Pr, 40

\printindex, 61

\prod, 41

\protect, 63

\providecommand, 66

\ProvidesPackage, 68

\qquad, 38, 43

\quad, 38, 43

\raisebox, 79

\ref, 28, 38

\renewcomannd, 66

\renewenvironment, 67

\right, 42, 44

\right., 42

\rightmark, 61

\rule, 67, 79, 80

\scriptscriptstyle, 46

\scriptsize, 69

\scriptstyle, 46

\sec, 40

\section, 26, 63

\sectionmark, 61

\setlength, 72, 76

\settodepth, 77

\settoheight, 77

\settowidth, 77

\sin, 40

\sinh, 40

\sloppy, 20

\small, 69

\sqrt, 39

\stackrel, 41

\stretch, 67, 73

\subparagraph, 26

\subsection, 26

\subsectionmark, 61

\subsubsection, 26

\sum, 41

\sup, 40

\tableofcontents, 27

\tan, 40

\tanh, 40

\TeX, 21

\textbf, 69

\textit, 69

\textmd, 69

\textnormal, 69

\textrm, 46, 69

\textsc, 69

\textsf, 69

\textsl, 69

\textstyle, 46

\texttt, 69

\textup, 69

\textwidth, 78

\thispagestyle, 14

\tiny, 69

\title, 27

\tnss, 66

\today, 21

92 索 引

\totalheight, 78, 79

\underbrace, 40

\underline, 40

\UsePackage, 11

\usepackage, 11, 24, 25, 67

\vdots, 43

\vec, 40

\verb, 31, 32

\verbatiminput, 62

\vspace, 74

\widehat, 40

\widetilde, 40

\width, 78, 79 コメント, 7

コンマ, 22

スカンジナビア文字, 23 スペース, 5

改行しない, 25 数式の—, 43 タイトル, 10 ダッシュ, 22 ダブルスペース, 72 チルダ, 22, 40 チルダ, 25

テキストモード, 38 ド イツ語, 24 ド ット

垂直方向の—, 43 水平方向の—, 43 斜め方向の—, 43 ハイフン, 22

バックスラッシュ, 5, 6

\, 5 Y=, 5

パッケージ, 7, 9, 65 amsbsy, 49 amsfonts, 38, 56

amsmath, 41–43, 45, 49 amssymb, 39, 50

babel, 20, 24

calc, 76 dcolumn, 33 doc, 12 eucal, 56 eufrak, 56 exscale, 12, 42 fancyhdr, 61, 62 fontenc, 12, 25 graphicx, 57 ifthen, 12 indentfirst, 73 inputenc, 12, 24 latexsym, 12 layout, 76 makeidx, 12, 60 mathrsfs, 56 showidx, 61 syntonly, 12, 14 verbatim, 7, 62 ピリオド, 22 ファイル形式, 11 フォント, 68

—の大きさ, 10, 69 フォントサイズ, 10, 68, 69 フッタ, 13

ブラケット, 6

ブラックボードボールド 体, 38 ブレース, 6, 69

プライム, 40 プ リアンブル, 7 ヘッダ, 13 ベクトル, 40 ページスタイル, 13

empty, 13 headings, 13 plain, 13

ページレ イアウト, 74 ホワイトスペース, 5

行頭の—, 5

コマンド のあとの—, 6

索 引 93 ボールド 記号, 38, 48

マージン, 74 マイナス記号, 22