[pstricks] Problems with boxes creating a flowchart

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Dec 22 16:21:09 CET 2009


Am 22.12.2009 13:50, schrieb Holger Meuel:

you shpould subscribe toi the list, if you want to be sure
to get all answers.

> I try to create a flowchart using DIN66001 (
> http://www.fh-jena.de/~kleine/history/software/DIN66001-1966.pdf) templates
> but I have two problems:
> 
> First I was not able to create a box like:
> 
> _______
> ||          ||
> ||______||
> 
> 
> What I mean is the symbol for "subprogram" - a box with just two framelines
> on the left and on the right.
> 
> I took a \psdblframebox for first tries but it has to be the box from the
> standard in the final version.
> 
> My second problem is the "read" - Box. (Second from above.) -> I was able to
> create a parallelogram using
> \pspolygon[fillcolor=kaminrot!30,fillstyle=solid](1,-0.5)(1.5,0.5)(3.0,0.5)(2.5,-0.5),
> but the arrows ends up and start IN the box and not at the borderline like I
> would expect.
> 
> For my surprise nowhere in google anybody seems to have problems with that
> or posted a solution.


\listfiles
\documentclass{article}
\usepackage{pst-node,array}
\def\psDblfbox#1{{%
  \psframebox[framesep=0pt]{%
  \tabular{!{\kern\tabcolsep\vrule}c!{\vrule\kern\tabcolsep}}
    #1
  \endtabular}}}

\begin{document}

\psmatrix
foo & \psDblfbox{some\\text} & bar\\
\psDblfbox{some\\more\\text} & baz
\endpsmatrix
\ncline{->}{1,1}{1,2}\ncangles[angleA=-90,angleB=90]{->}{1,2}{2,1}

\end{document}


Herbert


More information about the PSTricks mailing list