Graphics, Figures & Tablesegameps | Arcs between Branches not working

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
yoosun
Posts: 3
Joined: Wed Jan 23, 2013 11:00 pm

egameps | Arcs between Branches not working

Post by yoosun »

Hello,

I'm trying to use the egameps package for making an extensive form game in LaTeX. I would like to use \ctmbarc to give an arc for a continuum of branches. Actually, without "arc" part out of \ctmbarc, it is working fine. However, \ctmbarc generates an error. I've taken the compiling route "LaTeX -> DIV -> PS -> PDF". This process works perfect using \ctmb in the LaTeX code; but, it stops with \ctmbarc in it.

My simple code is following;

Code: Select all

\documentclass[a4paper, 11pt] {article}
\usepackage{pstricks}
\usepackage{pstcol}
\usepackage{pst-3d}
\usepackage{url}
\usepackage{egameps}

\begin{document}

\begin{figure}[htb]

\hspace*{\fill}

\begin{egame}(600,280)

\putbranch(0,150)(2,2)[r]{150}
\ctmbarc[linewidth=0.3pt, linecolor=red]{N}(1,0){$a,\alpha$}[$2,2$]

\end{egame}

\hspace*{\fill} 

\caption[]{Sample Game}\label{mygame}

\end{figure}

\end{document}

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

egameps | Arcs between Branches not working

Post by localghost »

No problem here. Perhaps a matter of outdated PSTricks related packages. So, an update might be suggestive.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{pst-3d,pstricks-add}
\usepackage{egameps}

\begin{document}
  \begin{figure}[!htb]
    \centering
    \begin{egame}(600,280)
      \putbranch(0,150)(2,2)[r]{150}
      \ctmbarc[linewidth=0.3pt, linecolor=red]{N}(1,0){$a,\alpha$}[$2,2$]
    \end{egame}
    \caption[]{Sample Game}\label{mygame}
  \end{figure}
\end{document}
Remarks: (see above code)
  • The pstcol package is obsolete. You should get a corresponding warning by the PSTricks package. Just drop it.
  • To center the {figure} content just use \centering instead of your construct with \hspace*.

Best regards and welcome to the board
Thorsten
yoosun
Posts: 3
Joined: Wed Jan 23, 2013 11:00 pm

Re: egameps | Arcs between Branches not working

Post by yoosun »

Hi,

Thanks for your reply. I've updated pstricks with pstricks-add.
However, it is still not working, producing the same error.

I was guessing I might not know exactly how to install pstricks & pstrkcs-add packages. Here is what I've done.

I download the package zip files and put all of the upziped files(including style file, of course) under the directory where my tex file locates. I have no idea what to do with the following pstricks install direction, (for example, what is TEXINPUTS environment variable?) ;
<p.s. I am using LaTeX>

3.1 - (La)TeX files

a - You have to move all the files from the "generic" subdirectory
to a directory part of your TEXINPUTS environment variable, or to add it
in your TEXINPUTS list of paths.

b - If you are a LaTeX user (and not only a plain TeX one), you have
to do the same thing for the "latex" subdirectory, which define LaTeX
wrappers for all the PSTricks files.

3.2 - PostScript header files
The file pstricks.con is the current platform specific config file.
For other platforms read the README from the config directory


Thank you very much in advance,

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

Re: egameps | Arcs between Branches not working

Post by localghost »

Package installation is usually done by the package manager of your TeX distribution. For details please refer to the corresponding manual.
yoosun
Posts: 3
Joined: Wed Jan 23, 2013 11:00 pm

Re: egameps | Arcs between Branches not working

Post by yoosun »

Hi,

As you mentioned, I have installed the "pstriks-add" package through the MiKTeX package manager. But, when I compile the tex file you've uploaded here, it is still not working but showing me the following pop-up message:
-----------------------------------------------------------
The required file:
tex\latex\pstricks-add\pstricks-add.cfg
is missing. It is a part of the following package:
pstricks-add.
-----------------------------------------------------------

Where I could find the pstricks-add.cfg???

Thank you very much again,

yoosun
Post Reply