๊ณ ๊ธ‰ ํ‘œ

๊ณ ๊ธ‰ ํ‘œ

์ฃผ์ œ: LaTeX ๋ ˆ์Šจ: 16๊ฐœ ์ค‘ 7๋ฒˆ์งธ ์„ ์ˆ˜์ง€์‹: ๋ถ€๋™์ฒด์™€ ๊ทธ๋ฆผ, ๋ฌธ์„œ ๊ตฌ์กฐ ๋ชฉํ‘œ: booktabs๋ฅผ ์‚ฌ์šฉํ•œ ์ „๋ฌธ ํ˜•์‹, ๋‹ค์ค‘ ํ–‰ ๋ฐ ๋‹ค์ค‘ ์—ด ์…€, ์ƒ‰์ƒ ํ‘œ, ์—ฌ๋Ÿฌ ํŽ˜์ด์ง€์— ๊ฑธ์นœ ๊ธด ํ‘œ, ์—ฐ๊ตฌ ๋…ผ๋ฌธ ๋ฐ ๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์œ„ํ•œ ์ •๊ตํ•œ ํ‘œ ๋ ˆ์ด์•„์›ƒ ๋“ฑ ๊ณ ๊ธ‰ ํ‘œ ์ƒ์„ฑ ๊ธฐ๋ฒ• ๋งˆ์Šคํ„ฐํ•˜๊ธฐ.


์†Œ๊ฐœ

ํ‘œ๋Š” ํ•™์ˆ  ๋…ผ๋ฌธ, ๋ณด๊ณ ์„œ, ๊ธฐ์ˆ  ๋ฌธ์„œ์—์„œ ๊ตฌ์กฐํ™”๋œ ๋ฐ์ดํ„ฐ๋ฅผ ์ œ์‹œํ•˜๋Š” ๋ฐ ํ•„์ˆ˜์ ์ž…๋‹ˆ๋‹ค. LaTeX์˜ ๊ธฐ๋ณธ tabular ํ™˜๊ฒฝ์ด ๊ฐ„๋‹จํ•œ ํ‘œ๋ฅผ ๋งŒ๋“ค ์ˆ˜ ์žˆ์ง€๋งŒ, ์ „๋ฌธ ์ถœํŒ๋ฌผ์—๋Š” ๋ณ‘ํ•ฉ๋œ ์…€, ์ผ๊ด€๋œ ๊ฐ„๊ฒฉ, ์ „๋ฌธ ์ˆ˜ํ‰์„ , ์—ฌ๋Ÿฌ ํŽ˜์ด์ง€์— ๊ฑธ์นœ ํ‘œ์™€ ๊ฐ™์€ ์ •๊ตํ•œ ํ˜•์‹์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์ด ๋ ˆ์Šจ์—์„œ๋Š” ๋ฌธ์„œ๋ฅผ ์ถœํŒ ํ’ˆ์งˆ๋กœ ๋Œ์–ด์˜ฌ๋ฆฌ๋Š” ๊ณ ๊ธ‰ ํ‘œ ๊ธฐ๋ฒ•์„ ๋‹ค๋ฃน๋‹ˆ๋‹ค.

๊ธฐ๋ณธ tabular ๋ณต์Šต

๊ณ ๊ธ‰ ๊ธฐ๋Šฅ์„ ์‚ดํŽด๋ณด๊ธฐ ์ „์— ๊ธฐ๋ณธ์„ ๋ณต์Šตํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค:

\begin{tabular}{lcr}
  Left & Center & Right \\
  A & B & C \\
  D & E & F
\end{tabular}

์—ด ํƒ€์ž…

  • l - ์™ผ์ชฝ ์ •๋ ฌ ์—ด
  • c - ์ค‘์•™ ์ •๋ ฌ ์—ด
  • r - ์˜ค๋ฅธ์ชฝ ์ •๋ ฌ ์—ด
  • p{width} - ์ง€์ •๋œ ๋„ˆ๋น„์˜ ๋‹จ๋ฝ ์—ด
  • | - ์ˆ˜์ง์„ 

๊ธฐ๋ณธ ๋ช…๋ น

  • & - ์—ด ๊ตฌ๋ถ„
  • \\ - ํ–‰ ๋
  • \hline - ๋ชจ๋“  ์—ด์— ๊ฑธ์นœ ์ˆ˜ํ‰์„ 
  • \cline{i-j} - i์—ด์—์„œ j์—ด๊นŒ์ง€ ์ˆ˜ํ‰์„ 

์„ ์ด ์žˆ๋Š” ์˜ˆ์ œ

\begin{tabular}{|l|c|r|}
  \hline
  Name & Age & Score \\
  \hline
  Alice & 25 & 95 \\
  Bob & 30 & 87 \\
  Carol & 28 & 92 \\
  \hline
\end{tabular}

booktabs๋ฅผ ์‚ฌ์šฉํ•œ ์ „๋ฌธ ํ‘œ

booktabs ํŒจํ‚ค์ง€๋Š” ์ ์ ˆํ•œ ๊ฐ„๊ฒฉ๊ณผ ์ „๋ฌธ ์ˆ˜ํ‰์„ ์œผ๋กœ ์ถœํŒ ํ’ˆ์งˆ์˜ ํ‘œ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

ํŒจํ‚ค์ง€ ๋กœ๋“œ

\usepackage{booktabs}

์ฃผ์š” ๋ช…๋ น

  • \toprule - ์ƒ๋‹จ ์„  (๋” ๋‘๊บผ์›€)
  • \midrule - ์ค‘๊ฐ„ ์„  (์ค‘๊ฐ„ ๋‘๊ป˜)
  • \bottomrule - ํ•˜๋‹จ ์„  (๋” ๋‘๊บผ์›€)
  • \cmidrule{i-j} - i์—ด์—์„œ j์—ด๊นŒ์ง€ ์ค‘๊ฐ„ ์„ 

๊ธฐ๋ณธ booktabs ํ‘œ

\begin{table}[htbp]
  \centering
  \caption{Experimental results}
  \label{tab:results}
  \begin{tabular}{lcc}
    \toprule
    Method & Accuracy & Time (s) \\
    \midrule
    Algorithm A & 95.3\% & 12.4 \\
    Algorithm B & 97.1\% & 18.7 \\
    Algorithm C & 94.8\% & 9.3 \\
    \bottomrule
  \end{tabular}
\end{table}

cmidrule์„ ์‚ฌ์šฉํ•œ ๋ถ€๋ถ„ ์„ 

\begin{table}[htbp]
  \centering
  \caption{Performance by category}
  \begin{tabular}{lccc}
    \toprule
    & \multicolumn{3}{c}{Category} \\
    \cmidrule{2-4}
    Model & A & B & C \\
    \midrule
    Model 1 & 0.85 & 0.90 & 0.88 \\
    Model 2 & 0.92 & 0.87 & 0.91 \\
    \bottomrule
  \end{tabular}
\end{table}

๊ฐ„๊ฒฉ ์ถ”๊ฐ€

์„  ์œ„/์•„๋ž˜์— ๊ณต๊ฐ„ ์ถ”๊ฐ€:

\midrule[1pt]  % Thicker rule
\addlinespace  % Add vertical space

์˜ˆ์ œ:

\begin{tabular}{lc}
  \toprule
  Item & Value \\
  \midrule
  A & 100 \\
  B & 200 \\
  \addlinespace
  C & 300 \\
  \bottomrule
\end{tabular}

ํƒ€์ดํฌ๊ทธ๋ž˜ํ”ผ ๋ชจ๋ฒ” ์‚ฌ๋ก€: ์ˆ˜์ง์„  ํ”ผํ•˜๊ธฐ

์ˆ˜์ง์„ ์„ ํ”ผํ•ด์•ผ ํ•˜๋Š” ์ด์œ ๋Š”?

  1. ์ „๋ฌธ์  ์™ธ๊ด€: ํ•™์ˆ  ์ €๋„๊ณผ ์ „๋ฌธ ์ถœํŒ๋ฌผ์€ ์ˆ˜์ง์„ ์„ ๊ฑฐ์˜ ์‚ฌ์šฉํ•˜์ง€ ์•Š์Œ
  2. ์‹œ๊ฐ์  ์žก์Œ: ์ˆ˜์ง์„ ์€ ํ‘œ๋ฅผ ์–ด์ˆ˜์„ ํ•˜๊ฒŒ ๋ณด์ด๊ฒŒ ํ•จ
  3. ๊ฐ„๊ฒฉ: booktabs ํŒจํ‚ค์ง€๋Š” ์„  ์—†์ด ์ตœ์ ์˜ ๊ฐ„๊ฒฉ ์ œ๊ณต
  4. ๊ตญ์ œ ํ‘œ์ค€: ISO, APA ๋ฐ ๋Œ€๋ถ€๋ถ„์˜ ์Šคํƒ€์ผ ๊ฐ€์ด๋“œ๋Š” ์ˆ˜์ง์„ ์„ ๊ถŒ์žฅํ•˜์ง€ ์•Š์Œ

๋น„๊ต

๋‚˜์จ (์„ ์œผ๋กœ ์–ด์ˆ˜์„ ํ•จ):

\begin{tabular}{|l|c|r|}
  \hline
  A & B & C \\
  \hline
  D & E & F \\
  \hline
\end{tabular}

์ข‹์Œ (๊น”๋”ํ•˜๊ณ  ์ „๋ฌธ์ ):

\begin{tabular}{lcr}
  \toprule
  A & B & C \\
  \midrule
  D & E & F \\
  \bottomrule
\end{tabular}

์˜ˆ์™ธ: ์…€ ๊ฒฝ๊ณ„๊ฐ€ ์ ˆ๋Œ€์ ์œผ๋กœ ๋ช…ํ™•ํ•ด์•ผ ํ•˜๋Š” ๊ธฐ์ˆ  ๋ฌธ์„œ(์˜ˆ: ์ง„๋ฆฌํ‘œ, ํ–‰๋ ฌ)์—์„œ๋Š” ์ˆ˜์ง์„ ์ด ํ—ˆ์šฉ๋ฉ๋‹ˆ๋‹ค.

Multicolumn: ์—ด ๋ณ‘ํ•ฉ

\multicolumn{cols}{align}{text}๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์…€์„ ์ˆ˜ํ‰์œผ๋กœ ๋ณ‘ํ•ฉํ•˜์„ธ์š”:

\multicolumn{3}{c}{Merged across 3 columns}

๋งค๊ฐœ๋ณ€์ˆ˜: 1. ๋ณ‘ํ•ฉํ•  ์—ด ์ˆ˜ 2. ์ •๋ ฌ (l, c, r ๋˜๋Š” | ํฌํ•จ) 3. ์…€ ์ฝ˜ํ…์ธ 

์˜ˆ์ œ: ์—ด์— ๊ฑธ์นœ ํ—ค๋”

\begin{table}[htbp]
  \centering
  \caption{Sales data by quarter}
  \begin{tabular}{lccc}
    \toprule
    & \multicolumn{3}{c}{Quarter} \\
    \cmidrule{2-4}
    Product & Q1 & Q2 & Q3 \\
    \midrule
    Widget A & 120 & 150 & 135 \\
    Widget B & 98 & 110 & 125 \\
    Widget C & 145 & 132 & 140 \\
    \bottomrule
  \end{tabular}
\end{table}

์ค‘์ฒฉ Multicolumn

\begin{table}[htbp]
  \centering
  \caption{Complex header structure}
  \begin{tabular}{lcccccc}
    \toprule
    & \multicolumn{3}{c}{Group A} & \multicolumn{3}{c}{Group B} \\
    \cmidrule(lr){2-4} \cmidrule(lr){5-7}
    Item & X & Y & Z & X & Y & Z \\
    \midrule
    Test 1 & 1 & 2 & 3 & 4 & 5 & 6 \\
    Test 2 & 7 & 8 & 9 & 10 & 11 & 12 \\
    \bottomrule
  \end{tabular}
\end{table}

์ฐธ๊ณ : \cmidrule(lr){2-4}๋Š” ์™ผ์ชฝ(l)๊ณผ ์˜ค๋ฅธ์ชฝ(r)์— ํŠธ๋ฆผ ๊ฐ„๊ฒฉ์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

Multirow: ํ–‰ ๋ณ‘ํ•ฉ

multirow ํŒจํ‚ค์ง€๋Š” ์ˆ˜์ง ์…€ ๋ณ‘ํ•ฉ์„ ํ—ˆ์šฉํ•ฉ๋‹ˆ๋‹ค:

\usepackage{multirow}

๊ตฌ๋ฌธ: \multirow{rows}{width}{text}

  • rows: ๊ฑธ์น  ํ–‰ ์ˆ˜
  • width: ์…€ ๋„ˆ๋น„ (์ž๋™์€ *)
  • text: ์…€ ์ฝ˜ํ…์ธ 

๊ธฐ๋ณธ ์˜ˆ์ œ

\begin{table}[htbp]
  \centering
  \caption{Grouped data}
  \begin{tabular}{llc}
    \toprule
    Category & Item & Value \\
    \midrule
    \multirow{3}{*}{Group A} & Item 1 & 10 \\
                              & Item 2 & 20 \\
                              & Item 3 & 30 \\
    \midrule
    \multirow{2}{*}{Group B} & Item 4 & 40 \\
                              & Item 5 & 50 \\
    \bottomrule
  \end{tabular}
\end{table}

multirow์™€ multicolumn ๊ฒฐํ•ฉ

\begin{table}[htbp]
  \centering
  \caption{Complex table with merged cells}
  \begin{tabular}{llcc}
    \toprule
    \multirow{2}{*}{Model} & \multirow{2}{*}{Type} &
      \multicolumn{2}{c}{Performance} \\
    \cmidrule{3-4}
    & & Accuracy & Speed \\
    \midrule
    Model A & CNN & 0.95 & 12 ms \\
    Model B & RNN & 0.93 & 18 ms \\
    Model C & Transformer & 0.97 & 25 ms \\
    \bottomrule
  \end{tabular}
\end{table}

multirow์˜ ์ˆ˜์ง ์ •๋ ฌ

๊ธฐ๋ณธ์ ์œผ๋กœ ์ฝ˜ํ…์ธ ๋Š” ์ˆ˜์ง์œผ๋กœ ์ค‘์•™ ์ •๋ ฌ๋ฉ๋‹ˆ๋‹ค. ์„ ํƒ์  ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ์กฐ์ •:

\multirow{3}{*}[2pt]{Text}  % Shift down 2pt
\multirow{3}{*}[-2pt]{Text} % Shift up 2pt

์ƒ‰์ƒ ํ‘œ

ํŒจํ‚ค์ง€ ๋กœ๋“œ

\usepackage[table]{xcolor}  % [table] option loads colortbl

๋˜๋Š” ๋ณ„๋„๋กœ:

\usepackage{xcolor}
\usepackage{colortbl}

ํ–‰ ์ƒ‰์ƒ

\begin{tabular}{lcc}
  \toprule
  Item & Value 1 & Value 2 \\
  \midrule
  \rowcolor{gray!20}
  A & 10 & 20 \\
  B & 30 & 40 \\
  \rowcolor{gray!20}
  C & 50 & 60 \\
  \bottomrule
\end{tabular}

๊ต๋Œ€ ํ–‰ ์ƒ‰์ƒ

\rowcolors{2}{gray!15}{white}  % Start from row 2, alternate gray/white

\begin{tabular}{lcc}
  \toprule
  Item & Value 1 & Value 2 \\
  \midrule
  A & 10 & 20 \\
  B & 30 & 40 \\
  C & 50 & 60 \\
  D & 70 & 80 \\
  \bottomrule
\end{tabular}

์…€ ์ƒ‰์ƒ

\begin{tabular}{lcc}
  \toprule
  Item & Value 1 & Value 2 \\
  \midrule
  A & \cellcolor{red!20}10 & 20 \\
  B & 30 & \cellcolor{green!20}40 \\
  C & 50 & 60 \\
  \bottomrule
\end{tabular}

์—ด ์ƒ‰์ƒ

\begin{tabular}{l>{\columncolor{blue!10}}cc}
  \toprule
  Item & Value 1 & Value 2 \\
  \midrule
  A & 10 & 20 \\
  B & 30 & 40 \\
  \bottomrule
\end{tabular}

์‹ค์šฉ ์˜ˆ์ œ: ๊ฐ•์กฐ ํ‘œ์‹œ

\begin{table}[htbp]
  \centering
  \caption{Performance comparison with best results highlighted}
  \begin{tabular}{lcccc}
    \toprule
    Model & Acc. & Prec. & Recall & F1 \\
    \midrule
    Model A & 0.85 & 0.82 & 0.88 & 0.85 \\
    Model B & \cellcolor{green!20}0.92 & 0.90 & 0.91 & \cellcolor{green!20}0.91 \\
    Model C & 0.88 & \cellcolor{green!20}0.93 & \cellcolor{green!20}0.94 & 0.89 \\
    \bottomrule
  \end{tabular}
\end{table}

๊ธด ํ‘œ: longtable ํŒจํ‚ค์ง€

์—ฌ๋Ÿฌ ํŽ˜์ด์ง€์— ๊ฑธ์นœ ํ‘œ๋ฅผ ์œ„ํ•ด:

\usepackage{longtable}

๊ธฐ๋ณธ longtable

\begin{longtable}{lcc}
  \caption{Long table spanning pages} \label{tab:long} \\
  \toprule
  Item & Value 1 & Value 2 \\
  \midrule
  \endfirsthead

  \multicolumn{3}{c}{{\tablename\ \thetable{} -- continued}} \\
  \toprule
  Item & Value 1 & Value 2 \\
  \midrule
  \endhead

  \midrule
  \multicolumn{3}{r}{{Continued on next page}} \\
  \endfoot

  \bottomrule
  \endlastfoot

  % Data rows
  A & 10 & 20 \\
  B & 30 & 40 \\
  % ... many more rows ...
  Z & 510 & 520 \\
\end{longtable}

longtable ๊ตฌ์กฐ

  • \endfirsthead: ์ฒซ ํŽ˜์ด์ง€์šฉ ํ—ค๋”
  • \endhead: ํ›„์† ํŽ˜์ด์ง€์šฉ ํ—ค๋”
  • \endfoot: ๋งˆ์ง€๋ง‰ ํŽ˜์ด์ง€๋ฅผ ์ œ์™ธํ•œ ๋ชจ๋“  ํŽ˜์ด์ง€์šฉ ํ‘ธํ„ฐ
  • \endlastfoot: ๋งˆ์ง€๋ง‰ ํŽ˜์ด์ง€์šฉ ํ‘ธํ„ฐ

๊ฐ„์†Œํ™”๋œ longtable

ํ—ค๋”๊ฐ€ ๋ชจ๋“  ํŽ˜์ด์ง€์—์„œ ๋™์ผํ•œ ๊ฒฝ์šฐ:

\begin{longtable}{lcc}
  \caption{Dataset statistics} \\
  \toprule
  Feature & Mean & Std \\
  \midrule
  \endhead

  \bottomrule
  \endfoot

  Feature1 & 10.5 & 2.3 \\
  Feature2 & 8.7 & 1.9 \\
  % ... many rows ...
\end{longtable}

ํ‘œ ๋„ˆ๋น„ ์ œ์–ด

tabularx: ์œ ์—ฐํ•œ ์—ด ๋„ˆ๋น„

\usepackage{tabularx}

X ์—ด ํƒ€์ž…์€ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๊ณต๊ฐ„์„ ์ฑ„์šฐ๋„๋ก ํ™•์žฅ๋ฉ๋‹ˆ๋‹ค:

\begin{tabularx}{\textwidth}{lXr}
  \toprule
  ID & Description & Value \\
  \midrule
  1 & This is a very long description that will wrap automatically & 100 \\
  2 & Another long entry that needs wrapping & 200 \\
  \bottomrule
\end{tabularx}

์—ฌ๋Ÿฌ X ์—ด

\begin{tabularx}{\textwidth}{XXX}
  \toprule
  Column A & Column B & Column C \\
  \midrule
  Data & Data & Data \\
  \bottomrule
\end{tabularx}

์„ธ ์—ด ๋ชจ๋‘ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋„ˆ๋น„๋ฅผ ๋™๋“ฑํ•˜๊ฒŒ ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค.

๊ณ ์ • + ์œ ์—ฐํ•œ ์—ด

\begin{tabularx}{\textwidth}{lXc}
  \toprule
  ID & Long Description & Code \\
  \midrule
  1 & This description will wrap and take most space & A1 \\
  2 & Another description & B2 \\
  \bottomrule
\end{tabularx}

tabulary: ๋” ์Šค๋งˆํŠธํ•œ ๋„ˆ๋น„ ๋ถ„๋ฐฐ

\usepackage{tabulary}

\begin{tabulary}{\textwidth}{LCR}
  \toprule
  Left-aligned & Centered & Right-aligned \\
  \midrule
  Data & Data & Data \\
  \bottomrule
\end{tabulary}

์—ด ํƒ€์ž…: L, C, R, J (์–‘์ชฝ ์ •๋ ฌ)

์ˆ˜์ง ์ •๋ ฌ์ด ์žˆ๋Š” ๊ณ ์ • ๋„ˆ๋น„ ์—ด

array ํŒจํ‚ค์ง€๋Š” ํ–ฅ์ƒ๋œ ์—ด ํƒ€์ž…์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค:

\usepackage{array}

์—ด ํƒ€์ž…

  • m{width}: ์ค‘๊ฐ„ ์ •๋ ฌ (์ˆ˜์ง์œผ๋กœ ์ค‘์•™)
  • b{width}: ํ•˜๋‹จ ์ •๋ ฌ
  • p{width}: ์ƒ๋‹จ ์ •๋ ฌ (๊ธฐ๋ณธ)

์˜ˆ์ œ

\begin{tabular}{lm{3cm}m{3cm}}
  \toprule
  ID & Description & Notes \\
  \midrule
  1 & Short text & Also short \\
  2 & This is a much longer description that wraps to multiple lines &
      This note also wraps and is vertically centered \\
  \bottomrule
\end{tabular}

์‚ฌ์šฉ์ž ์ •์˜ ์—ด ํƒ€์ž…

์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์—ด ํƒ€์ž… ์ •์˜:

\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}

\begin{tabular}{L{3cm}C{2cm}R{2cm}}
  \toprule
  Left-aligned paragraph & Centered & Right-aligned \\
  \midrule
  Data & Data & Data \\
  \bottomrule
\end{tabular}

siunitx๋ฅผ ์‚ฌ์šฉํ•œ ์†Œ์ˆ˜์  ์ •๋ ฌ

siunitx ํŒจํ‚ค์ง€๋Š” ์†Œ์ˆ˜์ ์—์„œ ์ˆซ์ž๋ฅผ ์ •๋ ฌํ•˜๋Š” S ์—ด ํƒ€์ž…์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค:

\usepackage{siunitx}

\begin{table}[htbp]
  \centering
  \caption{Data with decimal alignment}
  \begin{tabular}{lS[table-format=2.3]S[table-format=1.2]}
    \toprule
    {Item} & {Value 1} & {Value 2} \\
    \midrule
    A & 12.345 & 1.23 \\
    B & 9.876 & 0.45 \\
    C & 100.123 & 10.00 \\
    \bottomrule
  \end{tabular}
\end{table}

์ฐธ๊ณ : - table-format=2.3: ์†Œ์ˆ˜์  ์•ž 2์ž๋ฆฌ, ๋’ค 3์ž๋ฆฌ - S ์—ด์˜ ํ—ค๋”๋Š” ์ค‘๊ด„ํ˜ธ ํ•„์š”: {Header}

๋ถˆํ™•์‹ค์„ฑ ํ‘œ๊ธฐ๋ฒ•

\begin{tabular}{lS}
  \toprule
  {Measurement} & {Value} \\
  \midrule
  A & 12.34(5) \\  % 12.34 ยฑ 0.05
  B & 98.7(12) \\   % 98.7 ยฑ 1.2
  \bottomrule
\end{tabular}

ํ‘œ ์ฃผ์„: threeparttable

ํ‘œ์— ๊ฐ์ฃผ ์ถ”๊ฐ€:

\usepackage{threeparttable}

\begin{table}[htbp]
  \centering
  \begin{threeparttable}
    \caption{Results with notes}
    \begin{tabular}{lcc}
      \toprule
      Model & Acc.\tnote{a} & Time\tnote{b} \\
      \midrule
      A & 0.95 & 12 ms \\
      B & 0.97 & 18 ms \\
      \bottomrule
    \end{tabular}
    \begin{tablenotes}
      \small
      \item[a] Accuracy on test set
      \item[b] Average inference time
    \end{tablenotes}
  \end{threeparttable}
\end{table}

ํ‘œ ํšŒ์ „

rotating ํŒจํ‚ค์ง€

\usepackage{rotating}

sidewaystable ํ™˜๊ฒฝ

๊ฐ€๋กœ ๋ฐฉํ–ฅ ํ‘œ๋ฅผ ์œ„ํ•ด:

\begin{sidewaystable}
  \centering
  \caption{Wide table in landscape}
  \begin{tabular}{lcccccccc}
    \toprule
    Item & Col1 & Col2 & Col3 & Col4 & Col5 & Col6 & Col7 & Col8 \\
    \midrule
    A & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\
    B & 9 & 10 & 11 & 12 & 13 & 14 & 15 & 16 \\
    \bottomrule
  \end{tabular}
\end{sidewaystable}

๊ฐœ๋ณ„ ์…€ ํšŒ์ „

\usepackage{graphicx}  % for \rotatebox

\begin{tabular}{lcc}
  \toprule
  Item & \rotatebox{90}{Long Header 1} & \rotatebox{90}{Long Header 2} \\
  \midrule
  A & 10 & 20 \\
  B & 30 & 40 \\
  \bottomrule
\end{tabular}

์‹ค์šฉ ์˜ˆ์ œ: ์—ฐ๊ตฌ ๋…ผ๋ฌธ ํ‘œ

\documentclass{article}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{siunitx}
\usepackage[table]{xcolor}

\begin{document}

\begin{table}[htbp]
  \centering
  \caption{Comprehensive performance comparison across datasets and metrics}
  \label{tab:comprehensive}
  \begin{tabular}{
    l
    l
    S[table-format=2.2]
    S[table-format=2.2]
    S[table-format=2.2]
    S[table-format=1.3]
  }
    \toprule
    \multirow{2}{*}{Dataset} & \multirow{2}{*}{Model} &
      \multicolumn{3}{c}{Accuracy (\%)} & {Time} \\
    \cmidrule(lr){3-5} \cmidrule(l){6-6}
    & & {Train} & {Val} & {Test} & {(s)} \\
    \midrule
    \multirow{3}{*}{MNIST}
      & CNN       & 99.21 & 98.87 & 98.45 & 12.340 \\
      & ResNet    & 99.45 & 99.12 & 98.89 & 18.720 \\
      & ViT       & \cellcolor{green!20}99.67 & \cellcolor{green!20}99.34 & \cellcolor{green!20}99.12 & 25.110 \\
    \midrule
    \multirow{3}{*}{CIFAR-10}
      & CNN       & 85.34 & 82.45 & 81.23 & 45.670 \\
      & ResNet    & 92.11 & 89.76 & 88.54 & 67.890 \\
      & ViT       & \cellcolor{green!20}94.23 & \cellcolor{green!20}91.45 & \cellcolor{green!20}90.12 & 89.230 \\
    \bottomrule
  \end{tabular}
\end{table}

\end{document}

๋ชจ๋ฒ” ์‚ฌ๋ก€ ์š”์•ฝ

  1. booktabs ์‚ฌ์šฉ: ์ „๋ฌธ์  ์™ธ๊ด€, ์ ์ ˆํ•œ ๊ฐ„๊ฒฉ
  2. ์ˆ˜์ง์„  ํ”ผํ•˜๊ธฐ: ์–ด์ˆ˜์„ ํ•˜๊ณ  ๋น„์ „๋ฌธ์ 
  3. \midrule ์•„๊ปด ์‚ฌ์šฉ: ๋…ผ๋ฆฌ์  ๊ทธ๋ฃน์„ ๊ตฌ๋ถ„ํ•  ๋•Œ๋งŒ
  4. ์ˆซ์ž ์ •๋ ฌ: ์†Œ์ˆ˜์  ์ •๋ ฌ์— siunitx ์‚ฌ์šฉ
  5. ํ‘œ ์œ„ ์บก์…˜: ๋Œ€๋ถ€๋ถ„์˜ ์Šคํƒ€์ผ ๊ฐ€์ด๋“œ์˜ ๊ด€๋ก€
  6. ๋‹จ์ˆœํ•˜๊ฒŒ ์œ ์ง€: ํ•„์š”ํ•œ ๊ฒฝ์šฐ๊ฐ€ ์•„๋‹ˆ๋ฉด ์…€ ๋ณ‘ํ•ฉ ๊ธˆ์ง€
  7. ์ผ๊ด€๋œ ํ˜•์‹: ๋ฌธ์„œ ์ „์ฒด์— ๋™์ผํ•œ ํ‘œ ์Šคํƒ€์ผ
  8. ๋ฐ์ดํ„ฐ๋กœ ํ…Œ์ŠคํŠธ: ์—ด ๋„ˆ๋น„๊ฐ€ ์‹ค์ œ ๋ฐ์ดํ„ฐ์—์„œ ์ž‘๋™ํ•˜๋Š”์ง€ ํ™•์ธ
  9. ์ƒ‰์ƒ ์•„๊ปด ์‚ฌ์šฉ: ์ค‘์š” ์ •๋ณด๋งŒ ๊ฐ•์กฐ
  10. ๊ธด ํ‘œ: ์—ฌ๋Ÿฌ ํŽ˜์ด์ง€ ํ‘œ์— longtable ์‚ฌ์šฉ

์ผ๋ฐ˜์ ์ธ ์‹ค์ˆ˜

  1. ๋„ˆ๋ฌด ๋งŽ์€ ์„ : ๋” ๋งŽ์€ ์„  โ‰  ๋” ๋‚˜์€ ํ‘œ
  2. ์ผ๊ด€์„ฑ ์—†๋Š” ๊ฐ„๊ฒฉ: \hline๊ณผ \midrule ํ˜ผํ•ฉ
  3. ์ •๋ ฌ๋˜์ง€ ์•Š์€ ์ˆซ์ž: siunitx์˜ S ์—ด ๋ฏธ์‚ฌ์šฉ
  4. ์•„๋ž˜ ์บก์…˜: ํ‘œ๋Š” ์œ„์— ์บก์…˜์ด ์žˆ์–ด์•ผ ํ•จ
  5. ๊ณ ์ • ๋„ˆ๋น„: ์ƒ๋Œ€ ๋„ˆ๋น„(\textwidth, \linewidth) ์‚ฌ์šฉ
  6. \label ์—†์Œ: ํ‘œ๋ฅผ ์ฐธ์กฐํ•  ์ˆ˜ ์—†์Œ
  7. ๋ณ‘ํ•ฉ ๊ณผ์šฉ: ํ‘œ๋ฅผ ์ฝ๊ธฐ ์–ด๋ ต๊ฒŒ ๋งŒ๋“ฆ

์—ฐ์Šต ๋ฌธ์ œ

์—ฐ์Šต ๋ฌธ์ œ 1: ๊ธฐ๋ณธ ์ „๋ฌธ ํ‘œ

์ด๋ฆ„, ์ •ํ™•๋„, ์ •๋ฐ€๋„, ์žฌํ˜„์œจ, F1 ์ ์ˆ˜ ์—ด์ด ์žˆ๋Š” ์„ธ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ๋น„๊ตํ•˜๋Š” ํ‘œ๋ฅผ ๋งŒ๋“œ์„ธ์š”. booktabs ํ˜•์‹์„ ์‚ฌ์šฉํ•˜์„ธ์š”.

์—ฐ์Šต ๋ฌธ์ œ 2: ๊ทธ๋ฃนํ™”๋œ ๋ฐ์ดํ„ฐ

๋ฒ”์ฃผ๋ณ„๋กœ ๊ทธ๋ฃนํ™”๋œ ๋ฐ์ดํ„ฐ๊ฐ€ ์žˆ๋Š” ํ‘œ๋ฅผ ๋งŒ๋“œ์„ธ์š”. ๋ฒ”์ฃผ ์—ด์— \multirow๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์„น์…˜ ๊ตฌ๋ถ„์ž์— \cmidrule์„ ์‚ฌ์šฉํ•˜์„ธ์š”.

์—ฐ์Šต ๋ฌธ์ œ 3: ๋ณต์žกํ•œ ํ—ค๋”

2๋‹จ๊ณ„ ํ—ค๋”๊ฐ€ ์žˆ๋Š” ํ‘œ๋ฅผ ๋งŒ๋“œ์„ธ์š”:

                Group A              Group B
         X      Y      Z      X      Y      Z
Item 1   ...    ...    ...    ...    ...    ...

์—ฐ์Šต ๋ฌธ์ œ 4: ์ƒ‰์ƒ ํ‘œ

๊ต๋Œ€ ํ–‰ ์ƒ‰์ƒ๊ณผ ์ตœ์ƒ์˜ ๊ฒฐ๊ณผ์— ๋Œ€ํ•œ ๊ฐ•์กฐ ํ‘œ์‹œ๋œ ์…€์ด ์žˆ๋Š” ํ‘œ๋ฅผ ๋งŒ๋“œ์„ธ์š”.

์—ฐ์Šต ๋ฌธ์ œ 5: ์†Œ์ˆ˜์  ์ •๋ ฌ

siunitx๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ ์ ˆํ•˜๊ฒŒ ์ •๋ ฌ๋œ ํ†ตํ™” ๊ฐ’์ด ์žˆ๋Š” ์žฌ๋ฌด ํ‘œ๋ฅผ ๋งŒ๋“œ์„ธ์š”.

์—ฐ์Šต ๋ฌธ์ œ 6: ๋„“์€ ํ‘œ

tabularx๋ฅผ ์‚ฌ์šฉํ•˜๊ฑฐ๋‚˜ sidewaystable๋กœ ํšŒ์ „ํ•˜์—ฌ 10๊ฐœ ์ด์ƒ์˜ ์—ด์ด ์žˆ๋Š” ํ‘œ๋ฅผ ๋งŒ๋“œ์„ธ์š”.

์—ฐ์Šต ๋ฌธ์ œ 7: ๊ธด ํ‘œ

์ ์ ˆํ•œ ํ—ค๋”/ํ‘ธํ„ฐ์™€ ํ•จ๊ป˜ ์—ฌ๋Ÿฌ ํŽ˜์ด์ง€์— ๊ฑธ์ณ ์žˆ๋Š” ์ตœ์†Œ 50๊ฐœ ํ–‰์ด ์žˆ๋Š” longtable์„ ๋งŒ๋“œ์„ธ์š”.

์—ฐ์Šต ๋ฌธ์ œ 8: ์™„์ „ํ•œ ์—ฐ๊ตฌ ํ‘œ

๋‹ค์Œ์„ ํฌํ•จํ•˜์—ฌ ํ•ด๋‹น ๋ถ„์•ผ์˜ ๊ฒŒ์‹œ๋œ ๋…ผ๋ฌธ์—์„œ ํ‘œ๋ฅผ ๋ณต์ œํ•˜์„ธ์š”: - ์ ์ ˆํ•œ booktabs ํ˜•์‹ - ์ ์ ˆํ•œ ๊ฒฝ์šฐ ๋ณ‘ํ•ฉ๋œ ์…€ - ํ‘œ ์ฃผ์„ - ์†Œ์ˆ˜์  ์ •๋ ฌ - ์ „๋ฌธ ํƒ€์ดํฌ๊ทธ๋ž˜ํ”ผ


์š”์•ฝ

์ด ๋ ˆ์Šจ์—์„œ ๋‹ค๋ฃฌ ๋‚ด์šฉ: - ๊ธฐ๋ณธ tabular ๋ณต์Šต ๋ฐ ์—ด ํƒ€์ž… - booktabs ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•œ ์ „๋ฌธ ํ‘œ - ํƒ€์ดํฌ๊ทธ๋ž˜ํ”ผ ๋ชจ๋ฒ” ์‚ฌ๋ก€ (์ˆ˜์ง์„  ํ”ผํ•˜๊ธฐ) - \multicolumn๊ณผ \multirow๋ฅผ ์‚ฌ์šฉํ•œ ์…€ ๋ณ‘ํ•ฉ - xcolor์™€ colortbl์„ ์‚ฌ์šฉํ•œ ์ƒ‰์ƒ ํ‘œ - longtable์„ ์‚ฌ์šฉํ•œ ๊ธด ํ‘œ - tabularx์™€ tabulary๋ฅผ ์‚ฌ์šฉํ•œ ํ‘œ ๋„ˆ๋น„ ์ œ์–ด - ์ˆ˜์ง ์ •๋ ฌ์ด ์žˆ๋Š” ๊ณ ์ • ๋„ˆ๋น„ ์—ด - siunitx๋ฅผ ์‚ฌ์šฉํ•œ ์†Œ์ˆ˜์  ์ •๋ ฌ - threeparttable์„ ์‚ฌ์šฉํ•œ ํ‘œ ์ฃผ์„ - rotating ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•œ ํ‘œ ํšŒ์ „

์ „๋ฌธ์ ์ธ ํ‘œ ํ˜•์‹์€ ๋ฌธ์„œ ํ’ˆ์งˆ์„ ํฌ๊ฒŒ ํ–ฅ์ƒ์‹œํ‚ค๋ฉฐ ํ•™์ˆ  ๋ฐ ๊ธฐ์ˆ  ์ž‘์„ฑ์— ํ•„์ˆ˜์ ์ž…๋‹ˆ๋‹ค.


๋‚ด๋น„๊ฒŒ์ด์…˜: - ์ด์ „: 06_Floats_and_Figures.md - ๋‹ค์Œ: 08_Cross_References.md - ๊ฐœ์š”๋กœ ๋Œ์•„๊ฐ€๊ธฐ

to navigate between lessons