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

Reply via email to