Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to learn to create extended game-forms with LaTeX, but I don't get branches. The example code I've downloaded is:

\documentclass{article}
\usepackage{pstricks}
\usepackage{egameps}
\begin{document}

\begin{figure}[htb]
\hspace*{\fill}
\begin{egame}(600,280)
\putbranch(300,240)(2,1){200} \iib{1}{$C$}{$D$}
\putbranch(100,140)(1,1){100} \iib{}{$c$}{$d$}[$3,3$][$1,4$]
\putbranch(500,140)(1,1){100} \iib{}{$c$}{$d$}[$1,4$][$2,2$]
\infoset(100,140){400}{2}
\end{egame}
\hspace*{\fill} \caption[]{Sample Game}\label{mygame}
\end{figure}
\end{document}

But I only get this:

enter image description here

Is there anyone who knows how to fix this issue?

share|improve this question
1  
This runs fine for me with XeLaTeX so you must not be processing the file correctly. Also, if you are not already committed to using egameps, you should have a look at tikz. –  Peter Grill Feb 8 '12 at 21:11

1 Answer 1

up vote 3 down vote accepted

egameps uses pstricks to draw the lines between nodes. As such, you require a latex>dvips>ps2pdf or xelatex compilation sequence to obtain a PDF as output.

enter image description here

For drawing something similar directly in PDF, you could consider using tikz. There are numerous examples on this site, or you can follow the rich package documentation.

share|improve this answer
    
This works perfectly! Thank you Werner! –  Luigi Feb 9 '12 at 14:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.