KTUGFaq

KTUG FAQ

α:
йȣ:
Deprive a mirror of its silver and even the Czar won't see his face.
CVSμġϱ/Win&value=CVS%B7%CE%BC%B3%C4%A1%C7%CF%B1%E2/WordIndexPostScript۲KTSConference/AsiaTeX08&value=WindowsTeXLive2012koTeXġϱ占쏙옙占십뤄옙체/HelpOnFormattingpyTeX&value=ġϱ › Tabularȯ
tabular ȯ

tabular ȯ Tableȯ ޸ inline ü(floating )̴.


1 Ϲ
2 array Ű ̿ Ȯ
3 Ÿ
4 KTUGBoard:651() , Ÿ
4.1 multirow Ű
4.2 \raisebox
4.3 ǥ () Ʈȯ
4.4 ǥ () 밢 ׸
4.5 p{...} 
4.6 booktabs Ű
4.7 colortbl Ű
4.8 hhline Ű
4.9 arydshln Ű
4.10 makecell Ű
5 ǥ()
5.1 array Ű m Į
5.2 multirow vertical centering
5.3 \raisebox ̿Ͽ
5.4 ǥ /Ʒ
5.5
6 Tabular ǥϱ
6.1 μ
6.1.1 mdwtab Ű
6.1.2 array Ű ̿
6.2 μ
6.3 booktabs Ű
7 ġ ǥ
8 ǥ (by Progress)
9 ΰ̻ Ķ׷ Table ֱ
9.1 з׷ ֱ
9.1.1 minipage ̿
9.1.2 TabularY Ű ̿
10 TabularX
11 TabularY
12 Ÿ Q & A
12.1 \tabularnewline
12.2 Ҽ
12.3 sideways table
12.4 adjustwidth
12.5 multirow + colortbl
12.6 arraystretch
13 ׹
14 Tabu Ű

[]

1 Ϲ

\begin{tabular}[ġ]{Į}
 Į 1 & Į 2 ... & Į n \\
 ...
 ...
\end{tabular}
Ǵ
\begin{tabular*}{}[ġ]{Į}
 Į 1 & Į 2 ... & Į n \\
 ...
 ...
\end{tabular*}

ǥ(*) ȯ ǥ ְ Ѵ. ǥ 뿡 ڵ .
(!) ǥ ü (width) ϰ ٷ ؼ TabularX TabularY .

Į
  • l :
  • r :
  • c : 
  • p{} : Į Ƿ ִ.
  • | :
  • @{text} : ࿡ text ϰ Į ֹ. ̷ν Ҽ . lshort-kr 2.11.5 . ׷ text \extracolsep{} Į̿ Ѵ. :
    \begin{tabular*}{0.75\textwidth}%
          {@{\extracolsep{\fill}}cccr}
      label 1 & label 2 & label 3 & label 4 \\ \hline
      item 1  & item 2  & item 3  & item 4  \\
      % ...
    \end{tabular*}
    
    \begin{tabular*}{0.75\textwidth}%
      {@{\extracolsep{\fill}}cccr}
  label 1 & label 2 & label 3 & label 4 \\ \hline
  item 1  & item 2  & item 3  & item 4  \\
  % ...
\end{tabular*}

  • *{}{Į} : Į ŭ ݺѴ. {*{10}{l}} {llllllllll} .

ġ( ɼ)
  • t : ǥ ֺ ڿ top Ѵ.
  • b : ǥ ֺ ڿ bottom Ѵ.
  • ⺻ ֺ ڿ  ϴ ̴.

ǥ
  • & :
  • \\ : . ڿ \hline ߰ϸ . ´ٸ ̶ \\ ִ´. \cline{n-m} nĮ mĮ .
  • \multicolumn{Į}{ }{} : Į ģ . l,c,r ϳ. \multicolumn{1}{ }{} ٲ۴.

[]

2 array Ű ̿ Ȯ

  • m{} : Į 鼭 .
  • b{} : Į 鼭 ٴ.
  • >{ǥ} : Į տ ǥ . Ʒ p{...}  .
  • <{ǥ} : Į ڿ ǥ .
  • !{ǥ} : | ƴ ǥ ڸ . @{...} ޸ Į ʴ´.

[]

3 Ÿ

See ̺.
  • \tabcolsep
  • \arrayrulewidth
  • \doublerulesep
  • \arraystretch()

(./) array Ű ʿ
  • \arraycolsep
  • \extrarowheight

ʿ
\setlength\extrarowheight{10pt}% extra space on row top
\setlength\arraycolsep{10pt}% extra space on column
.
[]

4 KTUGBoard:651() , Ÿ

[]

4.1 multirow Ű

Ư ࿡ ġ Ѵ.

\usepackage{multirow}    % preamble

\renewcommand{\multirowsetup}{\centering}  % ⺻ \raggedright
\begin{tabular}{c|c|c|c|c|c} \hline
  \multicolumn{2}{c|}{\multirow{2}{15mm}{}}
  & \multirow{2}{10mm}{ 1} & \multirow{2}{10mm}{ 2}
  & \multicolumn{2}{c}{ÿ} \\\cline{5-6}
  \multicolumn{2}{c|}{} & & &  & \\ \hline \hline
  \multirow{3}*{S} & R & 2 & 3 & 4 & 5 \\ \cline{2-6}
  & 4 & 1 & 6 & 9 & 7 \\ \cline{2-6}
  & R & 2 & 3 & 4 & 5 \\ \hline
\end{tabular}
\makeatletter
\input{multirow.sty}    % preamble
\makeatother

\renewcommand{\multirowsetup}{\centering}  % ⺻ \raggedright
\begin{tabular}{c|c|c|c|c|c} \hline
  \multicolumn{2}{c|}{\multirow{2}{15mm}{}}
  & \multirow{2}{10mm}{ 1} & \multirow{2}{10mm}{ 2} 
  & \multicolumn{2}{c}{ÿ} \\\cline{5-6}
  \multicolumn{2}{c|}{} & & &  & \\ \hline \hline
  \multirow{3}*{S} & R & 2 & 3 & 4 & 5 \\ \cline{2-6}
  & 4 & 1 & 6 & 9 & 7 \\ \cline{2-6}
  & R & 2 & 3 & 4 & 5 \\ \hline
\end{tabular}
ڵ vertical centering ִ. ġ ش.
\multirow{2}*[-5ex]{ }


[]

4.2 \raisebox

\begin{tabular}{|c|c|}\hline
  1&\\\cline{1-1}
  10&\\\cline{1-1}
  100&\\\cline{1-1}
  1000&\\\cline{1-1}
  10000&\raisebox{1.8ex}[0pt][0pt]{\includegraphics[scale=0.15]{mu.eps}}\\\hline
\end{tabular}

[]

4.3 ǥ () Ʈȯ

parbox minipage ̿ϸ dz, parbox .
\begin{tabular}{c|c|c|c} \hline
  No. \# & T1  & T2 & Remarks \\ \hline
  \#~46 &  0.14 &   0.63   &  \\ \hline
  \#~47a &  0.14 &
  \parbox{20em}{
    \begin{itemize}
      \item SSSSSSS
      \item FFFFFFF
    \end{itemize}
  }    &   \\ \hline
  \#~48 &  0.15 &   0.67   &   \\ \hline
\end{tabular}
\begin{tabular}{c|c|c|c} \hline
  No. \# & T1  & T2 & Remarks \\ \hline
  \#~46 &  0.14 &   0.63   &  \\ \hline
  \#~47a &  0.14 &
  \parbox{10em}{
    \begin{itemize}
      \item SSSSSSS
      \item FFFFFFF
    \end{itemize}
  }    &   \\ \hline
  \#~48 &  0.15 &   0.67   &   \\ \hline
\end{tabular}

[]

4.4 ǥ () 밢 ׸

SlashBox ̿ ַ Ű texlive ܵ DiagBoxPackage ̿ϴ . See DiagBoxPackage
[]

4.5 p{...} 

\usepackage{array}          % preamble

\begin{tabular}{>{\centering}p{40mm}}
µ ϰ Ϸ...
\usepackage{array,ragged2e}       % preamble

\begin{tabular}{>{\Centering}p{40mm}}
(!) ù ܾ ֱ ؼ \hspace{0pt} \Centering ߰Ѵ.
ٸ ѵΰ  Ϸ Ʒ ִ.
\begin {tabular}{|p{15em}|}
  p Ǿ   ? \\
  \multicolumn{1}{|c|}{ӽ } \\
\end {tabular}


[]

4.6 booktabs Ű

(cf. KTUGOperate:277, KTUGOperate:150759)

LaTeX booktabs Ű ʰ ׳ tabular ȯ ǥ ٰ ̰ δ. ǾƷ ణ , ù , ְų 쿡 󼭴  Ư ̸ ٸ ̺ ϰ ִ. booktabs Ű ̷ 䱸 Ѳ ذϴ Ű̴. , ٰ 0.65ex(default) 쵵 Ǿ ְ ġ ֵ Ǿ ִ.
booktabs Ű ʾ tabular ȯ濡 \hline ۿ booktabs Ű Ʒ \toprule (default 0.08em ), \midrule (default 0.05em ), \bottomrule (default 0.08em ) ٸ Ǿ Ӹ ƴ϶ \midrule[0.5pt] ִ. ׸ Ư ̸ \addlinespace ־ ȴ. \cmidrule(lr){2-3} 2 3 \midrule ֵ ʰ ʿ ణ ִ. 1 4 2 3 ̿ ణ Ϸ \cmidrule(r){1-2}\cmidrule(l){3-4} ϸ ȴ. ̰ ׳ tabular ȯ濡 \cline ϳ \cline ο ݾ δµ \cmidrule ְ ʿ ִ. ٸ ٰ ٽ ʰ ణ ϰ δ.

CTAN:/macros/latex/contrib/booktabs/booktabs.pdf ִ. (Template) ʿϸ Mittelbach The LaTeX Companion, 2nd ed. 269--272 Ͽ CTAN:/info/examples/tlc2/ ִ 5-6-7.ltx, 5-6-8.ltx Ͽ ȴ.

\usepackage{booktabs}          %preamble
\usepackage{multirow}          %preamble    

\renewcommand{\multirowsetup}{\centering}
\begin{tabular}{cccc}
 \toprule
  Case & Box A & Box B & Remarks \\
 \midrule
  \multirow{2}{10mm}{A}
   & $+X$ & $-1.0$ & \multirow{2}{10mm}{B} \\
    \cmidrule(lr){2-3}
   & $-X$ & $-7.9$ & \\
 \bottomrule
\end{tabular}
\makeatletter
\input{booktabs.sty}%
\input{multirow.sty}%
\makeatother

\renewcommand{\multirowsetup}{\centering}
\begin{tabular}{cccc}
 \toprule
  Case & Box A & Box B & Remarks \\ 
 \midrule
  \multirow{2}{10mm}{A}
   & $+X$ & $-1.0$ & \multirow{2}{10mm}{B} \\ 
    \cmidrule(lr){2-3}
   & $-X$ & $-7.9$ & \\
 \bottomrule
\end{tabular}

[]

4.7 colortbl Ű

\usepackage{colortbl}     % preamble

\begin{tabular}{cccc} \hline
  Case & Box A & Box B & Remarks \\\hline
  A    & +X    & -1.0  &         \\\hline
  \rowcolor[gray]{0.9} B & -X & -7.9 & \\\hline
\end{tabular}

colortbl.png
[]

4.8 hhline Ű

㼼ٰ 㰡 ó ְ Ѵ. \hhline ڿ ̴ ڴ .
=   㰡
-   Ȭ
~   \hline  Į
|    Ѿ 
:    Ѿ ʴ 
#   㰡ٰ 㼼  ϵ 
t   㰡ٿ ٰ    ʵ . 
    |t| Ǵ |t:    ǥ ù° ٿ ַ 
b   t  ǥ  

\usepackage{hhline}           % preamble

\begin{tabular}{||cc||c|c||}  % || 㼼
 \hhline{|t:==:t:==:t|}
 a & b & c & d \\
 \hhline{|:==:|~|~||}
 1 & 2 & 3 & 4 \\
 \hhline{#==#~|=#}
 i & j & k & l \\
 \hhline{||--||--||}
 w & x & y & z \\
 \hhline{|b:==:b:==:b|}
\end{tabular}

hhlinetest.jpg
[]

4.9 arydshln Ű

μ(horizontal line) Ǵ μ(vertical line) (dashed rule) Ϸ Ѵ. The LaTeX Companion, 2nd ed. 268ʿ Բ (5-6-4, 5-6-5) ִ. (Template: 5-6-4.ltx, 5-6-5.ltx) CTAN CTAN:/info/examples/tlc2/ ӿ ִ.
(./) 5-6-4.ltx Ͽ ģ (׳ dashed line ).
%%
%% The LaTeX Companion, 2ed
%%
%% Example 5-6-4 on page 268.
%%
%% Copyright (C) 2004 Frank Mittelbach, Michel Goossens,
%%    Johannes Braams, David Carlisle, and Chris Rowley
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See http://www.latex-project.org/lppl.txt for details.
%%

\documentclass{article}%<-ģ κ
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{159.0pt}
%\StartShownPreambleCommands%<-ģ κ
\usepackage{array,arydshln}
\setlength\extrarowheight{4pt}% extra space on row top
%\StopShownPreambleCommands%<-ģ κ
\begin{document}
\begin{tabular}{|c::c|c|}
\hline
 A   & B  & C  \\ \hline
 X   & Y  & Z  \\ \hdashline
100  & 10 & 1  \\ \hline
\end{tabular}
\end{document}

5-6-4.jpg

(./) 5-6-5.ltx Ͽ ģ ( ģ ).
%%
%% The LaTeX Companion, 2ed
%%
%% Example 5-6-5 on page 268.
%%
%% Copyright (C) 2004 Frank Mittelbach, Michel Goossens,
%%    Johannes Braams, David Carlisle, and Chris Rowley
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See http://www.latex-project.org/lppl.txt for details.
%%

\documentclass{article}%<-ģ κ
\pagestyle{empty} \setcounter{page}{6} \setlength\textwidth{159.0pt}
%\StartShownPreambleCommands%<-ģ κ
\usepackage{array,arydshln}
\renewcommand\arraystretch{1.3333}% extra space evenly
                                  % distributed
\setlength\dashlinedash{1pt}
\setlength\dashlinegap{1pt}
%\StopShownPreambleCommands%<-ģ κ
\begin{document}
\begin{tabular}{;{5pt/2pt}c::c:c;{5pt/2pt}}
\hdashline
 A   & B  & C  \\ \hdashline
 X   & Y  & Z  \\ \hdashline[5pt/2pt]
100  & 10 & 1  \\ \hdashline
\end{tabular}
\end{document}

5-6-5.jpg

[]

4.10 makecell Ű

[]

5 ǥ()

[]

5.1 array Ű m Į

array Ű m ڸ ϸ ־ ̸ vertical centering ȴ. Ʒ ǥ .

[]

5.2 multirow vertical centering

MultiRowPackage vertical centering ش. See MultiRowPackage

[]

5.3 \raisebox ̿Ͽ

ɾ \raisebox ǥ  Ŀ ϰ ̿ ִ. ׸ http://www.ktug.or.kr/jsboard/data/operate/files/20031105163340/raisebox.jpg

ϰ ƿ Preamble
  \newcommand{\rb}[1]{\raisebox{-1.5ex}[0pt]{#1}}
Ͽ ΰ
\begin{tabular}{|p{45pt}|p{28pt}|p{28pt}|p{33pt}|p{33pt}|}
  \hline
     & Tree-\par based & Mesh-\par based & Stateless \par
                                multicast& Overlay \par multicast          \\ \hline
  Periodic \par message & \rb{Yes}  & \rb{Yes}  & \rb{No}   & \rb{No}      \\ \hline
  Robustness \par for mobility
                       & \rb{No}    & \rb{Yes}  & \rb{Yes}  & \rb{Yes}     \\ \hline
  Resource \par efficiency
                       & \rb{High}  & \rb{Low}  & \rb{High} & \rb{Medium}  \\ \hline
  Type of \par data packet & Multi-\par cast
                        & Multi-\par cast & Broad-\par cast & \rb{Unicast} \\ \hline
  Control \par overhead & \rb{High} & \rb{High} & \rb{Low}  & \rb{Medium}  \\ \hline
\end{tabular}
ʿ ȴ.

[]

5.4 ǥ /Ʒ

  • \newcommand{\STRUT}{\rule{0in}{3ex}} ó Width , Height ִ Box . ̰ ڿ ڿ ÷ϸ ǥ ׸ŭ .
  • \\[3ex] ó line feed Ŀ ִ.
  • \rule-2mm{0cm}{6mm} ó Strut ִ. ̷ ϸ Box Ʒ -2mm ü ̰ 6mm ǹǷ ؼ Ʒδ 2mm, δ 4mm Cell .

.
\newcommand{\STRUT}{\rule{0in}{3ex}}
\begin{tabular}{|l r@{.}l |p{2cm}|}
\hline
\multicolumn{4}{|c|}
 {\small \bf Extreme Range of Thermal \STRUT} \\ %[1.5ex]
\hline
\multicolumn{4}{|c|}
 {\small \bf Conductivity at 273~K} \\[1.5ex]
\hline
\end{tabular}
table.jpg

[]

5.5

  • Ʒ ﶧ vspace*{} ̿Ѵ.
  • ÷̸ ﶧ \setlength{\tabcolsep}{1cm} ó tabcolsep ̿Ѵ.
  • \parindent ٲپ ε̼ ִ.

̺κ ؼ Ͻô ߽ϴٸ ˷ֽñ ٶϴ. -- smcho

[]

6 Tabular ǥϱ

[]

6.1 μ

[]

6.1.1 mdwtab Ű

.
 \usepackage{mdwtab}  % preamble
 %....
 \begin{tabular}
 {| c !{\vline[2pt]} c | c |}
 \hlx{hv}
 \bf A & \it B & \sf C \\
 \hlx{vhv}
 \bf D & \it E & \sf F \\
 \hlx{vh}
 \end{tabular}
<!> mdwtab Ű \hline \hlx Ѵ.

[]

6.1.2 array Ű ̿

From KTUGOperate:7889
 \usepackage{array} % preamble
 \newcommand\clinewd[1]{\vrule width #1} % preamble

 \begin{tabular}{|c||c|c!{\clinewd{2pt}} }
 \hline

[]

6.2 μ

from KTUGOperate:3539 \hlinewd . LongTable μ ؼ LongTable .
 \documentclass{article}
 \usepackage{array}

 \makeatletter
 \def\hlinewd#1{%
  \noalign{\ifnum0=`}\fi\hrule \@height #1 \futurelet
   \reserved@a\@xhline}
 \makeatother

 \begin{document}
 \begin{tabular}{|c|c!{\vrule width 1pt}c||c|} \hlinewd{3pt}
 Model & $E_k / E_p$ & Non-dim. & Ratio. \\ \hlinewd{3pt}
 A1 & 3.62 & 20.12 & 0.912 \\ \hline
 A5 & 7.10 & 22.75 & 1.139 \\ \hlinewd{3pt}
 \end{tabular}

 \end{document}

[]

6.3 booktabs Ű

booktabs Ű(BookTabsPackage) μ(|) ǥ( ַ ) μ ⸦ ֵ Ѵ. μ(|) ٲ 귾 ϰ Ÿ.

[]

7 ġ ǥ

Tabularȯ ȿ  ǥ ۼ ִ. ϳ ǥ ļ ġؾ ϴ SuperTabular Ǵ LongTable Ѵ. XtabPackage ִ.
[]

8 ǥ (by Progress)

from KTUGOperate:3655

table_centering.gif

\documentclass{report}
\usepackage{array, hfont}
\usepackage[usenames]{color}  %%  Բ ˷ֽ, 
%⺻  ̿ܿ ٸ  ̸ ؼ  

\renewcommand{\arraystretch}{1.6}
%%<==ǥ ٰ . ȣ ڸ ٲ㺸.

\renewcommand{\baselinestretch}{1.6}
%%<==  ٰ. \linespread ɵ  ˻ٶϴ.

\begin{document}

\begin{tabular}{|b{40mm}|m{40mm}|p{40mm}|}
\hline
\centering\textcolor{blue}{ٶ} &   &  \\
\hline
b ɼ    پ!!
ٶ ٻ īŸ ٶ ٻ īŸ &
\centering\textcolor{blue}{ʴ mɼ   !! \\
            } & ʴ pɼ
 ٴڿ پ!!             
  \\
\hline
ٶ &   & \multicolumn{1}{c|}{\textcolor{blue}{}} \\
\hline
ٶ &   & \multicolumn{1}{r}{\textcolor{blue}{}} \\
\hline
ٶ &   &  \\
\hline
\end{tabular}

\end{document}

[]

9 ΰ̻ Ķ׷ Table ֱ


[]

9.1 з׷ ֱ

[]

9.1.1 minipage ̿

Tabular ̿ؼ ΰ̻ з׷ ־ 찡 ִ. ̶ minipage Ѵ. paratable.jpg

\begin{tabular}{|p{5cm}|p{5cm}|}
\hline
\begin{minipage}[t]{5cm}
\vspace*{0.5cm}
\setlength{\parindent}{2cm}
%\begin{Hello}{ȳ?}
  ִ°? Ķ׷ ڽȿ ִ   ڴ°?
  ִ°? Ķ׷ ڽȿ ִ   ڴ°?

  ִ°? Ķ׷ ڽȿ ִ   ڴ°?
  ִ°? Ķ׷ ڽȿ ִ   ڴ°?
\vspace*{0.5cm}
%\end{Hello}
\end{minipage}
&
\begin{minipage}[t]{5cm}
ȳ?
\end{minipage} \\
\hline
\end{tabular}
indentation  ؼ environment , minipage ο ȯ ϵ Ѵ.
[]

9.1.2 TabularY Ű ̿

See TabularY.

[]

10 TabularX

[]

tabularx ȯ

TabularX Ű tabularx ȯ ̿ ִ. μ tabular* ȯ ϴ.
\usepackage{tabularx}     % preamble .

\begin{tabularx}{ǥü (width)}[ġ(t Ǵ b)]{Į}
ǥ
\end{tabularx}

ȯ濡 Į ڷ tabularȯ濡 l,r,c ̰ X(빮ӿ ) ϳ ִ. ڷ Į ǥ ü ߾ ̰ ڵ ȴ. , array Ű p{} Įڿ ؼ ϴ ִ.
>{\small}X
[]

ltablex Ű

ltablex Ű ϸ tabularx ȯ LongTable ȴ.
\documentclass{article}
\usepackage{ltablex}
\textheight=4in
\begin{document}

% we want a table that is \textwidth long, has 4 columns, columns 1
% and 3 are auto sized with the 3rd columns being 3 times wider than
% the first column.
%
\begin{tabularx}{\linewidth}%
 {|>{\setlength{\hsize}{.5\hsize}\raggedright\arraybackslash}X| % col 1; auto-sized ragged right
    c|                                                        % col 2; default    centered
    >{\setlength{\hsize}{1.5\hsize}\raggedleft\arraybackslash}X|% col 3; auto-sized ragged left
    l|}                                                       % col 4; default    left-justified
\caption*{The Table Caption}\\
\hline
F-Head1 & F-Head2 & F-Head3 & F-Head4\\
\hline
\hline
\endfirsthead
\hline
Head1 & Head2 & Head3 & Head4\\
\hline
\hline
\endhead

\hline
\hline
Foot1 & Foot2 & Foot3 & Foot4\\
\hline
\endfoot

\hline
\hline
L-Foot1 & L-Foot2 & L-Foot3 & L-Foot4\\
\hline
\endlastfoot

This is a very long sentence not likely to fit&
not too long&
This is another  very long sentence not likely to fit&
not long\\

< >
[]

KTUGOperate:5764 (by hoze) \newcolumntype ɰ TabularX X Įڸ ̿Ͽ Į յϰ Ҵϴ .
\usepackage{tabularx}

\newcolumntype{Y}{>{\raggedleft\arraybackslash}X} % 
\newcolumntype{Z}{>{\centering\arraybackslash}X} % 
\begin{tabularx}{\linewidth}{c|Z|Z|Z|Z|Z|Z}\hline

KTUGOperate:4426 (by Karnes) ϳ Į ¿쿡 յϰ Ҵ Į δ .
\renewcommand\tabularxcolumn[1]{>{\small}m{#1}}
\begin{tabularx}{2.5cm}{|X|m{.52cm}|X|}
\hline
A & \Huge A & A \\ \hline
\end{tabularx}


[]

11 TabularY

David Carlisle Ű ǥ(Tabular) Į ڵѴ. Į ȿ ڵ ٳ DZ Ư  ǥ 츮 ۼ ȯ濡 ſ ϴ.

[]

⺻ .

\usepackage{tabulary}
%...
\begin{tabulary}{ǥüα}{Į}
  ǥ
\end{tabulary}

[]

Į

빮 Į C, L, R, J ִ.
  • ڵ ڵ ̸ p Į ȯǸ, \centering, \raggedright, \raggedleft (justification) ȴ.
  • \multicolumn ִ. \verb .
  • multirow Ű͵ ´´. Ʒ .

[]

  1. ݵ ǥ ü ̸ ؾ Ѵ.
  2. Į ̴, CLRJ ο Ͽ, Į ڿ ̸ ҴѴ.  Į ְ ȿ ̰ 1em, 3em, 4em, 2em̶, ü 10em ̰, ʺ õ ǥü 10%, 30%, 40%, 20% Į Ҵȴ.
  3. Į ּұ̿ ̸ִ ̸ ִ. \tymin, \tymax Ѵ.

[]

Ʒ array, multirow, tabulary Ű ̸ εصΰ ۼ ̴.
\begin{tabulary}{\textwidth}% ʿϴٸ 100mm · ǥü 
{|p{5em}|C|R|L|J|} % ù° Į  ªƼ Ҵ  ־ ؽƮ  
                   %   Ƿ, 5em Ҵ
\hline
ª Į & \textcolor{blue}{ٶ} &   &  & ǿ ÷ \tabularnewline
\hline
⿡ ؽƮ &
C ɼ    ؾ߰?!!!
ٶ ٻ īŸ ٶ ٻ īŸ &
\textcolor{blue}{ʴ Rɼ   !!} \par
           &
ʴ Lɼ  ʿ پ!!
            
  &
J ɼ   غ. J Justification ڰ Ʋ
. \tabularnewline
\hline
´ٸ &
\multirow{2}*[-11ex]{ٶ} & \multicolumn{2}{c|}{\textcolor{blue}{%
                        }} &
׷ϱ ǥ  űض \tabularnewline
\cline{1-1}\cline{3-5}
ߵǰ &  &   &
\multicolumn{1}{r|}{\textcolor{blue}{}} &
100 Ŀ Ȱ  μ  ۼϰ ? \tabularnewline
\hline
ߵǴ± &
ٶ &   &  &
׷ \LaTeX Ẹ. ׷ 100ı   
? \tabularnewline
\hline
\end{tabulary}

tabulary_test.jpg

[]

12 Ÿ Q & A

[]

12.1 \tabularnewline

Q1. >{\centering}m{40mm} ̿Ͽ õߴ ٹٲ޹ڿ ϴ.  ؾ ϳ?

A. \centering \\ ϰ ֱ Դϴ. \\ \tabularnewline Ͻʽÿ.

[]

12.2 Ҽ

Q2. @{.} ̿ϴ Ʈ ܿ Ҽ ϴ ?

A. dcolumn Ű ̿ϴ ˴ϴ.

\begin{tabular}{|D{.}{.}{2}|}
\hline
\\ \hline
1.2 \\
1.23 \\
11.2 \\ \hline
\end{tabular}
D Į μ Ҽ Ʒ ڸ մϴ. ׷ ϸ ֽϴ.  ϸ鼭 Ҽ 迭 Դϴ. <!> D Įڰ Ǹ Į ʹ и ֵ˴ϴ. ׷Ƿ ؽƮ \text Ǵ \mbox ̿ؾ մϴ.

[]

12.3 sideways table

Q3. ǥ ʹ  ׷µ, ǥ 90 ȸŰ ֽϱ?

A.
  1. \usepackage{rotating} Ͻð ٰ \begin{table}ſ \begin{sidewaystable}Ͻø ˴ϴ.
  2. ǥ 90 -> KTUGOperate:4308
    sideways Ͻô . \begin{sideways} \end{sideways} ̿ ϴ ־ . sidewaysfigure sidewaystable dvi viewer ʰ, ps Ǵ pdf Ȯ ƾ մϴ.
  3. hvfloat Ű ̿ մϴ. KTUGOperate:15291 .
    %% preamble 
    \usepackage{hvfloat}
    
    %% body
    \savebox\hvOBox{%
    \begin{tabular}[b]{p{2cm}p{2cm}p{2cm}p{2cm}p{2cm}p{2cm}p{2cm}p{2cm}}
    Name of structure & Generation order & No. of structures & Diameter 
    Length & Total crossection & Total volume & Accumul.volume\\
    & z & n(z) & d(z) & l(z) & S(z) & V(z) & V(i) \\
    & & & mm & mm & cm$^2$ & cm$^3$ & cm$^3$ \\
    \hline
    Mouth and Pharynx & xx & 1 & 20 & 70 & xx & xx & xx\\
    Trachea&0&1&18&120&2.54&30.50&30.5\\
    \end{tabular}
    }
    
    \hvFloat[%
    	floatPos=p,%
    	capPos=t,%
    	capWidth=1,%
    	rotAngle=90,%
    	objectPos=c,%
    	useOBox=true%
    ]{table}{}{Geometric model of airways}{table_disease2}
    


[]

12.4 adjustwidth

Q4. ǥ ణ  ׷µ, ǥ Ƣ ϴ ֽϱ?

A.
  1. tabular ȯ ٷ տ
     \hskip-20mm%ġ Ͻʽÿ.
    
  2. ָ tabular ̵մϴ. table ȯ ü ̵Ϸ minipage ϴ. --Yhchoe
  3. memoir adjustwidth ̿ؼ ǥ κ ֽϴ. memoir ƴ϶ ChngpagePackage adjustwidth ȯ غñ ٶϴ.

[]

12.5 multirow + colortbl

Q5. multirow colortbl Բ multirow Ϻΰ color  ʽϴ.

A. multirow ࿡ ְ Ͻʽÿ.
\begin{tabular}{l>{\columncolor{yellow}}l}
  aaaa & \\
  cccc & \\
  dddd & \multirow{-3}*{bbbb}\\
\end{tabular}


[]

12.6 arraystretch

Q6. ǥ ?

A. KTUGOperate:6444, KTUGOperate:3655 (by Progress)
\arraystretch ٲߴϴ.
\renewcommand{\arraystretch}{1.6}
%%<==ǥ ٰ . ȣ ڸ ٲ㺸.
[]

13 ׹

  1. WinEdt̳ EmEditor/MTeXHelper Tabular ޴ ã ŬϹǷμ (, Template) Է ִ.
  2. LyX ǥ μ ׸ ְ ϴ ޴ ã ִ.
  3. Excel to LaTeX Converter : CTAN:support/excel2latex/
  4. ָ Excel to LaTeX converter : Excel2Tabular
  5. Sun staroffice starsuite ǥα׷ Calc to LaTeX converter : Calc2LaTeX (Ƹ Open Office ϴ.)

[]

14 Tabu Ű


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2012-11-01 16:18:34
Processing time 0.1820 sec