ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* FLOWchart module broken
@ 2011-12-26 13:00 Willi Egger
  2011-12-27 11:20 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger @ 2011-12-26 13:00 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

[-- 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
___________________________________________________________________________________

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

* Re: FLOWchart module broken
  2011-12-26 13:00 FLOWchart module broken Willi Egger
@ 2011-12-27 11:20 ` Wolfgang Schuster
  2011-12-27 19:48   ` Willi Egger
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-12-27 11:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 26.12.2011 um 14:00 schrieb Willi Egger:

> Hi,<test-flowchart.tex>
> 
> The FLOW-chart module is broken at least since the version 22-12-2011 and still is in the version of 23-12-2011.

m-chart.mkvi

\startsetups flowcell:text:place:indeed
    \begingroup
        \directsetup{flowcell:text:user}
        \doifelsenothing {\getvariable{flowcell:text}{figure}} {
%           \doframed
%               [flowcell:\getvariable{flowcell:text}{align}]
            \expandcheckedcsname{flowcell:}{\getvariable{flowcell:text}{align}}\empty
                {\getvariable{flowcell:text}{text}}
            } {
%               \doframed
%                   [flowcell:\getvariable{flowcell:text}{align}]
                \expandcheckedcsname{flowcell:}{\getvariable{flowcell:text}{align}}\empty
                    [background=flowcell:figure]
                    {\getvariable{flowcell:text}{text}}
            }
    \endgroup
\stopsetups

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: FLOWchart module broken
  2011-12-27 11:20 ` Wolfgang Schuster
@ 2011-12-27 19:48   ` Willi Egger
  0 siblings, 0 replies; 3+ messages in thread
From: Willi Egger @ 2011-12-27 19:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

Hi Wolfgang,

thank you for the patch. - It works again without error.

Still there is a small point to be made and corrected.

When in the attached example the grid is set to 3 x 3 (the actual size of the chart) the right most comment is clipped to the first letter, Only if the grid is set to 3x4 then the comment is completely visible.
Furthermore there is a clipping problem with the topmost comment. This text is clipped along the arrow-line and this can not be corrected by setting the grid to 4x4.

Kind regards 
Willi


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

[-- Attachment #3: test-flowchart.tex --]
[-- Type: application/octet-stream, Size: 1874 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= 4,
    ny= 4,
    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 #4: Type: text/plain, Size: 1584 bytes --]


On 27 Dec 2011, at 12:20, Wolfgang Schuster wrote:

> 
> Am 26.12.2011 um 14:00 schrieb Willi Egger:
> 
>> Hi,<test-flowchart.tex>
>> 
>> The FLOW-chart module is broken at least since the version 22-12-2011 and still is in the version of 23-12-2011.
> 
> m-chart.mkvi
> 
> \startsetups flowcell:text:place:indeed
>    \begingroup
>        \directsetup{flowcell:text:user}
>        \doifelsenothing {\getvariable{flowcell:text}{figure}} {
> %           \doframed
> %               [flowcell:\getvariable{flowcell:text}{align}]
>            \expandcheckedcsname{flowcell:}{\getvariable{flowcell:text}{align}}\empty
>                {\getvariable{flowcell:text}{text}}
>            } {
> %               \doframed
> %                   [flowcell:\getvariable{flowcell:text}{align}]
>                \expandcheckedcsname{flowcell:}{\getvariable{flowcell:text}{align}}\empty
>                    [background=flowcell:figure]
>                    {\getvariable{flowcell:text}{text}}
>            }
>    \endgroup
> \stopsetups
> 
> Wolfgang
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- 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
___________________________________________________________________________________

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

end of thread, other threads:[~2011-12-27 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-26 13:00 FLOWchart module broken Willi Egger
2011-12-27 11:20 ` Wolfgang Schuster
2011-12-27 19:48   ` Willi Egger

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).