KTUG 한국 텍 사용자 그룹

Menu

KTUG :: 마당

와우! 독보적인 tabu의 spread!!!

일단 기본부터 시작해봅니다. (위에 제시한 그림에서  payoff를 바로잡음.)

\documentclass{article}

\usepackage{multirow}

\begin{document}

\DeclareExpandableDocumentCommand\xcol{mO{c}m}{\multicolumn{#1}{#2}{#3}}

\begin{tabular}{c|c|c|}
\xcol1{~} & \xcol1{$C$} & \xcol1{$D$} \\ \cline{2-3}
$C$       & $2,2$       & $0,3$       \\ \cline{2-3}
$D$       & $3,1$       & $1,1$       \\ \cline{2-3}
\end{tabular}

\vspace{1cm}

%% \usepackage{multirow}
\DeclareExpandableDocumentCommand\xrow{mm}{\multirow{#1}{*}{#2}}
\begin{tabular}{rc|c|c|}
\xcol2{~}                    & \xcol2{Player II}         \\
\xcol1{~}        & \xcol1{~} & \xcol1{$C$} & \xcol1{$D$} \\ \cline{3-4}
\xrow2{Player I} & $C$       & $2,2$       & $0,3$       \\ \cline{3-4}
                 & $D$       & $3,1$       & $1,1$       \\ \cline{3-4}
\end{tabular}

\end{document}

참고:
 - istgame v2.1 매뉴얼, p.99. (texdoc istgame}
 - tex.stackexchange

KTUG 한국 텍 사용자 그룹