Graphics, Figures & Tablesegameps | Undefined Control Sequence

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Yfke
Posts: 4
Joined: Mon Aug 30, 2010 9:10 pm

egameps | Undefined Control Sequence

Post by Yfke »

Hi,

I'm trying to use the egameps package in order to draw some extensive form games in LaTeX. First, I tried to just copy an example from the documentation into my own LaTeX-file. However, this example code already generates an error.

My code looks like this:

Code: Select all

\documentclass{article}

\usepackage{pstricks}
\usepackage{egameps}

\begin{document}

\begin{egame}(600,280)
\putbranch(300,240)(2,1){200}
\iib{1}{$L$}{$R$}
\putbranch(100,140)(1,1){100}
\iib{}{$a$}{$b$}[$1,0$][$2,3$]
\putbranch(500,140)(1,1){100}
\iib{}{$c$}{$d$}[$0,1$][$-1,0$]
\infoset(100,140){400}{2}
\end{egame}

\end{document}
The part between the begin and end of egame environment is copied literally from the "egameps" documentation, so I'm pretty sure it should work.


And the generated error message is this one:

Code: Select all

! Undefined control sequence.
<recently read> \c@lor@to@ps

l.11 \putbranch
                (100,140)(1,1){100}
?
Any thoughts on what could cause this? I'm using TeXShop (version 2.33). Thanks! :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

egameps | Undefined Control Sequence

Post by localghost »

Since this package relies on PSTricks, you can't compile with PDFLaTeX directly. Either compile via »LaTeX → DVI → PS → PDF« or choose alternative methods for direct PDf output [1]. Read the instructions of the involved packages carefully. Otherwise they won't work (keyword: shell escape). As last alternative you can run XeLaTeX on your code.

[1] /PSTricks/pdf/pdfoutput


Thorsten
Post Reply