KTUGFaq

KTUG FAQ

Box (rev. 1.7)

α:
йȣ:
Standing on head makes smile of frown, but rest of face also upside down.
FindPage&value=DHUcs/HelpOnFormattingHJhan&value=ۼýKTSConference/AsiaTeX08&value=GoTo占쏙옙占쏙옙占DVIPDFMx&value=DHUcs/TitleIndex › Box

1 ڽ
1.1 hbox to hbox spread
1.2 hbox vbox
1.3 vbox vtop
2 PlainTeX Box ó
2.1 Box Register
2.2 ڽ
2.3 \lastbox
2.4 ڽ üũ
2.5 box ġ
2.6 \copy, \unhbox, \unhcopy etc.
2.7 box ġ
2.7.1 moveleft, moveright
2.7.2 lower, raise
3 Ư ڽ
3.1 strut
3.2 mathstrut
3.3 phantom
3.4 hphantom, vphantom
3.5 smash
3.6 null
4 Rule
4.1 hrule
4.2 leaders
4.3 dotfill, hrulefill
4.4 leftarrowfill, rightarrowfill
5 LaTeX ڽ ɰ ȯ

[]

1 ڽ

TeX ڽ óѴ. ڽ ⺻ . boxdefault.jpg

  • ׸ڽ 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 vbox

KTUGOperate:12284 \hbox ٳ Ͼ ʽϴ. ̴ ٷ ǰ horizontal .

\vbox θ ѳ(\hsize ֽϴ.) η ε, ȿ ؽƮ ٳ ˴ϴ. Ͼ ʽϴ. TeX "" \hsize \textwidth \vbox ŵϴ.

[]

1.2 vbox vtop

\vbox \vtop ̴ ̻ ؽƮ vbox , \vbox height \vtop depth ٴ ̴. , \vtop baseline Ʒ ڽ (baseline , depth ) \vbox ؽƮ ڽ (baseline , height ).

\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.

\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 PlainTeX Box ó

[]

2.1 Box Register

PlainTeX Box Register \box0 \box255 256 غǾ ִ.
ڴ \box0 \box9 Ѵ.(scratch boxes) ٸ box register κ PlainTeX ýۿ Ͽ Ǵ ͵̴. \box255 Ư 뵵 Ǵ ̹Ƿ ʴ´.

\setbox0\hbox{This is My New Box.}
ڽ \box0̶ register ȣ ȴ.

[]

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.3 ڽ üũ

\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 

\newbox\mynewbox
\setbox\mynewbox\hbox{This is My Newly Defined Box.}
\newdimen\MyTestDimen
\noindent\MyTestDimen=\wd\mynewbox
\the\MyTestDimen \\
\MyTestDimen=\dp\mynewbox
\the\MyTestDimen \\
\MyTestDimen=\ht\mynewbox
\the\MyTestDimen
[]

2.4 box ġ

, \mynewbox ġѴ. register number Ǵ ڽ ִٸ ̰ \boxn ȣϸ ȴ.

\setbox0\hbox{this is My Box.}
\box0

\setbox0\hbox{this is My Box.}
\box0
̸ Ǵ ڽ \box .

\newbox\mynewbox
\setbox\mynewbox\hbox{This is My Newly Defined Box.}
\box\mynewbox

\newbox\mynewbox
\setbox\mynewbox\hbox{This is My Newly Defined Box.}
\box\mynewbox
[]

3 ڽ /ȯ

[]

3.1 \savebox/\sbox


[]

3.2 \usebox


[]

3.3 \mbox


[]

3.4 \makebox


[]

3.5 \fbox


[]

3.6 \framebox


[]

3.7 \parbox


[]

3.8 minipage


[]

4 rule strut

[]

4.1 \hrule


[]

4.2 \vrule


[]

4.3 Strut


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-02-25 23:19:56
Processing time 0.0558 sec