%!TEX program = arara
% arara: xelatex: {synctex: yes}
% arara: xelatex: {synctex: yes}

% 2017/01/27  v0.9
\def\tmpdate{2017/02/13}
\def\tmpversion{v0.9}

\documentclass[a4paper]{oblivoir}

\usepackage{fapapersize}
\usefapapersize{*,*,30mm,*,28mm,28mm}
\setsecnumdepth{subsubsection}
\settocdepth{subsubsection}
\setlength\cftsubsubsectionindent{4.5em}

\usepackage{tabu}
\usepackage{mathtools}
%\usepackage{xparse}  %% oblivoir will load xparse
%\usepackage{tikz}    %% istgame will load tikz
%\usetikzlibrary{calc,shapes}
\usepackage{makecell}
\usepackage{capt-of}
\usepackage{multido}

\usepackage{tcolorbox}
\tcbuselibrary{listings,breakable}
    \tcbset{text and listing,center upper,sidebyside gap=10pt,lower separated=true,
    listing options={
    	style=tcblatex,
        keywordstyle=\color{blue},
        commentstyle=\color{black!20!green},
        morekeywords={istroot,istb,endist,}
        },
    }

%\usepackage{tikz-qtree}

\linespread{1}
\usepackage{istgame-v09}


\newcommand*\Tikz{Ti\textit{k}Z}
\newcommand*\tikzlogo{Ti\textit{k}Z}

\renewcommand\contentsname{Table of Contents}
\renewcommand\figurename{Figure}
\renewcommand\tablename{Table}
\renewcommand\abstractname{Abstract}

\newenvironment{keywords}{%
	\par\vskip2pt
	\noindent\hangfrom{\textsc{Keywords: }}%
}

\NewDocumentEnvironment{mytcblisting}{O{}}
{ \medskip
  \begin{tcblisting}{#1} 
}
{ \end{tcblisting}
  \medskip
}

%% more lazy macros
\newcommand\mbigskip[1]{\multido{}{#1}\bigskip}
\newcommand\xword[1]{\cmd{#1}}
\newcommand\pkg[1]{\cmd{#1}}
\newcommand\env[1]{\cmd{#1}}
\def\hpara{\hangpara{1.52em}{1}}


%%-------------------------------------------------------------------------------------------------------------------
\begin{document}

\title{\texttt{istgame.sty} \\
Drawing Game Trees with \tikzlogo}
\author{In-Sung Cho \\  \texttt{ischo <at> ktug.org}}
\date{\tmpdate\quad version \tmpversion}

\frontmatter
\maketitle

\begin{abstract}
This package provides macros based on \Tikz\ to draw a game tree. The main idea underlying the core macros here is the completion of a whole tree using a sequence of simple `parent-child' tree structures, with no longer nested relations involved like down to grandchildren or to great-grandchildren.

\begin{keywords}
game trees, tikz, nodes, branches, information sets, subgames
\end{keywords}
\end{abstract}

\tableofcontents*

\mainmatter

%\input{istgame_test}
\input{istgame-doc-v09}


\end{document}
