KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
He who spends a storm beneath a tree, takes life with a grain of TNT.
FrontPage › 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}

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2010-11-05 12:17:32
Processing time 0.0310 sec