From: Bernd Donner via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Bernd Donner <bleau1975@googlemail.com>
Subject: [NTG-context] Artifact in flow cell connection
Date: Fri, 11 Oct 2024 22:47:29 +0200 [thread overview]
Message-ID: <CAO4UkVZZcxF49vCbnegmJN4UWjVvYGKozSS_1siLpLhQNwMWYw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1100 bytes --]
Hi,
I have a broken flow cell connection in this minimal example. The broken
flow cell is only triggered when drawn within a subsection with an overlay.
The logic to create the underlined subsection is by the way copied from the
metafun manual source. I do not have the slightest clue what is going wrong
in this example. Thanks for ideas.
Best, Bernd
\usemodule[chart]
\startuniqueMPgraphic{SectionUnderline}
path p;
p:= unitsquare xscaled OverlayWidth yscaled OverlayHeight;
draw llcorner p -- lrcorner p;
setbounds currentpicture to p;
\stopuniqueMPgraphic
\defineoverlay[SectionUnderline][\uniqueMPgraphic{SectionUnderline}]
\starttexdefinition unexpanded ChapterCommand #1#2
\framed [background=SectionUnderline] {#2}
\stoptexdefinition
\setuphead
[subsection]
[command=\ChapterCommand]
\starttext
\subsection[title=Introduction]
\startFLOWchart[toolchain]
\startFLOWcell
\location{1,1}
\connection [bt] {compiler}
\stopFLOWcell
\startFLOWcell
\name {compiler}
\location{1,2}
\shape{product}
\stopFLOWcell
\stopFLOWchart
\FLOWchart[toolchain]
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 1330 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2024-10-11 20:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-11 20:47 Bernd Donner via ntg-context [this message]
2024-10-15 6:47 ` [NTG-context] " Bernd Donner via ntg-context
2024-10-16 17:48 ` Bruce Horrocks
2024-10-16 18:47 ` Hans Hagen
2024-10-16 20:28 ` Hans Hagen via ntg-context
2024-10-17 14:39 ` Bernd Donner via ntg-context
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=CAO4UkVZZcxF49vCbnegmJN4UWjVvYGKozSS_1siLpLhQNwMWYw@mail.gmail.com \
--to=ntg-context@ntg.nl \
--cc=bleau1975@googlemail.com \
/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).