๐Ÿ‘ป OS & Tools/LaTeX

LaTex ํ‘œ ๊ด€๋ จ ํŒ (ํ‘œ ์ž๋™ ์ƒ์„ฑ๊ธฐ, ํฐํŠธ ํฌ๊ธฐ ์กฐ์ •, ์…€ ๋„ˆ๋น„, ํ‘œ ๋‚ด๋ถ€ ์—ฌ๋ฐฑ, footnote ๋‹ฌ๊ธฐ)

๋ณต๋งŒ 2022. 4. 26. 22:14

ํ‘œ ์ž๋™ ์ƒ์„ฑ๊ธฐ Table generator

https://www.tablesgenerator.com/#

 

Create LaTeX tables online – TablesGenerator.com

You can import table data by uploading file in CSV format (Comma Separated Value). Most spreadsheet software, both desktop and online, allows to save tabular data in CSV format — it is usually available in the File menu under the name "Save As..." or "Ex

www.tablesgenerator.com

 

์›Œ๋‚™ ์œ ๋ช…ํ•œ ํ‘œ ์ž๋™ ์ƒ์„ฑ๊ธฐ ์‚ฌ์ดํŠธ. Custom grid (ํ…Œ๋‘๋ฆฌ) ์„ค์ •ํ•˜๊ฑฐ๋‚˜ ์…€ ๋ณ‘ํ•ฉ์„ ํ•ด์•ผํ• ๋•Œ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ์ž๋™์œผ๋กœ ์ƒ์„ฑํ•ด์ค˜์„œ ๋งค์šฐ ์œ ์šฉํ•˜๋‹ค.

 

 

ํ‘œ ํฐํŠธ ํฌ๊ธฐ ์กฐ์ • Table font size

์ถœ์ฒ˜: https://bskyvision.com/439

ํฐํŠธ ํฌ๊ธฐ๋ฅผ ์„ค์ •ํ•ด์ฃผ๋Š” ๋ช…๋ น์–ด๋ฅผ tabular ์•ž๋’ค๋กœ ๋„ฃ์–ด์ฃผ๋ฉด ๋œ๋‹ค.

\begin{table}
{\small
\begin{tabular}

...

\end{tabular}
}
\end{table}

 

์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๋ช…๋ น์–ด๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค. (์•„๋ž˜๋กœ ๊ฐˆ์ˆ˜๋ก ํฐ ์‚ฌ์ด์ฆˆ)

  • \tiny
  • \scriptsize
  • \footnotesize
  • \small
  • \normalsize
  • \large
  • \Large
  • \LARGE
  • \huge
  • \Huge

 

 

์…€ ๋„ˆ๋น„ ์กฐ์ •

์ถœ์ฒ˜: https://gist.github.com/LanternD/1edd0fcc64f287d841b6da3ec38c69a2

p{} ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์…€ ๋„ˆ๋น„๋ฅผ ๊ธฐ๋ณธ์ ์œผ๋กœ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, ์ขŒ์ธก์ •๋ ฌ์ผ๋•Œ๋งŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

๊ฐ€์šด๋ฐ์ •๋ ฌ์ด๋‚˜ ์šฐ์ธก์ •๋ ฌ์„ ํ•˜๊ณ  ์…€ ๋„ˆ๋น„๋ฅผ ์„ค์ •ํ•˜๋ ค๋ฉด {array} package๋ฅผ ์ด์šฉํ•ด ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ •์˜ํ•˜์—ฌ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.

\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

\begin{table}
\begin{tabular}{L{2cm} | C{1cm} | R{2cm}}

\hline
a1 & a2 & a3 \\ \hline\hline
b1 & b2 & b3  \\ \hline
c1 & c2 & c3  \\ \hline
d1 & d2 & d3  \\ \hline

\end{tabular}
\end{table}

 

L์€ ์ขŒ์ธก์ •๋ ฌ, C๋Š” ๊ฐ€์šด๋ฐ์ •๋ ฌ, R์€ ์šฐ์ธก์ •๋ ฌ์ด๋ฉฐ {} ์•ˆ์— ์…€ ๋„ˆ๋น„๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋‹ค.

 

 

 

ํ‘œ ๋‚ด๋ถ€ ์—ฌ๋ฐฑ (ํ‘œ ๋†’์ด, ๋„ˆ๋น„ ์กฐ์ •) Table width, height

์ถœ์ฒ˜: https://ko.overleaf.com/learn/latex/Questions/How_do_I_change_column_or_row_separation_in_LaTeX_tables%3F

์˜ˆ์‹œ: https://www.overleaf.com/project/5c349976c042023b1bd97751

ํ‘œ ์ „์ฒด ํฌ๊ธฐ๋ฅผ ์กฐ์ ˆํ•˜๊ธฐ ์œ„ํ•ด ํ‘œ ๋‚ด๋ถ€ ์—ฌ๋ฐฑ์„ ์กฐ์ ˆํ•  ์ˆ˜ ์žˆ๋‹ค.

\begin{table}
\setlength{\tabcolsep}{10pt}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}

\hline
a1 & a2 & a3  \\ \hline\hline
b1 & b2 & b3  \\ \hline
c1 & c2 & c3  \\ \hline
d1 & d2 & d3  \\ \hline

\end{tabular}
\end{table}

 

\setlength๋Š” horizontal spacing (์ขŒ์šฐ ์—ฌ๋ฐฑ),

\arraystretch๋Š” vertical spacing (์ƒํ•˜ ์—ฌ๋ฐฑ)์„ ์กฐ์ •ํ•œ๋‹ค.

 

footnote ๋‹ฌ๊ธฐ

์ถœ์ฒ˜: https://tex.stackexchange.com/questions/118743/threeparttable-notes-layout

caption์ด ์•„๋‹ˆ๋ผ, footnote๋ฅผ ๋‹ฌ๊ธฐ ์œ„ํ•ด {threeparttable} package๋ฅผ ์ด์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

\usepackage{threeparttable}

\begin{table}
\caption{}

\begin{threeparttable}
\begin{tabular}

\hline
a1 & a2 & a3\tnote{1}  \\ \hline\hline
b1 & b2 & b3  \\ \hline
c1 & c2 & c3  \\ \hline
d1 & d2 & d3  \\ \hline

\end{tabular}
\begin{tablenotes}       
    \item[1] abc: ABC
\end{tablenotes}
\end{threeparttable}
\end{table}

 

๊ตต์€ ์„  ์ถ”๊ฐ€ํ•˜๊ธฐ

๊ตต์€ ๊ฐ€๋กœ ์„ ์„ ํ…Œ์ด๋ธ” ์œ„/์•„๋ž˜์— ์ด์šฉํ•˜๋ฉด  ๋” ๊น”๋”ํ•˜๊ฒŒ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค. {booktabs} package๋ฅผ ์ด์šฉํ•œ๋‹ค.

\usepackage{booktabs}

\begin{table}
\caption{}

\begin{tabular}{c|c|c}

\toprule[1.5pt]
a1 & a2 & a3  \\ \hline\hline
b1 & b2 & b3  \\ \hline

c1 & c2 & c3  \\ \hline
d1 & d2 & d3  \\ \bottomrule[1.5pt]

\end{tabular}
\end{table}

 

 

๋ฐ˜์‘ํ˜•