Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

First I was trying to quickly put together a file/package that provides macros for building Nassi-Shneidermann diagrams, but after a while it gave me a head ache – literally.

So I decided to seek out a package on the internet, especially when I figured out that they are also called this, with no luck. I know of an existing package called stuki.sty, but that is for LaTeX, and I couldn't find the stuki.tex file that it was based on, as it mentioned by the author. Neither of these available as a package for download.

Is there any kind of package that provides similar?

Also if there is, is there a way to make the conditions one line with the true/false line, the separating lines not going all the way in the middle, like this, and not like this?

share|improve this question
    
The first image is from this site. Just as an interesting fact: At the authors country, structograms is called in short, written as stuki (pronounced with an sh, uh, ee sounds) because it is difficult for them to pronounce the tr letters only in this word, especially when they hear, and/or say the shortened name. –  Adam L. S. Jan 25 '11 at 21:03
    

1 Answer 1

up vote 2 down vote accepted

you can use \input pstricks.tex it is plain TeX compatible. Some flowcharts can be seen here: not really as a tabular like nassi-shneiderman, but it should be easy to realize. Here is a start for your example:

\input pstricks
\input pst-node

\pspicture(0,1)(10,-7)
\rput(5,0){\rnode{A}{\psframebox[framearc=0.3]{Your reall long text}}}
\rput(5,-1){\rnode{B}{\psframe(-5,0)(5,-1)\rput(0,-0.5){And the next one}}}
\ncline[arrowscale=2,arrows=->,angleA=-90,angleB=90]{A}{B}
\psframe(0,-1)(10,-7)      \rput(6,-2.5){foo}
\psline(1,-4)(1,-2)(10,-2) \rput(6,-3.5){bar}
\psline(1,-3)(10,-3)       \rput(6,-4.5){foo bar}
\psline(0,-4)(10,-4)
\psline(0,-5)(10,-5)
\endpspicture
\bye
share|improve this answer
    
Yes, I found that one, but I'm specifically interested in NSD. Thanks anyway. (I wait for some time before I mark it as a solution.) –  Adam L. S. Jan 25 '11 at 21:51
    
@Adam: I put some code into the answer –  Herbert Jan 25 '11 at 22:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.