tabu로 그리기:
\documentclass{article} \usepackage{tabu} \usepackage{multirow} %% tabu-fix (by ndh) \usepackage{etoolbox} \makeatletter \patchcmd \tabu@startpboxmeasure {\bgroup\begin{varwidth}}% {\bgroup \iftabu@spread\color@begingroup\fi\begin{varwidth}}% {}{} \def\@tabarray{\m@th\def\tabu@currentgrouptype{\currentgrouptype}% \@ifnextchar[\@array{\@array[c]}} \patchcmd \tabu@message@etime {\the\pdfelapsedtime}% {\pdfelapsedtime}% {}{} \makeatother \begin{document} \DeclareExpandableDocumentCommand\xcol{mO{c}m}{\multicolumn{#1}{#2}{#3}} \begin{tabu}spread0pt{X[$c1]*2{|X[$c2]}|} \xcol1{~} & \xcol1{$C$} &\xcol1{$D$} \\ \tabucline{2-} C & 2,2 & 0,3 \\ \tabucline{2-} D & 3,0 & 1,1 \\ \tabucline{2-} \end{tabu} \vspace{1cm} %% \usepackage{multirow} \DeclareExpandableDocumentCommand\xrow{mm}{\multirow{#1}{*}{#2}} \begin{tabu}spread0pt{X[c3]X[$c1]*2{|X[$c2]}|} \xcol2{~} & \xcol2{Player Two} \\ \xcol2{~} & \xcol1{$C$} &\xcol1{$D$} \\ \tabucline{3-} \xrow2{Player One} & C & 2,2 & 0,3 \\ \tabucline{3-} & D & 3,0 & 1,1 \\ \tabucline{3-} \end{tabu} \end{document}
장점: - spread: 표의 column width가 제일 넓은 column과 같게 고르게 그려짐. (비례적으로 조절할 수도 있음.) - 게임 테이블을 가장 손이 덜 가게 그릴 수 있었음. 단점: - 2011년 이후, 업데이트 되지 않고 있어서, 웬만하면 쓰지 말라는 이야기가 있음.
KTUG 한국 텍 사용자 그룹
tabu로 그리기:
장점:
- spread: 표의 column width가 제일 넓은 column과 같게 고르게 그려짐. (비례적으로 조절할 수도 있음.)
- 게임 테이블을 가장 손이 덜 가게 그릴 수 있었음.
단점:
- 2011년 이후, 업데이트 되지 않고 있어서, 웬만하면 쓰지 말라는 이야기가 있음.