summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Clea F. Rees <cfrees@imapmail.org>2008-12-04 00:11:00 +0000
committerDr. Clea F. Rees <cfrees@imapmail.org>2008-12-04 00:11:00 +0000
commitfda2afc1b24273391bf800ae7a2bdf03596f5654 (patch)
tree70e6e8d2302a1a56ed85ac133141e20042396c82
parent2e29efe27b833a549199243c48ce96ce2d6e3702 (diff)
sgame 2.14 2008/12/02
git-svn-id: svn://tug.org/texlive/trunk@11511 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/sgame/sgame.pdfbin77582 -> 80502 bytes
-rw-r--r--Master/texmf-dist/doc/latex/sgame/sgame.tex71
-rw-r--r--Master/texmf-dist/tex/latex/sgame/sgame.sty10
-rw-r--r--Master/texmf-dist/tex/latex/sgame/sgamevar.sty6
4 files changed, 70 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/sgame/sgame.pdf b/Master/texmf-dist/doc/latex/sgame/sgame.pdf
index a29eb64d536..60ca0666af9 100644
--- a/Master/texmf-dist/doc/latex/sgame/sgame.pdf
+++ b/Master/texmf-dist/doc/latex/sgame/sgame.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/sgame/sgame.tex b/Master/texmf-dist/doc/latex/sgame/sgame.tex
index dfed299276a..4165a76086c 100644
--- a/Master/texmf-dist/doc/latex/sgame/sgame.tex
+++ b/Master/texmf-dist/doc/latex/sgame/sgame.tex
@@ -5,7 +5,7 @@
\usepackage{mjoarti}
\usepackage{mathpazo}
\usepackage{pstricks}
-\usepackage{pstcol,pst-mjo}
+\usepackage{pst-mjo}
\usepackage{sgame}
\usepackage{url}
\begin{document}
@@ -18,17 +18,18 @@
by\\
Martin J. Osborne\\
{\tt Martin.Osborne@utoronto.ca}\\
-For Version 2.13, 2005/7/8
+For Version 2.14, 2008-12-2
\end{center}
{\sloppy
\section{Introduction}
{\tt sgame.sty} and {\tt sgamevar.sty} are \LaTeXe\ style files for drawing
strategic games. The latest versions are available at
-\url{http://www.economics.utoronto.ca/osborne/latex}. The styles are
-incompatible with \texttt{array.sty} (and hence any package, like
-\texttt{jurabib.sty}, that loads \texttt{array.sty}). Please notify me of
-bugs.
+\url{http://www.economics.utoronto.ca/osborne/latex}. The style
+\texttt{sgamevar.sty} (but not \texttt{sgame.sty}) is compatible with
+\texttt{beamer}. Both styles are incompatible with the \texttt{memoir} class
+and with \texttt{array.sty} (and hence any package, like \texttt{jurabib.sty},
+that loads \texttt{array.sty}). Please notify me of bugs.
\section{sgame.sty versus sgamevar.sty}
\verb+sgame.sty+ and \verb+sgamevar.sty+ differ in two respects.
\begin{itemize}
@@ -62,7 +63,14 @@ an error. If you don't have the package, get it from CTAN.
\verb+\usepackage{sgame}+ (or \verb+\usepackage{sgamevar}+) and
\verb+\usepackage{color}+ (or \verb+\usepackage{pstcol}+, part of PSTricks,
which loads \verb+color+) in the preamble.
+\end{itemize}
+\section{Compatibility with other packages}
+\begin{itemize}
\item The style is incompatible with \verb+colortbl.sty+.
+ \item To use in \verb+beamer+, put a game in a\newline
+\verb+\begin{frame}[fragile]...\end{frame}+ environment.
+ \item In the case of incompatibilities with other styles, try using
+\verb+sgamevar+ rather than \verb+sgame+.
\end{itemize}
\section{Description}
The style defines two environments, \verb+game+ and \verb+game*+. Each
@@ -436,6 +444,44 @@ $B$&$3,3$&$4,4$
left game we have \texttt{ssualtrue} (the default); in the right game
\texttt{ssualfalse} is declared.}\label{f:ssual1}
\end{figure}
+\section{Thick lines}
+To change the width of the cell boundaries, set \verb+\arrayrulewidth+ (by
+writing something like \verb+\arrayrulewidth2mm+ or, if you prefer,
+\verb+\setlength{\arrayrulewidth}{2mm}+). In addition, you may need to
+stretch the game vertically to accommodate the thicker lines. To do so, set
+\verb+\gamestretch+ (by writing something like
+\verb+\renewcommand{\gamestretch}{2}+). Here's an example.
+
+\begin{verbatim}
+\def\sgtextcolor{blue}%
+\def\sglinecolor{red}%
+\renewcommand{\gamestretch}{2}
+\arrayrulewidth2mm
+\begin{figure}[htb]\hspace*{\fill}%
+\begin{game}{2}{2}
+ & $L$ & $R$\\
+$T$ &$2,2$ &$100,35$\\
+$B$ &$3,0$ &$350,16$
+\end{game}\hspace*{\fill}%
+\caption[]{Thick lines.}
+\end{figure}
+\end{verbatim}
+
+\def\sgtextcolor{blue}%
+\def\sglinecolor{red}%
+\renewcommand{\gamestretch}{2}
+\arrayrulewidth2mm
+\begin{figure}[htb]\hspace*{\fill}%
+\begin{game}{2}{2}
+ & $L$ & $R$\\
+$T$ &$2,2$ &$100,35$\\
+$B$ &$3,0$ &$350,16$
+\end{game}\hspace*{\fill}%
+\caption[]{Thick lines.}
+\end{figure}
+
+
+
\section{Parameters}\label{s:param}
\verb+\gamestretch+: a number that controls the spacing between rows,
analogous to \verb+\arraystretch+. Possible values: positive real numbers.
@@ -504,18 +550,21 @@ player labels). Default: \verb+black+. Example:
\end{description}
\subsection*{Version 2}
\begin{description}
-\item[1997/10] Labels allowed (via additional optional argument). Parameters
+\item[1997-10] Labels allowed (via additional optional argument). Parameters
added: \verb+\sglabelsep+, \verb+\sgcolsep+, \verb+\irplwcgltrue+,
\verb+\irpawcgltrue+, and \verb+\gamemathtrue+.
-\item[2002/6 (version 2.1)] Modification of \LaTeX's \verb+\@array+ changed so
+\item[2002-6 (version 2.1)] Modification of \LaTeX's \verb+\@array+ changed so
that it does not change spacing in \verb+tabular+ environment. Color
functionality added. Parameters added: \verb+\gamevaligntrue+,
\verb+\ssualtrue+ (allowing more control over vertical spacing when
\verb+\gamestretch+ is greater than 1), \verb+\sglinecolor+,
\verb+\sgtextcolor+.
-\item[2004/5/13 (version 2.11)] Minor bug fix.
-\item[2004/5/21 (version 2.12)] Minor bug fix.
-\item[2005/7/8 (version 2.13)] Minor bug fix.
+\item[2004-5-13 (version 2.11)] Minor bug fix.
+\item[2004-5-21 (version 2.12)] Minor bug fix.
+\item[2005-7-8 (version 2.13)] Minor bug fix.
+\item[2008-12-2 (version 2.14)] Minor bug fix: length of bottom line (bug
+inherited from \verb+tabular+ environment; noticeable only when lines are
+thick). Bug pointed out by Marcel Priebsch.
\end{description}
}
diff --git a/Master/texmf-dist/tex/latex/sgame/sgame.sty b/Master/texmf-dist/tex/latex/sgame/sgame.sty
index f776f4fcbb1..9107813a330 100644
--- a/Master/texmf-dist/tex/latex/sgame/sgame.sty
+++ b/Master/texmf-dist/tex/latex/sgame/sgame.sty
@@ -1,7 +1,7 @@
% sgame.sty (for formatting strategic games)
% <title>LaTeX style file for typesetting strategic games</title>
% Martin J. Osborne (based on suggestions of Michael Carter)
-% Version 2.13, 2005/7/8
+% Version 2.14, 2008/12/2
% Please report bugs to: martin.osborne@utoronto.ca
% The latest version may be found at
% http://www.economics.utoronto.ca/osborne/latex
@@ -258,7 +258,9 @@
\global\sg@colwd\wd0%
\else\fi%
\hfil\box0\hfil\global\sg@colindex 1\relax%
- \sg@strut\cr\cline{2-\sg@numcols}%
+% 2008-12-2: \noalign{\vskip-\arrayrulewidth} added to align thick
+% rules correctly
+ \sg@strut\cr\noalign{\vskip-\arrayrulewidth}\cline{2-\sg@numcols}%
{\global\advance\sg@rowindex by 1}%
{\global\sg@xcolwd\sg@colwd}%
{\global\sg@colwd 0pt}%
@@ -313,7 +315,9 @@
\fi
\hfil\box0\hfil\sg@strut%
\cr%
- \cline{2-\sg@numcols}%
+% 2008-12-2: \noalign{\vskip-\arrayrulewidth} added to align thick
+% rules correctly
+ \noalign{\vskip-\arrayrulewidth}\cline{2-\sg@numcols}%
% If game has a label, add a row with the label
\ifsg@label%
\sg@putlabel{u}%
diff --git a/Master/texmf-dist/tex/latex/sgame/sgamevar.sty b/Master/texmf-dist/tex/latex/sgame/sgamevar.sty
index 491fc30c2c8..9f317c8161e 100644
--- a/Master/texmf-dist/tex/latex/sgame/sgamevar.sty
+++ b/Master/texmf-dist/tex/latex/sgame/sgamevar.sty
@@ -2,7 +2,7 @@
% avoids \catcode changes)
% <title>LaTeX style file for typesetting strategic games</title>
% Martin J. Osborne (based on suggestions of Michael Carter)
-% Version 2.12, 2004/5/21
+% Version 2.14, 2008-12-2
% Please report bugs to: martin.osborne@utoronto.ca
% The latest version may be found at
% http://www.economics.utoronto.ca/osborne/latex
@@ -257,7 +257,7 @@
\global\sg@colwd\wd0%
\else\fi%
\hfil\box0\hfil\global\sg@colindex 1\relax%
- \sg@strut\cr\cline{2-\sg@numcols}%
+ \sg@strut\cr\noalign{\vskip-\arrayrulewidth}\cline{2-\sg@numcols}%
{\global\advance\sg@rowindex by 1}%
{\global\sg@xcolwd\sg@colwd}%
{\global\sg@colwd 0pt}%
@@ -313,7 +313,7 @@
\fi
\hfil\box0\hfil\sg@strut%
\cr%
- \cline{2-\sg@numcols}%
+ \noalign{\vskip-\arrayrulewidth}\cline{2-\sg@numcols}%
% If game has a label, add a row with the label
\ifsg@label%
\sg@putlabel{u}%