[pstricks] Flowchart
Runar Gjelsvik
Runar.Gjelsvik at cern.ch
Tue Apr 5 08:52:02 CEST 2005
Sorry, wrong subject
Hi, I'm trying to make some flow charts in Latex using the psmatrix, but
I've encountered a small issue. Is it possible to make a line-break in a
psframebox? Otherwise the boxes will be really wide and look rather
strange.
The sample code is at the bottom. The \flow is a length.
My intention is for instance in the 2 node to have
Reset AnyBus
Module wait 1ms
Cheers,
Runar
\begin{figure}[!ht]
\begin{minipage}{1.0\textwidth}
\centering
\small
\psmatrix[rowsep=0.5,colsep=0.0,mcol=c]
\psovalbox[fillstyle=solid,fillcolor=gray]{RESET} \\
\psframebox{\flow{Reset AnyBus module wait 1 ms}} \\
\psframebox{\flow{Read \textit{AnyIndReg}}} \\
\psdiabox{AnyBus Interrupt?}
\\
\psframebox{\flow{Read \textit{AnyIndReg}}} \\
\psframebox{\flow{Read \textit{AppIndReg}}} \\
\psframebox{\flow{Force 'Mout' to 'Min'}}
\\
\psframebox{\flow{Write \textit{AppIndReg}}} \\
\psovalbox[fillstyle=solid,fillcolor=gray]{RESET End} \\
\endpsmatrix
\psset{angleA=-90,angleB=180,nodesep=0.1,arrows=->}
\ncangle[angleA=90]{4,1}{3,1}
\ncline{1,1}{2,1}
\ncline{2,1}{3,1}
\ncline{3,1}{4,1}
\ncline{4,1}{5,1}
\ncline{5,1}{6,1}
\ncline{6,1}{7,1}
\ncline{7,1}{8,1}
\ncline{8,1}{9,1}
\end{minipage}
\end{figure}
More information about the PSTricks
mailing list