[pstricks] 2 pictures (psmatrix) side by side

Richard Sudarmono iye at gmx.de
Mon Nov 26 14:38:17 CET 2001


Hallo!
I would be very glad, if somebody can give me an example which use the
diagram_flowchart.ps (-.tex) for my problem, because I would like to
use it for my flowchart.
(Thus the same diagram_flowchart side by side)

Thanks in advance.

Richard

This is a copy of the diagram_flowchart.tex:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Diagrams-FlowChart.tex --- Example of a flow chart diagram
%%
%% Author          : Denis GIROU (CNRS/IDRIS - France) <Denis.Girou at idris.fr>
%% Created the     : 1994
%% Last mod. by    : Denis GIROU (CNRS/IDRIS - France) <Denis.Girou at idris.fr>
%% Last mod. the   : Wed Apr  2 20:39:07 1997
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass{article}

\usepackage{pstcol} % To use the standard "color" package with PSTricks
\usepackage{pst-node}

\definecolor{Pink}{rgb}{1.,0.75,0.8}

\pagestyle{empty}

\begin{document}

\begin{center}
  Flow diagram with the psmatrix environment\\[5mm]

  \psframebox[linearc=5mm,cornersize=absolute]{%
    \begin{psmatrix}[rowsep=0.5cm,colsep=0.8cm]
      \psovalbox[fillstyle=solid,fillcolor=yellow]{Begin} \\
      \psframebox{Initialisations} \\
      \psdiabox[fillstyle=solid,fillcolor=Pink]{Special} &
         \psframebox{Call to SP1} & \psframebox{Call to SP2} \\
      \psframebox{Action 1} \\
      \psframebox{Action 2} \\
      \psovalbox[fillstyle=solid,fillcolor=yellow]{End}
      % Links
      \ncline{1,1}{2,1}
      \ncline{2,1}{3,1}
      \ncline{3,1}{4,1}<{\textcolor{red}{No}}
      \ncline{4,1}{5,1}
      \ncline{5,1}{6,1}
      \ncline{->}{3,1}{3,2}^{\textcolor{red}{Yes}}
      \ncline{->}{3,2}{3,3}
      \ncbar[angleA=-90,armB=0,nodesepB=2.5mm]{->}{3,3}{4,1}
    \end{psmatrix}}
\end{center}

\end{document}

--------------
On Monday, November 26, 2001 2:28:56 PM Richard Sudarmono wrote:

RS> Hallo!
RS> I would like to make 2 psmatrix pictures side by side.
RS> Can anybody tell me, how can I make it or where to find the answer?
RS> Except with minipage environtment, is there another method?

RS> Thanks in advance.

RS> Newbie in pstricks world,
RS> Richard

RS> Here is something what I want to do -but with psmatrix-
RS> (this one is a part copy of a msg (2nd document) dated 14.4.1999 from Denis
RS> Girou):
RS>  .
RS>  .
RS>  .
RS> \begin{pspicture}(5,5)\psgrid
RS>   \pnode(1,4){Pin1}
RS>   \pnode(4,4){Pin2}
RS>   \ncLine{Pin1}{Pin2}
RS>   \mput{\Large $\Rightarrow$}
RS> \end{pspicture}
RS> \hfill
RS> %% ^^^^ doesn't work with psmatrix. :(
RS> \begin{pspicture}(5,5)\psgrid
RS>   \pnode(1,4){Pin1}
RS>   \pnode(4,4){Pin2}
RS>   \ncLine{Pin1}{Pin2}
RS>   \ncput{\Large $\Rightarrow$}
RS> \end{pspicture}

RS> \end{document}

RS> _______________________________________________
RS> pstricks mailing list
RS> pstricks at tug.org
RS> http://tug.org/mailman/listinfo/pstricks




More information about the PSTricks mailing list