ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <context@boede.nl>
To: NTG-Context ConTeXt users <ntg-context@ntg.nl>
Subject: FLOWchart module broken
Date: Mon, 26 Dec 2011 14:00:11 +0100	[thread overview]
Message-ID: <179712EA-719E-4CE9-8700-16A3F31F7618@boede.nl> (raw)

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

Hi,

[-- Attachment #2: test-flowchart.tex --]
[-- Type: application/octet-stream, Size: 1863 bytes --]

% Context file
% Filename: test-flowchart.tex
% 
% 26-12-2011
% Copyright (c) 2011 BOEDE. All rights reserved.
%
% \nopdfcompression
% \enabletrackers[context.trace]
% \enabletrackers[system.jobfiles]


\setuppagenumbering[location=bottom]
\setuplayout
	[topspace=2.5cm,
	backspace=1.5cm,
	header=0pt,
	footer=1.5\bodyfontsize,
	height=middle,
	width=middle]
	
\mainlanguage[de]

\usemodule[chart]

\setupFLOWcharts
   [nx= 3,
    ny= 3,
    dx=\bodyfontsize,
    dy=\bodyfontsize,
    width=7\bodyfontsize,
    height=4\bodyfontsize]


\startFLOWchart[Aushebung]
   \startFLOWcell
    \name{Aush}
    \location{1,1}
    \text{Aushebung}
    \shape{action}
    \connection[rl]{Angenommen1}
   \stopFLOWcell

   \startFLOWcell
     \name{Angenommen1}
     \location{2,1}
     \text{Angenommen?}
     \shape{45} %decision
     \connection[tr]{AndRS}
     \connection[bt]{HfsRS}
     \connection[rl]{Kurs}
     \comment[tr]{Nein}
     \comment[rt]{Bed.}
     \comment[br]{Ja}
  \stopFLOWcell

    \startFLOWcell
    \name{Kurs}
    \location{3,1}
    \text{14 Tage Kurs}
    \shape{action}
    \connection[bt]{Angenommen2}
   \stopFLOWcell

   \startFLOWcell
    \name{Angenommen2}
    \location{3,2}
    \text{Angenommen?}
    \shape{45} %decision
    \connection[lt]{HfsRS}
    \connection[rr]{AndRS}
    \comment[lt]{Ja}
    \comment[rt]{Nein}
   \stopFLOWcell

   \startFLOWcell
    \name{HfsRS}
    \location{2,3}
    \text{Hfs RS}
    \shape{action}
   \stopFLOWcell

   \startFLOWcell
    \name{AndRS}
    \location{3,3}
    \text{Andere RS}
    \shape{action}
   \stopFLOWcell
\stopFLOWchart

\starttext

\FLOWchart[Aushebung]

\placefigure
    [here,middle]
    [flow:aushebung]
    {Aushebung des Militärhufschmiedes}
    {\FLOWchart[Aushebung]}

\stoptext

[-- Attachment #3: Type: text/plain, Size: 1096 bytes --]



The FLOW-chart module is broken at least since the version 22-12-2011 and still is in the version of 23-12-2011.

Please refer to the attached chart.

The MKIV run stops with the following error:

<argument> \doframed 
                    [flowcell:\getvariable {flowcell:text}{align}]{\getvari...
\firstoftwoarguments #1#2->#1

\@@su:flowcell:text:place:indeed ...:text}{text}}}
                                                 \endgroup 
\@@su:flowcell:text:place ...ll:text:place:indeed}
                                                 \fi \fi \endgroup 
\next1 #1,->\dosetups {#1}
                         \do_process_comma_item 
\do_process_comma_list ...m \gobbleoneargument #1,
                                                 ]\relax \global \advance \...
...
l.91

When running MKII on the attached file then I get a flow chart, where the cells are placed correctly. However the comments attached to the decision-cells are misplaced and the two  \comment[tr]{Nein} and  \comment[rt]{Bed.} are typeset on top of each other (see pdf).


Kind regards

Willi

[-- Attachment #4: test-flowchart.pdf --]
[-- Type: application/pdf, Size: 26956 bytes --]

[-- Attachment #5: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2011-12-26 13:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-26 13:00 Willi Egger [this message]
2011-12-27 11:20 ` Wolfgang Schuster
2011-12-27 19:48   ` Willi Egger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179712EA-719E-4CE9-8700-16A3F31F7618@boede.nl \
    --to=context@boede.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).