KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
You cannot kill time without injuring eternity.
FrontPage › 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¸¦ ÀÌ¿ëÇÏ¸é µÇ³ª, 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)ÀÇ Ä®·³ ÆøÀ» ÀÚµ¿Á¶ÀýÇÑ´Ù. Ä®·³ ¾È¿¡¼­ ±ä ¹®ÀåÀº ÀÚµ¿À¸·Î ÁÙ³ª´®ÀÌ µÇ±â ¶§¹®¿¡ ƯÈ÷ ±ä ¹®ÀåÀÌ µé¾î°¡´Â Ç¥°¡ ¸¹Àº ¿ì¸®ÀÇ ¹®¼­ÀÛ¼º ȯ°æ¿¡¼­ ¸Å¿ì À¯¿ëÇÏ´Ù.

±âº» »ç¿ë Çü½Ä

±âº» »ç¿ë¹ýÀº ´ÙÀ½°ú °°´Ù.

\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 ÆÐÅ°Áö

  1. tabular °ü·Ã °¡Àå °­·ÂÇÑ ´ë¾È ÆÐÅ°Áö·Î¼­ tabu ȯ°æÀ» Á¦°øÇÑ´Ù. See TabuPackage





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