On 2/8/2026 3:00 PM, Henning Hraban Ramm wrote:
Am 08.02.26 um 13:24 schrieb Hans Hagen via ntg-context:
Is there a different mechanism that I can use to avoid this?

There always is ... if only to keep Hraban in keeping up and updating mode,

You’re sabotaging the deadline of my book! (I can do that on my own, you know… One week left and still >250 pages to go, <whine>)

But since you attached only a .tuc file, I can’t update anything. ;-P

ok, no mercy ... tex attached

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
\definebar
  [mybar]
  [color=red,
   continue=yes,
   method=3,
   foregroundcolor=white,
   mp=mybar:round,
  %height=.95sh,
  %depth=.95sd,
   order=reverse]

% \startuseMPgraphic{mybar:round}
%     draw
%         (
%             (0,         0) --
%             (RuleWidth, 0) --
%             (RuleWidth, RuleHeight+RuleDepth) --
%             (0,         RuleHeight+RuleDepth) --
%             cycle
%         )
%         cornered  .5ExHeight
%         withcolor RuleColor
% ;
% \stopuseMPgraphic

\startuseMPgraphic{mybar:round}
    fill
        (
            (0,                      .1ExHeight) --
            (RuleWidth,              .1ExHeight) --
            (RuleWidth, LineHeight - .1ExHeight) --
            (0,         LineHeight - .1ExHeight) --
            cycle
        ) shifted (0,-StrutDepth+RuleDepth)
        cornered  .5ExHeight
        withcolor RuleColor
    ;
\stopuseMPgraphic

\starttext

    \samplefile{tufte}
    \mybar{\samplefile{tufte}\removeunwantedspaces}
    \samplefile{tufte}
    \mybar{some text that goes over the line bla bla bla bla bla bla bla bla 
bla bla bla}
    \samplefile{tufte}

    \startluacode
        for i=1,100 do
            luatex.wrapup(function() print("!!!!!!!! " .. 
i,environment.outputfilename) end)
        end
    \stopluacode

\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
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