Willi Egger wrote:
Hi Adam,

hm, the same here also with alpha-context of february 2005.
May be, that one should use a single \comment only. Still there is a problem then with \comment[t]{text}, which causes the text in the second cell to move down.


I think this is somethin for Hans ...

Kind regards

Willi

Took me a while -) patch this in m-chart.tex:

\def\doFLOWcommentD[#1]#2%
  {\bgroup
   \let\FLOW  \middlebox
   \let\FLOWb \bottombox
   \let\FLOWbl\bottomleftbox
   \let\FLOWbr\bottomrightbox
   \let\FLOWt \topbox
   \let\FLOWtl\topleftbox
   \let\FLOWtr\toprightbox
   \let\FLOWl \leftbox
   \let\FLOWlt\lefttopbox
   \let\FLOWlb\leftbottombox
   \let\FLOWr \rightbox
   \let\FLOWrt\righttopbox
   \let\FLOWrb\rightbottombox
   \let\FLOWc \middlebox
%\ifdefined{FLOW#1}%
   \ifcase0\getvalue{\@@MPx\FLOWcomment}\getvalue{\@@MPy\FLOWcomment}\relax
   \else
     \ifdim\getvalue{\@@MPx\FLOWcomment}\s!bp<\areaMPllx\relax\else
       \ifdim\getvalue{\@@MPx\FLOWcomment}\s!bp>\areaMPurx\relax\else
         \ifdim\getvalue{\@@MPy\FLOWcomment}\s!bp<\areaMPlly\relax\else
           \ifdim\getvalue{\@@MPy\FLOWcomment}\s!bp>\areaMPury\relax\else
             \dimen0=\getvalue{\@@MPx\FLOWcomment}\s!bp
             \advance\dimen0 -\@@FLOW@@offset
             \advance\dimen0 -\clipMPllx
             \dimen2=\clipMPury
             \advance\dimen2 -\@@FLOW@@offset
             \advance\dimen2 -\getvalue{\@@MPy\FLOWcomment}\s!bp
             \setbox0=\hbox{\strut#2}%
             \boxoffset=.5\bodyfontsize
             \setbox0=\hbox
               {\hskip\dimen0\lower\dimen2\getvalue{FLOW#1}{\box0}}%
             \wd0=\zeropoint\ht0=\zeropoint\dp0=\zeropoint
             \box0
             \nointerlineskip % really needed
           \fi
         \fi
       \fi
     \fi
   \fi
%\fi
   \egroup
   \ignorespaces}

(\nointerlinekip added, this was introduced when we changed something regarding \offinterlineskip some time ago)



Adam Duck wrote:

Hello,


I'm having problems with the following chart (well, any chart, that is):

--- ConTeXt code ---

\setupoutput[pdftex]
\usemodule[chart]
\starttext

\setupFLOWcharts[offset=50pt]

\startFLOWchart[test]

  \startFLOWcell
    \name{one}
    \location{1,1}
    \text{one}
    \connect[bt]{two}
    \comment[r]{why}
    \comment[l]{is}
    \comment[l]{this}
  \stopFLOWcell
      \startFLOWcell
    \name{two}
    \location{1,2}
    \text{two}
  \stopFLOWcell
  \stopFLOWchart

\midaligned{\FLOWchart[test]}

\stoptext

--- end ---

It seems that every \comment-command pushes all text further down;
i.e. "two" in the secons cell but also the other comments.

version:
 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005

               texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
               texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
                   tex : pdfeTeX, 3.14159-1.10b-2.1 (Web2C 7.4.5)
               context : ver: 2005.01.31
               cont-en : ver: 2005.01.31  fmt: 2005.3.8  mes: english

        total run time : 1 seconds

and:

%D \module
%D   [       file=m-chart,
%D        version=1998.10.10,

bye, Adam.
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context





--

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to