Re: About flowcharts

Mark Summerfield <[email protected]>
Newsgroups gmane.comp.type-setting.lout
Organization Qtrac Ltd.
Message-ID <20110326062731.5ae185b8@dino>
Hi Dominique,

On Fri, 25 Mar 2011 22:52:10 +0100
Dominique Crétel <[email protected]> wrote:
> Hi Mark,
> 
> Thanks for your help.
> But I am really not a Lout expert.
>  
> Here is the lout document to start with.
> 
> @SysInclude { diag }
> @Include { flowchart.lout }
> @SysInclude { doc }
> @Doc @Text @Begin
> # here come the flowchart description ?
> @End @Text
> 
> Is it right?
> 
> Can you help me to use your macro file  ?
> Or give me an example ?
> 
> Dominique

The above seems fine to me. Here's a little more:

@SysInclude{diag}
@Include{flowchart.lout}
@SysInclude{doc}
@Doc
@Text @Begin
@CD @Heading{Flowchart}

@CD @Diag
    font{Helvetica Base 10p}
{
    @Centre{A:: @FileBox hsize{8f}{top}}
    //1c
    B:: @SlantBox hsize{8f}{left} |1c C:: @SlantBox hsize{8f}{right}
//
@VHVArrow from{A@S} to{B@N}
@VHVArrow from{A@S} to{C@N}
}

@End @Text


If it gets more complicated the usual approach is to put a table (@Tbl)
inside the diagram and put each item in a cell.

-- 
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
    C++, Python, Qt, PyQt - training and consultancy
        "Programming in Go" - ISBN 0321774639
            http://www.qtrac.eu/gobook.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.