KTUGFaq

KTUG FAQ

α:
йȣ:
You are scrupulously honest, frank, and straightforward.
FrontPage占쏙옙占쏙옙占쏙옙占쏙옙占 › 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 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.}
    

    \noindent\hbox{Find out what it means to spread the box.}

\noindent\hbox to \hsize{Find out what it means to spread the box.}

\noindent\hbox spread 10pt{Make your days.}
    []

    1.2 hbox vbox

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

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

    []

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

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

    ڽ̸ ڽ \lastbox ̸ ޴´. ڽ ƴϸ \lastbox void ȴ. {\setbox0=\lastbox} ڽ Ʈ ִ. ̰ ̿ : KTUGOperate:11742

    []

    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 
    

    \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.5 box ġ

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

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

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

    \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
    []

    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 box ġ

    []

    2.7.1 moveleft, moveright

    ɵ ڽ ־ (dimen)ŭ Ǵ ̵ Ѵ.
    \vbox{\vbox{Phoebe}\vbox{walked}
    \moveleft 20pt\vbox{a}\moveright 20pt\vbox{crooked}%
    \vbox{mile.}}
    

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

    \TeX
    \lower.7ex \raise-.7ex .

    []

    3 Ư ڽ

    []

    3.1 strut

    strut 0̰ ̿ ̸ Ư ڽ̴.
    []

    3.2 mathstrut

    \mathstrut 0 ʴ ڽԴϴ. \mathstrut ̿ ̴ ȣ `(' ̿ ̿ ϴ. \mathstrut ϴ ĵ ̿ ̸ ˴ϴ.

    \mathstrut ϴ Ѱ
    ${\sqrt{a}+\sqrt{d}+\sqrt{y}$
    
    ${\sqrt{a}+\sqrt{d}+\sqrt{y}$ ó Ʈȣ Ʒ 龦ϴµ, ̷ 쿡 \sqrtȿ \mathstrut ؼ,
    ${\sqrt{\mathstrut a}+\sqrt{\mathstrut d}+\sqrt{\mathstrut y}$
    
    ${\sqrt{\mathstrut a}+\sqrt{\mathstrut d}+\sqrt{\mathstrut y}$ ó Ʈȣ ũ⸦ ϰ ֽϴ.
    []

    3.3 phantom

    μ ־ ڽŭ ڽ ġѴ.

    []

    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$$
    

    $${\smash{r_m \brace r_n}\vphantom{r}} \Longrightarrow r$$
    []

    3.6 null

    \null̶, width=0, height=0, depth=0 hbox̴.

    []

    4 Rule

    rule ä box̴.

    []

    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}
    

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

    \hbox to 3in{Start {\dotfill} Finish}
\hbox to 3in{Swedish {\hrulefill} Finnish}
    []

    4.4 leftarrowfill, rightarrowfill

    \hbox to 3in{\vrule \rightarrowfill \ 3in
      \leftarrowfill\vrule}
    

    \hbox to 3in{\vrule \rightarrowfill \ 3in
  \leftarrowfill\vrule}

    []

    5 LaTeX ڽ ɰ ȯ


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