KTUGFaq

KTUG FAQ

α:
йȣ:
Let him who takes the Plunge remember to return it by Tuesday.
Karnes/2006-03占쌜뀐옙占쏙옙占쏙옙占쌜깍옙&value=LaTeX으로일본어사용HANGULkStyle畸환&value=명령행UTF8ѱ › LaTeXBoxes
TeX ڽ ϴ ؼ Box . ⼭ LaTeX ̴ ڽ ó Ѵ.

1 ⺻ ڽ
1.1 makebox, mbox
1.2 framebox, fbox
1.3 savebox, sbox, usebox
1.4 rule strut
1.5 lrbox ȯ
1.6 parbox
1.7 minipage ȯ
2 Fancy Boxes (fancybox Ű)
2.1 boxput
2.2 fancypage
2.3 flushleft, flushright, center, itemize, enumerate, description ׵θ
2.4 verbatim box
3 Break Box
4 亯, TIP
4.1 minipage frame ĥ °?
4.2 framebox ϴ
5 ׸(picture) ȯ ڽ
[]

1 ⺻ ڽ

[]

1.1 makebox, mbox

\makebox[<width>][<pos>]{<obj>}

<width> <pos> Ѵ. <pos> ִ.
ǹ
l
r
c
s stretched

\makebox[2\width][l]{That's all folks!}
\makebox[2\width][r]{That's all folks!}
\makebox[2\width][c]{That's all folks!}
\makebox[2\width][s]{That's all folks!}

  • \makebox Ҹ ڵ \width, \height, \depth, \totalheight ȴ.

makeboxtest.jpg

\mbox \makebox ̴. ɼǾ \mbox{obj} ̰ \makebox{obj} ǥ̴. \mbox ⺻ Ʈ( ؽƮ ) 缳ǹǷ, math mode ణ ؽƮ ִ.

[]

1.2 framebox, fbox

\framebox \makebox ڽ ֺ ѷδ ͸ ٸ. \fbox \framebox μ ɼǾ \fbox{obj} δ.

  • frame line β \fboxrule
  • ؽƮ \fboxsep
  • "̰"(see ̺)̹Ƿ \setlength, \addtolength Ѵ.

\framebox[2\width][l]{That's all folks!}
\framebox[2\width][r]{That's all folks!}
\framebox[2\width][c]{That's all folks!}
\framebox[2\width][s]{That's all folks!}

frameboxtest.jpg

[]

1.3 savebox, sbox, usebox

ڽ Ѵ.
\newsavebox{\cmd}

ڽ ҴѴ.
\savebox{\cmd}[_width_][_pos_]{_obj_}

\newsavebox{\MyBox}
\savebox{\MyBox}[2\width][c]{That's all folks!}
\fbox{\usebox{\MyBox}}\usebox{\MyBox}

_width_ _pos_ \makebox \framebox ϴ. \sbox ɼǾ \savebox ٿ ̴.


[]

1.4 rule strut

See Box.
Compare \fbox{this} with \fbox{\rule[-.5cm]{0mm}{1cm}this}.


[]

1.5 lrbox ȯ

\newsavebox{\temp}
\begin{lrbox}{\temp}
The characters \verb|~ # $ % ^ & _|
are special.
\end{lrbox}
\usebox{\temp}


  • verbatim ؽƮ ִ.
  • ڽ ȿ ೪ ȴ.
  • lrbox յ õȴ.
  • ̻ .

[]

1.6 parbox

\parbox[_pos_][_height_][_inner_pos_]{*width*}{*text*}

(paragraph) ü ϳ ڽ ̴. ڽ ݵ *width* ؾ Ѵ. ġ(_pos_) .
ġ ǹ
t ڽ ù baseline ĵȴ.
b ڽ baseline ĵȴ.
c ̽ η ߾ӿ ĵȴ.
s c ϴ.

I \parbox[t]{10pt}{t\\h\\i\\n\\k}
\parbox[b]{10pt}{M\\a\\r\\s} is
\parbox[c]{10pt}{c\\a\\l\\l\\e\\d}
\parbox[s]{35pt}{the Red Planet.}

I \fbox{\parbox[t]{10pt}{t\\h\\i\\n\\k}}
\fbox{\parbox[b]{10pt}{M\\a\\r\\s}} is
\fbox{\parbox[c]{10pt}{c\\a\\l\\l\\e\\d}}
\fbox{\parbox[s]{35pt}{the Red Planet.}}
_inner_pos_, _pos_ ġڸ ϵ, ڽ ü ̽ ġ ƴ϶ ڽ ȿ ؽƮ obj ġ ϴ ̴. _height_ 쿡 ǹ̰ ִ.

\parbox[t][20pt][b]{10pt}{T}

\fbox{\parbox[t][20pt][b]{10pt}{T}}
parbox ȿ verbatim .

[]

1.7 minipage ȯ

minipage \textwidth \columnwidth Ͽ ϳ ó ٷ ִ ڽ . ָ ִٴ ߿ . parbox minipage ڽ̱ ڽ Բ ʴ´. ޸ ڽ 츮 ۾ ࿡ ߾ ڸ minipage ʴ ϰų Ҹ ְ, page ʴ ߶ ʴ ̹Ƿ :) minipage ߶ ʴ 翬 ̴.

\begin{minipage}[_pos_][_height_][_inner_pos_]{*width*}
  text of minipage
\end{minipage}

ɼǵ ǹ̴ parbox .

\begin{minipage}{150pt}
parbox minipage     ڽ̱     ڽ Բ  ʴ´.
޸ ڽ   츮 ۾ ࿡ ߾ ڸ 
minipage    ʴ  ϰų Ҹ  ְ, page   ʴ  
߶ ʴ ̹Ƿ\footnote{Դϴ.} minipage ߶ ʴ  翬 ̴.
\end{minipage}

\begin{minipage}{300pt}
parbox minipage     ڽ̱     ڽ Բ  ʴ´.
޸ ڽ   츮 ۾ ࿡ ߾ ڸ 
minipage    ʴ  ϰų Ҹ  ְ, page   ʴ  
߶ ʴ ̹Ƿ\footnote{Դϴ.} minipage ߶ ʴ  翬 ̴.
\end{minipage}
<!> minipage ̿ ̱ MinipageFootnote ϶.

[]

2 Fancy Boxes (fancybox Ű)

Timothy Van Zandt fancybox Ű ڽ Ѵ.
\shadowbox{Shadow box}
\doublebox{Double box}
\ovalbox{Oval box}
\Ovalbox{Alternative oval box}

ovalboxboxes.jpg

[]

2.1 boxput

\boxput Ư ġ ̻ ڽ ĵ ְ Ѵ. \boxput ù° ڽ ĸ鿡 ׸, \boxput* ù° ڽ 鿡 ׸.


[]

2.2 fancypage

ü ڽ ׸. ׸ \thisfancypage . μ µ, ù° text body κп ׸ framḛ, ι° header/footer ü ׸ frame̴.
\usepackage{fancybox} %fancybox package Ϻ̹Ƿ preemble ־ ־ Ѵ. 
% Ϲ οǴ 
\thisfancypage % ڽ ΰ ׸ 
  {\setlength{\fboxsep}{8pt} \setlength{\shadowsize}{8pt} \shadowbox} % text bodyκп shadow box
  {\setlength{\fboxsep}{8pt} \Ovalbox} % header/footerܰ ovalbox ׸ 
%  ܼϰ header/footer  text body box ׸ Ʒ  Էϸ ȴ.
\thisfancypage{\fbox}{}

[]

2.3 flushleft, flushright, center, itemize, enumerate, description ׵θ

شϴ ȯ ִ.
  • Bflushleft
  • Bflushright
  • Bcenter
  • Bitemize
  • Benumerate
  • Bdescription

[]

2.4 verbatim box

fancybox Ű ̿ϸ verbatim ؽƮ ׵θ ĥ ִ. VerbatimBoxes ϶.

[]

3 Break Box

ڽ BreakBoxes .

[]

4 亯, TIP

[]

4.1 minipage frame ĥ °?

  1. fancybox Sbox ȯ ̿Ѵ.
    \newenvironment{fminipage}%
     {\begin{Sbox}\begin{minipage}}
     {\end{minipage}\end{Sbox}\fbox{TheSbox}}
    
    \begin{fminipage}{200pt}
    This is a framed minipage\footnote{not a parbox!}.
    We can use this framed minipage with fancybox package.
    \end{fminipage}
    
  2. minipage lrbox ȯ saveڽϿٰ flushϴ .
    \newsavebox{\mysavebox}
    \newenvironment{myframedminipage}%
      {\begin{lrbox}{\mysavebox}\begin{minipage}{\textwidth}}%
      {%
         \end{minipage}\end{lrbox}\fbox{\usebox{\mysavebox}}%
      }
    
    \begin{myframedminipage}
    츮   б ƿ ۸۸ ġ ݰٰ ۸۸.
    츮   б ƿ ۸۸ ġ ݰٰ ۸۸.
    \end{myframedminipage}
    
    \newsavebox{\mysavebox}
\newenvironment{myframedminipage}%
  {\begin{lrbox}{\mysavebox}\begin{minipage}{.5\textwidth}}%
  {\end{minipage}\end{lrbox}\fbox{\usebox{\mysavebox}}%
}
\begin{myframedminipage}
츮   б ƿ ۸۸ ġ ݰٰ ۸۸.
츮   б ƿ ۸۸ ġ ݰٰ ۸۸.
\end{myframedminipage}
  3. framed Ű framed ȯ(̰ ̹Ƿ BreakBoxes ).
    \usepackage{framed}
    
    \begin{framed}
    츮   б ƿ ۸۸ ġ ݰٰ ۸۸.
    츮   б ƿ ۸۸ ġ ݰٰ ۸۸.
    \end{framed}
    
  4. ȯ ؽƮ verbatim ؽƮ ܺ Ͽٰ ҷ .
    \usepackage{verbatim}
    \makeatletter
    \newwrite\myverb@out
    \def\outfilename{tmpout.tmp}
    \newenvironment{mfminpage}%
    	{\begingroup\@bsphack
    	 \immediate\openout\myverb@out\outfilename
    	 \let\do\@makeother\dospecials\catcode`\^^M\active
    	 \def\verbatim@processline{%
    	 	\immediate\write\myverb@out{\the\verbatim@line}}%
    	 \verbatim@start}%
    	{\immediate\closeout\myverb@out\@esphack\endgroup\fbox{\minipage{\textwidth}\input
             \outfilename\endminipage}\ignorespacesafterend}
    \makeatother
    
    \begin{mfminpage}
    츮   б ƿ ۸۸ ġ ݰٰ ۸۸.
    츮   б ƿ ۸۸ ġ ݰٰ ۸۸.
    \end{mfminpage}
    
[]

4.2 framebox ϴ

  1. moreverb Ű boxedverbatim ȯ verbatim ؽƮ ϸ鼭 ٿ width .
  2. KTUGOperate:9455 pbox.sty
    %%------example-------
    \documentclass{article}
    \usepackage{hfont}
    \usepackage{pbox}
    
    \newcommand\myflexwidthbox[1]{%
    	\fbox{\pbox{\textwidth}{#1}}%
    }
    	
    \begin{document}
    
    \myflexwidthbox{
    ٶ \\
    ׽Ʈ \\
    ˶ \\
    \textcopyright \texttrademark
    }
    
    \myflexwidthbox{
    ٶ ׽Ʈ \\
    ˶ \\
    \textcopyright \texttrademark
    }
    
    \end{document}
    
  3. varwidth.sty
    %%--------- sample of varwidth ----
    \documentclass{article}
    \usepackage{hfont}
    \usepackage{varwidth}
    
    \begin{document}
    
    \fbox{\begin{varwidth}{.5\textwidth}
    ٶ \\
    ׽Ʈ \\
    ˶
    \end{varwidth}}
    
    \fbox{\begin{varwidth}{.5\textwidth}
    ٶ ׽Ʈ \\
    ˶
    \end{varwidth}}
    
    \end{document}
    
[]

5 ׸(picture) ȯ ڽ


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-03-18 00:31:41
Processing time 0.0681 sec