KTUGFaq
KTUG FAQ
Your own qualities will help prevent your advancement in the world.
PCTeX&value=WinEdtTip/¼ö½ÄÆíÁý › PageStyle&value=°£°Ý¶ç¿ì±â › Karnes/2006-04 › ko.TeX/instpack › PCTeX&value=WinEdtTip/±âÈ£ÀÔ·Â › WinEdtTip/Ç¥¸¸µé±â
[ÆíÁý]
1.1 tabular ȯ°æ ³Ö±â ¶
tabular ȯ°æ(cf. Tabularȯ°æ)À» ³Ö´Â ¹æ¹ýÀº WinEdtÀÇ ¸Þ´º¿¡¼ Insert¸¦ ´©¸£°í
Tabular (n x m)¸¦ ´©¸¥ ÈÄ Dimensions ´ëÈ»óÀÚ°¡ ³ªÅ¸³ª¸é Çà(Rows)°ú ¿(Columns)À» Á¤ÇØ ÁÖ°í OK¸¦ ´©¸£¸é tabular ȯ°æÀÌ ÀԷµȴÙ. °¡·É Çà 4, ¿ 4·Î ÇÏ¿´À» ¶§ ´ÙÀ½°ú °°ÀÌ ÀԷµȴÙ.
\begin{tabular}{|c|c|c|c|}%¼¼·ÎÁÙÀÌ ÇÊ¿ä ¾øÀ¸¸é |À» Á¦°Å, µÎ ÁÙÀº || \hline % after \\: \hline or \cline{col1-col2} \cline{col3-col4} ... ¡Ú & ¡Ú & ¡Ú & ¡Ú \\ \hline%\hlineÀ» ÇÑ ¹ø ´õ ³Ö¾î ÁÖ¸é µÎ ÁÙ·Î µË´Ï´Ù. ¡Ú & ¡Ú & ¡Ú & ¡Ú \\ ¡Ú & ¡Ú & ¡Ú & ¡Ú \\ ¡Ú & ¡Ú & ¡Ú & ¡Ú \\ \hline%ÇÊ¿ä ¾øÀ¸¸é \hlineÀ» Á¦°Å \end{tabular}À§ÀÇ »É(Template)¿¡¼ c¸¦ »©°í p{0.2\textwidth} ¶Ç´Â p{25mm}¸¦ ³Ö°í ¿ÀÇ ³Êºñ(width)¸¦ Á¶Á¤ÇÏ¸é µÈ´Ù. ¼¿ ¾È¿¡¼´Â \\ ´ë½Å¿¡ \par¸¦ ½á¾ßÇÕ´Ï´Ù. ÀÌ·¸°Ô Çϸé ÇÑ ¼¿¿¡ ¿©·¯ ÇàÀÌ µé¾î°£´Ù.
WinEdt¿¡¼´Â Table Designer¸¦ PluginÀ¸·Î ¼³Ä¡ÇÏ¿© ¸ÅÅ©·Î·Î "Table/Array Environment" ´ëÈ»óÀÚ¸¦ ¿¾î tabular ȯ°æ ¶Ç´Â array ȯ°æÀ» ¸¸µé ¼ö ÀÖ½À´Ï´Ù. ¼³Ä¡¹ýÀº WinEdtÀÇ ¼ÒÇ׸ñ "Table DesignerÀÇ ¼³Ä¡ ¹× »ç¿ë¹ý"À» ÂüÁ¶ÇϽʽÿä. »ç¿ë¹ýÀº WinEdt â¿¡ ¿·Á ÀÖ´Â ¹®¼ÀÇ ÇÊ¿äÇÑ °÷¿¡ Ä¿¼¸¦ µÎ°í WinEdt âÀÇ ¸Þ´º¿¡¼
Tools|Table Designer...¸¦ Ŭ¸¯ÇÏ¿© "Table/Array Environment" ´ëÈ»óÀÚ¸¦ ¿±´Ï´Ù(¾Æ·¡ ±×¸² ÂüÁ¶). ¿ì¼± Çà(Lines)ÀÇ °¹¼ö, ¿(Columns)ÀÇ °¹¼ö, Tabular ȯ°æÀ¸·Î ÇÒ °ÍÀÎÁö, Array ȯ°æÀ¸·Î ÇÒ °ÍÀÎÁö¸¦ Á¤ÇÏ°í, °¢ ¿ÀÇ ÀÂÊ¿¡ ÀÖ´Â ¼¼ °³ÀÇ µ¿±×¶ó¹Ì Áß Çϳª¸¦ ¼±ÅÃÇÏ¿© ¿ÞÂÊ(l), °¡¿îµ¥(c), ¿À¸¥ÂÊ(r)À» °áÁ¤ÇÕ´Ï´Ù. ¶Ç ½Ç¼±À» ³ÖÀ» °ÍÀÌ¸é °¢ Çà ¶Ç´Â °¢ ¿ »çÀÌ¿¡ ÀÖ´Â ³×¸ð »óÀÚ¸¦ üũÇÕ´Ï´Ù. ³ª¸ÓÁö »ç¿ë¹ýÀº ¾Æ·¡ ±×¸²À» º¸¸é ¾Ë ¼ö ÀÖ½À´Ï´Ù. ¿Ï¼ºµÇ¾úÀ¸¸é "Send" ´ÜÃ߸¦ ´©¸£¸é Ä¿¼°¡ ÀÖ´ø ÀÚ¸®¿¡ ¿øÇϴ ȯ°æÀÌ ÀԷµ˴ϴÙ.
[ÆíÁý]
1.2 booktabs ȯ°æ ³Ö±â ¶
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Àº ¿©À¯¸¦ µÎÁö ¾ÊÀ» µÑ ¼öµµ ÀÖ°í ÇÑ ÂÊ¿¡¸¸ µÑ ¼öµµ ÀÖ´Ù.
´Ù¸¸ ¼¼·Î ÁÙÀ» ¾²¸é ¼¼·Î ÁÙ°ú °¡·Î ÁÙÀÌ ¹Ù½Ï ºÙÁö ¾Ê°í ¾à°£ÀÇ °£°ÝÀÌ »ý°Ü ¾û¼ºÇÏ°Ô º¸ÀδÙ.
/macros/latex/contrib/booktabs/booktabs.pdf¿¡ ¼³¸íÀÌ ÀÖ´Ù. »É(Template)ÀÌ ÇÊ¿äÇϸé Mittelbach°¡ ¾´ The LaTeX Companion, 2nd ed.ÀÇ 269--272ÂÊÀ» ÂüÁ¶ÇÏ¿© /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}
[ÆíÁý]
1.3 ÇÑ ¼¿¿¡ ¿©·¯ Çà ³Ö±â ¶
Ç¥¸¦ 2´Ü Á¶Ædz»¿¡ °¢´Ü¿¡ µé¾î°¥ ¼ö ÀÖµµ·Ï ³Êºñ¸¦ ÁÙÀÌ°í ÇÑ ¼¿¿¡ ¿©·¯ ÇàÀÌ µé¾î °¡µµ·Ï ÇÏ¿´½À´Ï´Ù. text°¡ ÇÑ Çà ¹Û¿¡ ¾øÀ» ¶§ »óÇÏ Áß¾Ó¿¡ ¿À°ÔÇÏ·Á°í Preamble¿¡
\usepackage{array} \newcommand{\rb}[1]{\raisebox{-1.5ex}[0pt]{#1}}¸¦ ³Ö¾ú½À´Ï´Ù. Ç¥1(±×¸² ÂüÁ¶)Àº
\begin{tabular}{|m{45pt}|m{28pt}|m{28pt}|m{33pt}|m{33pt}|} \hline & Tree-\par based & Mesh-\par based & Stateless \par multicast& Overlay \par multicast \\ \hline Periodic \par message & Yes & Yes & No & No \\ \hline Robustness \par for mobility & No & Yes & Yes & Yes \\ \hline Resource \par efficiency & High & Low & High & Medium \\ \hline Type of \par data packet & Multi-\par cast& Multi-\par cast& Broad-\par cast & Unicast \\ \hline Control \par overhead & High & High & Low & Medium \\ \hline \end{tabular}·Î ÇÏ¿© º¸¼¼¿ä. Ç¥2´Â
\begin{tabular}{|p{50pt}|p{150pt}|} \hline \emph{Parameters} & \emph{Values} \\ \hline Simulation \par model & A flat space network with 50 hosts within 1000 * 1000 meters \\ 1 &\hspace{15mm}0 \\ 1 &\hspace{15mm}1 \\ 0 &\hspace{15mm}1 \\ 1 &\hspace{15mm}1 \\ 0 &\hspace{15mm}1 \\ 1 &\hspace{15mm}0 \\ 0 &\hspace{15mm}0 \\ \hline \end{tabular}·Î ÇÏ¿© º¸¼¼¿ä. Ç¥3Àº
\begin{tabular}{|p{100pt}|p{100pt}|} \hline ODMRP & \emph{Value} \\ \hline Interval between join query \par floods & \rb{3 seconds} \\ \hline Waiting time before \par sending/forwarding a join \par reply node wait & \raisebox{-3ex}{0.025 seconds} \\ \hline Longevity of the group \par forwarding state & 9 seconds (3 times of join \par query floods interval) \\ \hline Maximum Join Table \par retransmission & \rb{3} \\ \hline \end{tabular}·Î ÇÏ¿© º¸¼¼¿ä.
[ÆíÁý]
1.4 ¼¿ Á¤·Ä ¶
À§ÀÇ \begin{tabular}{|c|c|c|c|}¿¡¼ c´Â ÁÂ¿ì °¡¿îµ¥(center)·Î ÀÔ´Ï´Ù, ÀÌ°ÍÀ» l (¿ÞÂÊ), r (¿À¸¥ÂÊ) ¶Ç´Â ´ÙÀ½°ú °°ÀÌ ¹Ù²Ü ¼ö ÀÖ½À´Ï´Ù.
c ¶Ç´Â l, rÀ» ¾²¸é \par¸¦ ³Ö¾îµµ µÎ Çà(ú¼)À¸·Î µÇÁö ¾Ê°í ¸ðµç ÀÔ·Â ÀÚ·á°¡ ÇÑ Çà(ú¼)¿¡ µé¾î °¡µµ·Ï ¼¿ÀÇ ³Êºñ°¡ Á¿ì·Î ´Ã¾î³³´Ï´Ù.
- p{25mm} p Á¤·Ä·Î ³Êºñ¸¦ 25mm, ¿©±â¼ p´Â paragraphÀ¸·Î Çà ¸¶°¨ ¸í·É \\ Á÷ÀüÀÇ baselineÀ» paragraph ù ÁÙÀÇ baseline°ú ¸ÂÃá´Ù´Â ¶æÀÔ´Ï´Ù.
- m{30mm} m Á¤·Ä·Î ³Êºñ¸¦ 30mm, ¿©±â¼ m´Â middle·Î Çà ¸¶°¨ ¸í·É \\ Á÷ÀüÀÇ baselineÀ» Àüü paragraphÀÇ baselineµéÀÇ Æò±Õ°ú ¸ÂÃá´Ù´Â ¶æÀÔ´Ï´Ù.
- b{20mm} b Á¤·Ä·Î ³Êºñ¸¦ 20mm, ¿©±â¼ b´Â bottomÀ¸·Î Çà ¸¶°¨ ¸í·É \\ Á÷ÀüÀÇ baselineÀ» paragraph ¸Ç ³¡ ÁÙÀÇ baseline°ú ¸ÂÃá´Ù´Â ¶æÀÔ´Ï´Ù.
¶Ç À§Ä¡ ¿É¼Ç m ¶Ç´Â b¸¦ ¾µ·Á¸é Preamble¿¡
\usepackage{array}¸¦ ³Ö¾î¾ß ÇÕ´Ï´Ù. ÇÑÆí Ç¥¿¡ ĸ¼Ç°ú ¹øÈ£¸¦ ºÙÀÌ°í, ÀÌ°ÍÀ» ´Ù¸¥ °÷¿¡¼ ÂüÁ¶Çϱâ À§ÇÏ¿© LabelÀ» ºÙÀÌ·Á¸é tabular ȯ°æÀ» table ȯ°æ ¼Ó¿¡ ³ÖÀ¸¸é µË´Ï´Ù.
¶Ç À§ÀÇ »É(Template)¿¡¼
% after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...·Î µÇ¾î ÀÖ´Â °ÍÀº °¡·Î ÁÙÀ» ³Ö´Â ¹æ¹ýÀ» ¿¹½ÃÇÑ °ÍÀ¸·Î Á¶±ÝÀÇ ¼³¸íÀ» ºÙÀ̸é \\ ´ÙÀ½¿¡ \hlineÀ» ³ÖÀ¸¸é Ç¥ ¿ÞÂÊ ³¡¿¡¼ ¿À¸¥ ÂÊ ³¡±îÁö °¡·Î ¼±ÀÌ »ý±â°í, \\ ´ÙÀ½¿¡ \cline{col1-col2}À» ³ÖÀ¸¸é 1¿ ¿ÞÂÊ ³¡¿¡¼ 2¿ ¿À¸¥ ÂÊ ³¡±îÁö °¡·Î ¼±ÀÌ »ý±é´Ï´Ù. ÇÊ¿äÇÏ¸é ¿©·¯ °³ ³Ö¾îµµ µË´Ï´Ù.
Tabularȯ°æ¿¡ °¡¸é ±âº» ȯ°æ¿¡ ¿©·¯°¡Áö º¯È¸¦ ÁÖ´Â ¹æ¹ýÀÌ ³ª¿Í ÀÖ½À´Ï´Ù.
[ÆíÁý]
2 minipage¸¦ ÀÌ¿ëÇÏ¿© Ç¥¿¡ °¢ÁÖ ºÙÀ̱⠶
Helmut Kopka & Patrick w. Daly: A Guide To LaTeX (3ÆÇ: 1999)ÀÇ 113ÂÊÀÇ ±ÛÀº ¹Ì´ÏÆäÀÌÁö ¼Ó¿¡ µé¾î ÀÖ´Â "°¢ÁÖ"´Â ¹Ì´ÏÆäÀÌÁö°¡ ³¡³¯ ¶§ µé¾î °£´Ù°í ÇÏ¿´³×¿ä. ±×·¡¼ "Source: Energy Balance Study Group" ¶ó´Â ±ÛÀ» ¹Ì´ÏÆäÀÌÁö ¹ÛÀ¸·Î ²ôÁý¾î ³»°í ±× ¾Õ¿¡
\\ \hrulefill \\[0.5ex]À» ³Ö¾ú½À´Ï´Ù.
107 ÂÊ¿¡ ÀÖ´Â floating tableÀÇ ¿¹Á¦¿Í °°ÀÌ ÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌ Çغ¸¼¼¿ä.
-------------------------------- \begin{table}[h] \flushleft {\bfseries Primary Energy Consumption}\\[1ex] %\begin{center} \begin{minipage}{\textwidth} \begin{tabular*}{\textwidth}{@{}l@{\hspace{4cm}}r@{\extracolsep\fill}rr@{}} \hline Energy Source & 1975 & 1980 & 1986\\\hline Total Consumption & & & \\ (in million tons of BCU\footnote{\, BCU = Bituminous Coal Unit (1 ton BCU corresponds to the heating equivalent of 1 ton of bituminous coal=8140.}\, )& 347.7 & 390.2 & 385.0\\ of which \hspace{3mm}(percentages) & & & \\ \hspace{18mm}petroleum & 52.1 & 47.6 & 43.2\\ \hspace{18mm}bituminous coal & 19.1 & 19.8 & 20.0\\ \hspace{18mm}brown coal & 9.9 & 10.0 & 8.6 \\ \hspace{18mm}natural gas & 14.2 & 16.5 & 15.1 \\ \hspace{18mm}nuclear energy & 2.0 & 3.7 & 10.1 \\ \hspace{18mm}other\footnote{\, Wind, water, solar energy, etc.} & 2.7 & 2.3 & 3.0\\ \end{tabular*} \end{minipage}\\ \hrulefill \\[0.5ex] \emph{Source:} Energy Balance Study Group %\end{center} \end{table}
WinEdtTip Project