KTUGFaq
KTUG FAQ
PPower4&value=LaTeX/TitleIndex › TeXShop/LaTeXPanel&value=TeX › TeXmaker/InverseSearch&value=ٴ › 畸旁昉첫&value=은글꼴 › TeXify&value=/TitleIndex › Box
1 ڽ ¶
TeX ڽ óѴ. ڽ ⺻ .
ڽ depth=0̴. baseline bottom line ϴ.
p, g, y baseline Ʒ . ҹ a ̰ topline ġ ʴµ, ̴ Ʈ ο xheight θ. x ̶ ̴.
ѱ ۲ bottom line ε ۲ð baseline ε ۲ ִ. bottom line ε ۲ ڿ Բ ٴ ٴں Ʒ . κ ѱ ۲ baselineٴ Ʒʿ λ baseline bottom line ʴ .
reference point 鿡 ߿ Ư ڽ ȸų ߿ϴ. ϳ ڽ ȸ reference point() ȸѴ.
TeX Ʈ 迡 ̿ؼ ڸ box Ͽ ̰ ٿ ܾ ܾ ڽ ٽ ٿ ڽ ٿ ڵȴ. ڽ ڽ Ǯ(glue) ϴµ Ǯ ü ̰ ִ(ڹڽ ̿ κ 0, ܾڽ ̿ ̸ rubber glue. vertical mode glue ʰ lineskip skip̶ Ѵ.) ϳ ڽ̴.
ڽ ٿ ܾ horizontal mode ϰ, Ƽ ܶ vertical mode Ѵ.
ϳ text body vertical mode box ̿ܿ header ڽ footer ڽ ְ, 쿡 MarginalNote ڽ ̱ Ѵ.
1.1 hbox to hbox spread ¶
\hbox to Ǵ spread ڸ ִ. ̰ ; Ѵ.
\hbox{Find out what it means to spread the box.} \hbox to .5\hsize{Find out what it means to spread the box.} \hbox spread 20pt{Make your days.}
1.3 vbox vtop ¶
\vtop \vtop to \vtop spread \vbox \vbox to \vbox spread
- ܼ \vbox ϸ natural height ´.
- \vbox to <dimen> ϸ vbox height <dimen> ȴ.
- \vbox spread <dimen> ϸ vbox height natural height + <dimen> ȴ.
\TeX\ assembles boxes % \vtop{\hsize=70pt\noindent\it of different sizes and shapes} % \vbox{\hsize=78pt\noindent\bf having as many words as you wish} % \newline into paragraphs and pages---as this example clearly shows.
2.2 ڽ ¶
box register ϴ ̹Ƿ, PlainTeX ڽ register number ƴ϶ unique name ֵ ϰ ִ.
ο ڽ ̸ Ѵ.
\newbox\mynewbox
ڽ \mynewbox Ī ȴ. box register ڵ Ҵȴ.
ڽ ä־ Ѵ. void box ٷ ̴.
\setbox\mynewbox\hbox{This is My Newly Defined Box.}
ڽ Ҵ̶ Ѵ.
2.4 ڽ üũ ¶
\mynewbox width, depth, height Ͽ ִ.
\wd\mynewbox \dp\mynewbox \ht\mynewbox
ο dimension \MyTestDimen ϳ ؼ ÷غ.
\newdimen\MyTestDimen \MyTestDimen=\wd\mynewbox the width of mynewbox : \the\MyTestDimen \\ \MyTestDimen=\dp\mynewbox the width of mynewbox : \the\MyTestDimen \\ \MyTestDimen=\ht\mynewbox the width of mynewbox : \the\MyTestDimen
2.5 box ġ ¶
, \mynewbox ġѴ.
register number Ǵ ڽ ִٸ ̰ \box<register number> ȣϸ ȴ.
\setbox0\hbox{this is My Box.} \box0
̸ Ǵ ڽ register number ̸ .
\newbox\mynewbox \setbox\mynewbox\hbox{This is My Newly Defined Box.} \box\mynewbox
2.6 \copy, \unhbox, \unhcopy etc. ¶
\boxn ȣ ̷ ڽ register . Ƿ ڽ ϸ鼭 ڽ ġϷ \copy Ѵ.
\setbox0= \hbox{good } Have a \copy0 \box0 \box0 day!
\unhbox ־ hbox register listϰ ڽ register . \unvbox vbox ؼ .
\unhcopy ־ hbox register listϰ ڽ register ״ Ѵ. \unvcopy vbox ؼ .
2.7.1 moveleft, moveright ¶
ɵ ڽ ־ (dimen)ŭ Ǵ ̵ Ѵ.
\vbox{\vbox{Phoebe}\vbox{walked} \moveleft 20pt\vbox{a}\moveright 20pt\vbox{crooked}% \vbox{mile.}}
2.7.2 lower, raise ¶
\raise \lower box ´. õ ̸ŭ ڽ øų .
TeX ΰ ǵȴ.
\def\TeX{% T\kern-0.1667em \lower0.7ex\hbox{E}\kern-0.125emX}
\lower.7ex \raise-.7ex .
3.2 mathstrut ¶
\mathstrut 0 ʴ ڽԴϴ. \mathstrut ̿ ̴ ȣ `(' ̿ ̿
ϴ. \mathstrut ϴ ĵ ̿ ̸ ˴ϴ.
\mathstrut ϴ Ѱ
${\sqrt{a}+\sqrt{d}+\sqrt{y}$ó Ʈȣ Ʒ 龦ϴµ, ̷ 쿡 \sqrtȿ \mathstrut ؼ,
${\sqrt{\mathstrut a}+\sqrt{\mathstrut d}+\sqrt{\mathstrut y}$ó Ʈȣ ũ⸦ ϰ ֽϴ.
3.4 hphantom, vphantom ¶
phantom , μŭ α̿ α̸ ڽ ġѴٴ ٸ. \hphantom{a} ⺻ Ʈ a \wdŭ \wd height depth 0 ڽ Ѵ.
3.5 smash ¶
μ ־ ڸ typeset ڰ ڽ height depth 0 .
$${\smash{r_m \brace r_n}\vphantom{r}} \Longrightarrow r$$
4.1 hrule ¶
\hrule \hrule height <dimen> width <dimen> depth <dimen> \vrule \vrule width <dimen> height <dimen> depth <dimen>
\hrule ⺻ height 0.4pt, depth 0.0pt̴. width rule ִ ڽ ̴.
\vrule ⺻ width 0.4pt̴. height depth rule ִ ڽ Ʒ ȴ.
ڵ带 غ.
\hrule\smallskip \hrule width 2in \smallskip \hrule width 3in height 2pt \smallskip \hrule width 3in depth 2pt
\hbox{( {\vrule} {\vrule width 8pt} )} \hbox {(\vrule height 13pt depth 0pt} {\vrule height 13pt depth 7pt} x)}
4.2 leaders ¶
\leaders (hofizontal mode) `\leaders<box or rule>\hskip<glue>' Ǵµ, ̴ ־ box Ǵ rule ־ () ȿ ݺؼ äִ Դϴ. ⼭ box Ǵ rule ̶ ϸ ˴ϴ. ־ ȿ ؼ ݺǴ ǹմϴ. \learders Ʒ "" ַ ˴ϴ. (Ʒ TeXbook 223ʿ Ͽϴ.)
\def\leaderfill{\leaders\hbox to 1em{\hss.\hss}\hfill} \line{Alpha\leaderfill Omega} \line{The Beginning\leaderfill The Ending}
4.3 dotfill, hrulefill ¶
\hbox to 3in{Start {\dotfill} Finish} \hbox to 3in{Swedish {\hrulefill} Finnish}