summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/istgame/istgame-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/istgame/istgame-doc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/istgame/istgame-doc.tex119
1 files changed, 79 insertions, 40 deletions
diff --git a/Master/texmf-dist/doc/latex/istgame/istgame-doc.tex b/Master/texmf-dist/doc/latex/istgame/istgame-doc.tex
index eec92b2280b..af88f6a5d22 100644
--- a/Master/texmf-dist/doc/latex/istgame/istgame-doc.tex
+++ b/Master/texmf-dist/doc/latex/istgame/istgame-doc.tex
@@ -5,14 +5,22 @@
% arara: xelatex: {synctex: yes}
% arara: xelatex: {synctex: yes}
-% 2017/09/04 v1.0
-\def\tmpdate{2017/09/04}
-\def\tmpversion{1.0}
+\def\tmpdate{2019/01/27} % final
+\def\tmpversion{2.0}
-\documentclass[a4paper]{oblivoir}
+\def\printtikztreetest{}
+\def\printtest{}
+\def\printdoc{}
+%\renewcommand\printtikztreetest{\input{istgame_test_tree}}
+%\renewcommand\printtest{\input{istgame_test}}
+\renewcommand\printdoc{\include{istgame-doc-v2.0}}
+
+\documentclass[a4paper,amsmath]{oblivoir}
+
+\usepackage{istgame}
\usepackage{fapapersize}
-\usefapapersize{*,*,30mm,*,28mm,28mm}
+\usefapapersize{*,*,30mm,*,28mm,*}
\setsecnumdepth{subsubsection}
\settocdepth{subsubsection}
\setlength\cftsubsubsectionindent{4.5em}
@@ -24,63 +32,74 @@
\renewcommand\indexname{Index}
\renewcommand\pagerefname{\kern-4pt}
-\usepackage{tabu}
+\hypersetup{pdfborder={0 0 0}} % to suppress the hyperlink red box
+
\usepackage{mathtools}
-%\usepackage{xparse} %% oblivoir will load xparse
-%\usepackage{tikz} %% istgame will load tikz
+%\usepackage{xparse} %% oblivoir loads xparse
+%\usepackage{tikz} %% istgame loads tikz
\usepackage{makecell}
\usepackage{capt-of}
\usepackage{multido}
-\usepackage{ulem}
+\usepackage[normalem]{ulem} % [normalem] to correct the pdf bookmark broken characters
\usepackage{idxlayout}
+%\usepackage{url}
-\usepackage{istgame}
+%\setistdefaultnodedrawcolor{red} % test
+%\setistdefaultnodefillcolor{black!16} % (try for macos mohave dark mode, TeXShop background color)
\usepackage{tcolorbox}
\tcbuselibrary{listings,breakable}
- \tcbset{breakable,listing above text,center upper,sidebyside gap=10pt,lower separated=true,center lower,
+ \tcbset{breakable,listing above text,center upper,sidebyside gap=10pt,
+ lower separated=true,center lower,
listing options={
style=tcblatex,
keywordstyle=\color{blue},
commentstyle=\color{black!20!green},
- morekeywords={istgame,istroot,istrooto,istb,endist,xtdistance,
- istcntm,istcntmarc,setistgrowdirection,istgrowdirection,
+ morekeywords={
+ istgamefontsize,setistgamefontsize,setistgamearrowendshorten,
+ istgame,istroot,istrooto,istb,endist,xtdistance,istbm,
+ istbt,istB,istBt,istbA,cntmAInfoset,cntmAInfosetO,
+ istrootcntm,istrootcntmA,istrootocntm,istrootocntmA,
+ setistgrowdirection,istgrowdirection,
+ setistmathTF,istownerlmathtrue,istownermathfalse,istactioinlabelmathtrue,
+ istactionlabelmathfalse,istpayoffmathtrue,istpayoffmathfalse,
+ cntmdistance,cntmlevdist,cntmsibdist,
+ cntmApreset,cntmistb,cntmAistb,cntmAexpostShowEndPoints,
xtInfoset,xtInfosetO,xtActionLabel,
- xtSubgame,xtSubgameBox,xtSubgameOval,istgamefontsize,setistgamefontsize,
- xtgrow,setistgrowkey,xtInfosetOwner,xtOwner,xtPayoff,xtNode,
+ xtSubgame,xtSubgameBox,xtSubgameOval,
+ xtgrow,setxtgrowkey,xtInfosetOwner,xtOwner,xtPayoff,xtNode,
+ xtALPush,xtALShift,
xtShowEndPoints,xtHideEndPoints,
xtShowTerminalNodes,xtHideTerminalNodes,
+ xtTimeLineH,xtTimeLineV,xtCommentTo,xtCommentFrom,xtShowArrows,xtHideArrows,
xtlevdist,xtsibdist,
+ xtShowArrows,xtHideArrows,xtShowMidArrows,xtHideMidArrows,
+ setxtshowarrows,setxtmidarrows,setxtshowmidarrows,
+ setxtinfosetlayer,setxtsubgamelayer,
+ setistNewNodeStyle,
setistDecisionNodeStyle,setistOvalNodeStyle,
setistSolidNodeStyle,setistHollowNodeStyle,
setistEllipseNodeStyle,setistNullNodeStyle,setistRectangleNodeStyle,
- cntmdistance,cntmlevdist,cntmsibdist,
xtALpush,xtALshift,
xtdefaultsubrootshiftoval,
- \tikzstyle,\draw,\node,\coordinate,\foreach,
- NewDocumentCommand,NewDocumentEnvironment,IfBooleanTF
+ tikzstyle,draw,coordinate,foreach,setlength,
+ NewDocumentCommand,NewDocumentEnvironment,IfBooleanTF,tikzset,
+ xtCInfoset,xtCInfosetO,xtCInfosetOTurnX,
+ cntmpreset,cntmApreset,cntmAlayerpreset
+ setxtinfosetstyle,setxtarrowtips,setxtinfosetstyle
}
}
}
%\usepackage{tikz-qtree} %%% DO NOT USE
-
-%%% to resolve the conflict with tikz-qtree
-%\RenewDocumentEnvironment{istgame}{O{}} % accepts tikzpicture options
-% {\begin{tikzpicture}[%
-% edge from parent path={(\tikzparentnode\istparentanchor) --
-% (\tikzchildnode\istchildanchor)}, % tikz-qtree conflict resolved
-% font=\istgamefontsize,>=stealth,#1
-% ]
-% }
-% {\end{tikzpicture}
-% }
+% or, add the following in the option
+% [ edge from parent path={(\tikzparentnode) -- (\tikzchildnode)} ]
\linespread{1}
\newcommand*\Tikz{Ti\textit{k}Z}
-\let\tikz\Tikz
+\let\TikZ\Tikz
\newenvironment{keywords}{%
\par\vskip2pt
@@ -99,19 +118,34 @@
{\multicolumn{#1}{#2}{\ensuremath{#3}}}
%% more lazy macros
-\newcommand\mbigskip[1]{\multido{}{#1}\bigskip}
+\newcommand\xbigskip[1]{\multido{}{#1}\bigskip}
+\newcommand\xmedskip[1]{\multido{}{#1}\bigskip}
+\newcommand\xsmallskip[1]{\multido{}{#1}\bigskip}
\def\hpara{\hangpara{1.52em}{1}}
+\def\listdivider{\leavevmode\smallskip\hrule width 1.5em\smallskip}
\newcommand\remark{\noindent \textbf{Remark: }}
+\newcommand\warning{\noindent \textbf{Warning: }}
%% index
-\renewcommand\cmd[1]{\cmdprint{#1}}
-\newcommand\xword[1]{\cmd{#1}}
+%\renewcommand\cmd[1]{\cmdprint{#1}}
+\ExplSyntaxOn
+\renewcommand \cmd [1]
+{
+ \texorpdfstring
+ { \cmdprint {#1} }
+ { \textbackslash \cs_to_str:N #1 }
+}
+\ExplSyntaxOff
+
\newcommand\xw[1]{\cmd{#1}}
+\newcommand\xttw[1]{\texttt{#1}}
\newcommand\pkg[1]{\textsf{#1}}
\newcommand\env[1]{\textsf{#1}}
-\newcommand\ixw[1]{\cmd{#1}\index{#1}}
-\newcommand\isw[1]{#1\index{#1}}
+\newcommand\isw[1]{#1\index{#1}} % simple word in text/index
+\newcommand\ixsw[1]{\cmd{#1}\index{#1}} % texttt in text, simple word in index
+\newcommand\ixw[1]{\textsf{#1}\index{#1@\textsf{#1}}} % textsf in text/index
+\newcommand\ixttw[1]{\texttt{#1}\index{#1@\texttt{#1}}} % texttt in text/index
\newcommand\ipkg[1]{\textsf{#1}\index{#1@\textsf{#1}}}
\newcommand\ienv[1]{\textsf{#1}\index{#1@\textsf{#1}}}
@@ -123,22 +157,25 @@
\makeindex
\title{\texttt{istgame.sty} \\
-Drawing Game Trees with \tikz}
+Draw Game Trees with \Tikz}
\author{In-Sung Cho \\ \texttt{ischo <at> ktug.org}}
\date{Economics, Kongju National University\\[3pt] \tmpdate\quad version \tmpversion}
+\def\tmpclearpage{\clearpage}
+
%%=======================================================================
\begin{document}
\frontmatter
\maketitle
+\renewcommand{\abstracttextfont}{\normalfont\small\noindent\ignorespaces}
\begin{abstract}
This is a \LaTeX{} package that 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 by using a sequence of simple `parent-child' tree structures, with no longer nested relations involved like the use of grandchildren or great-grandchildren.
-With the \ipkg{istgame} package, you can draw a game tree as if you were drawing a game tree with a pen and paper.
+With the \ipkg{istgame} package, you can draw a game tree as easily as drawing a game tree with pen and paper.
\begin{keywords}
-game trees, nodes, branches, information sets, subgames
+game trees, nodes, branches, information sets, continuum of branches, subgames
\end{keywords}
\end{abstract}
@@ -146,8 +183,10 @@ game trees, nodes, branches, information sets, subgames
\mainmatter
-%\input{istgame_test}
-\include{istgame-doc-v1.0}
+
+\printtikztreetest
+\printtest
+\printdoc
\printindex