From: h h extern <pragma@wxs.nl>
Subject: Re: FLOWcharts
Date: Wed, 16 Mar 2005 10:20:02 +0100 [thread overview]
Message-ID: <4237FA42.6060008@wxs.nl> (raw)
In-Reply-To: <4234B72D.5060002@boede.nl>
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
-----------------------------------------------------------------
next prev parent reply other threads:[~2005-03-16 9:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-11 15:56 FLOWcharts Adam Duck
2005-03-13 21:57 ` FLOWcharts Willi Egger
2005-03-16 9:20 ` h h extern [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-09-21 9:53 FLOWcharts Adam Duck
2006-09-21 18:23 ` FLOWcharts Willi Egger
2004-11-17 14:18 FLOWcharts Nikolai Weibull
1999-09-17 14:11 Flowcharts Taco Hoekwater
1999-09-17 12:39 ` Flowcharts Hans Hagen
1999-09-17 14:59 ` Flowcharts Taco Hoekwater
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=4237FA42.6060008@wxs.nl \
--to=pragma@wxs.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).