ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Mappings
@ 2001-01-16  6:48 David Arnold
  2001-01-16  7:05 ` Mappings Dan Seracu
  2001-01-16 19:06 ` Mappings Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: David Arnold @ 2001-01-16  6:48 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]

All,

Remember when I asked about:

    f
1 ----> 2

etc. Thanks to all who answered. Here's my solution. Pretty nice. Output
attached.

\usemodule[chart]

\setupcolors[state=start]

\starttext

\setupFLOWfocus
 [framecolor=black]

\setupFLOWcharts
 [%option=test,
  nx=3,ny=4,
  dx=4mm,dy=2mm,
  offset=0mm,
  width=6mm,
  height=6mm,
  maxwidth=\textwidth,
  focus=l1]

\setupFLOWlines
 [corner=rectangular]

\startFLOWchart[f1]
 \startFLOWcell
  \name{fname}
  \location{2,1}
  \shape{node}
  \text{$f$}
 \stopFLOWcell
 \startFLOWcell
  \name{l1}
  \location{1,2}
  \shape{action}
  \text{1}
  \connection[rl]{r1}
  \connection[-rl]{r2}
 \stopFLOWcell
 \startFLOWcell
  \name{r1}
  \location{3,2}
  \shape{action}
  \text{2}
 \stopFLOWcell
 \startFLOWcell
  \name{r2}
  \location{3,3}
  \shape{action}
  \text{3}
 \stopFLOWcell
 \startFLOWcell
  \name{l2}
  \location{1,3}
  \shape{action}
  \text{2}
  \connection[-rl]{r3}
 \stopFLOWcell
 \startFLOWcell
  \name{r3}
  \location{3,4}
  \shape{action}
  \text{4}
 \stopFLOWcell

\stopFLOWchart

\placefigure
 [here][fig1]
 {The domain object 1 gets sent to more than one range object.}
 {\FLOWchart[f1]}

\stoptext

[-- Attachment #2: junk.pdf --]
[-- Type: application/pdf, Size: 13226 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Mappings
  2001-01-16  6:48 Mappings David Arnold
@ 2001-01-16  7:05 ` Dan Seracu
  2001-01-16 18:55   ` Docs for flowchart module H. Ramm
  2001-01-16 19:11   ` Mappings Hans Hagen
  2001-01-16 19:06 ` Mappings Hans Hagen
  1 sibling, 2 replies; 5+ messages in thread
From: Dan Seracu @ 2001-01-16  7:05 UTC (permalink / raw)


Hi!

I did not know there is such a module! I had to typeset a user manual with a
lot of diagrams and then I used metapost to draw all the figures. It seems
to be easier with this.

But where can I find documentation on the chart modules?

Dan Seracu

>>
> \usemodule[chart]
>
> \setupcolors[state=start]
>
> \starttext
>
> \setupFLOWfocus
>  [framecolor=black]
>
> \setupFLOWcharts
>  [%option=test,
>   nx=3,ny=4,
>   dx=4mm,dy=2mm,
>   offset=0mm,
>   width=6mm,
>   height=6mm,
>   maxwidth=\textwidth,
>   focus=l1]
>
> \setupFLOWlines
>  [corner=rectangular]
>
> \startFLOWchart[f1]
>  \startFLOWcell
>   \name{fname}
>   \location{2,1}
>   \shape{node}
>   \text{$f$}
>  \stopFLOWcell
>  \startFLOWcell
>   \name{l1}
>   \location{1,2}
>   \shape{action}
>   \text{1}
>   \connection[rl]{r1}
>   \connection[-rl]{r2}
>  \stopFLOWcell
>  \startFLOWcell
>   \name{r1}
>   \location{3,2}
>   \shape{action}
>   \text{2}
>  \stopFLOWcell
>  \startFLOWcell
>   \name{r2}
>   \location{3,3}
>   \shape{action}
>   \text{3}
>  \stopFLOWcell
>  \startFLOWcell
>   \name{l2}
>   \location{1,3}
>   \shape{action}
>   \text{2}
>   \connection[-rl]{r3}
>  \stopFLOWcell
>  \startFLOWcell
>   \name{r3}
>   \location{3,4}
>   \shape{action}
>   \text{4}
>  \stopFLOWcell
>
> \stopFLOWchart
>
> \placefigure
>  [here][fig1]
>  {The domain object 1 gets sent to more than one range object.}
>  {\FLOWchart[f1]}
>
> \stoptext
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Docs for flowchart module
  2001-01-16  7:05 ` Mappings Dan Seracu
@ 2001-01-16 18:55   ` H. Ramm
  2001-01-16 19:11   ` Mappings Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: H. Ramm @ 2001-01-16 18:55 UTC (permalink / raw)


Dan Seracu wrote:
> I did not know there is such a module! I had to typeset a user manual with a
> lot of diagrams and then I used metapost to draw all the figures. It seems
> to be easier with this.
> 
> But where can I find documentation on the chart modules?

There's a nice "bargain counter" at the Pragma site...

http://216.109.141.42/general/uptodate/
up-003-p.pdf or up-003-s.pdf (print or screen version)

For an overview look at
http://216.109.141.42/collect.htm

Grüßlis vom Hraban!
---
http://www.planet-interkom.de/fiee.visuelle/formelsammlung.html


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Mappings
  2001-01-16  6:48 Mappings David Arnold
  2001-01-16  7:05 ` Mappings Dan Seracu
@ 2001-01-16 19:06 ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2001-01-16 19:06 UTC (permalink / raw)
  Cc: ntg-context

At 10:48 PM 1/15/01 -0800, David Arnold wrote:

>    f
>1 ----> 2
>
>etc. Thanks to all who answered. Here's my solution. Pretty nice. Output
>attached.
>
>\usemodule[chart]
> ....

if you look closely, you will notice that the numbers are not centered,
which is due to too small frames [or big offsets], so i suggest that you
increase the small frame a bit.  

Sorry for being too critic, 

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Mappings
  2001-01-16  7:05 ` Mappings Dan Seracu
  2001-01-16 18:55   ` Docs for flowchart module H. Ramm
@ 2001-01-16 19:11   ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2001-01-16 19:11 UTC (permalink / raw)
  Cc: NTG ConTeXt

At 09:05 AM 1/16/01 +0200, Dan Seracu wrote:
>Hi!
>
>I did not know there is such a module! I had to typeset a user manual with a
>lot of diagrams and then I used metapost to draw all the figures. It seems
>to be easier with this.
>
>But where can I find documentation on the chart modules?

(1) at our site, go to up to date 
(2) articles in the maps 
(3) occasional examples in manuals

It really makes sense to spend some time browsing the pragma site -) 

In case you wonder why this module was needed, we wanted hyperlinks etc in
charts. 

There are some non documented extensions, like more shapes [dedicated to
willy], some more text placement options [for ton] as well as some "split
this chart into subcharts with open ends" things [for myself] but it may
take some time for this to reach the documentation.  

Then, are people aware of the module that handles chemical structure
formulas? 

Hans 
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-01-16 19:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-16  6:48 Mappings David Arnold
2001-01-16  7:05 ` Mappings Dan Seracu
2001-01-16 18:55   ` Docs for flowchart module H. Ramm
2001-01-16 19:11   ` Mappings Hans Hagen
2001-01-16 19:06 ` Mappings Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).