[pstricks] Finite-state Diagrams

Francisco A. S. Grossi fgrossi at brfree.com.br
Sat Oct 5 17:54:13 CEST 2002



Thank you very much, indeed, Denis. This is exactly what I wanted!
I do all my stuff with pstricks and just did not want to use another package
for automata. These loops was the only piece that was missing for me to get
all I wanted. Thanks again for such a quick an substantial help!
Francisco 


-------Original Message-------

From: Denis Girou
Date: Saturday, 5 de October de 2002 4:36:05 
To: PSTricks mailing list
Subject: Re: [pstricks] Finite-state Diagrams

>>>>> "Francisco.Grossi" == Francisco A S Grossi <fgrossi at brfree.com.br>
writes:

Francisco.Grossi> Thank you, Denis.
Francisco.Grossi> Yes, I know how to use different radii but they are
circles or arcs of
Francisco.Grossi> circle. I was thinking of something nicer, (a longer oval
going from 70
Francisco.Grossi> degrees to 100 degrees, for example), such as the ones on
pictures 3-3-6 or
Francisco.Grossi> 5-5-5 on The Latex Graphics Companion book (Metapost an
Xy-Pic).

Thanks for clarification. You will probably not have exactly the same
visual effect, but you can got rather closed one playing with the various
parameters (take care that some are sensible and minor variations can give
strange results...). Look for instance at the third example, using \ncdiag,
which is rather closed to the 3-3-6 MetaPost example in LGC.

\documentclass[a4paper]{article}

\usepackage{pst-node}

\pagestyle{empty}

\begin{document}

\begin{psmatrix}
A & B & C & D
\end{psmatrix}

\psset{arrows=->,nodesep=0.05}

\ncangles[armA=0.8,armB=0,angleA=70,angleB=110,linearc=0.22]{1,1}{1,1}
\ncdiag[arm=0.9,angleA=70,angleB=110,linearc=0.3]{1,2}{1,2}
\ncdiag[arm=0.8,angleA=50,angleB=130,linearc=0.25]{1,3}{1,3}
\ncdiag[arm=0.8,angleA=50,angleB=130,linearc=0.28]{1,4}{1,4}

\end{document}


D.G.
_______________________________________________
pstricks mailing list
pstricks at tug.org
http://tug.org/mailman/listinfo/pstricks

.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20021005/c0006dd7/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 494 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20021005/c0006dd7/attachment.gif 


More information about the PSTricks mailing list