KTUG 한국 텍 사용자 그룹

Menu

KTUG :: 마당

잠시 머리 식힐겸 한번 해보았습니다. TikZ가 미숙해서 그런지 코드가 조금 마음에는 안듭니다.

\documentclass{oblivoir}


\usepackage{tikz}

\usetikzlibrary{calc}

\tikzset{>=latex}


\tikzstyle{solid node}=[circle,draw,inner sep=1.5,fill=black]


\begin{document}

\begin{tikzpicture}[level distance=30mm,level/.style={sibling distance=50mm}]

\node[solid node,label=above:{Child}] (start) {}

child {node[solid node,label=below:{(0,2)}] (a) {} edge from parent[->,>=stealth,thick]}

child {node[solid node,label=right:{parent}] (b) {} edge from parent[->,>=stealth,thick]

child {node[solid node,label=below:{(1,1)}] (c) {} }

child {node[solid node,label=below:{(-1,-1)}] (d) {}}

};

\node[xshift=5mm,yshift=17mm] at (a) {\textit{Good}};

\node[xshift=-5mm,yshift=17mm] at (b) {\textit{Bad}};

\node[xshift=5mm,yshift=17mm] at (c) {\textit{Forgive}};

\node[xshift=-5mm,yshift=17mm] at (d) {\textit{Punish}};

\end{tikzpicture}

\end{document}


Game.PNG



KTUG 한국 텍 사용자 그룹