Hello,

Since I've not found the answer yet, I repost the problem:


I need some text with background, that can break across lines. But the
background must not touch the background of the next line!

\setupcolors[state=start]
\starttext
inframed does not allow linebreaks:

\def\Bla{\inframed[background=color, backgroundcolor=gray, frame=off,
    offset=overlay, backgroundoffset=2pt, location=keep]{%
    FF FF XX XX XX XX XX XX SS CS CS}}
\dorecurse{20}{bla \Bla\ bla}

And textbackground does not allow to seperate the backgrounds of 2 lines:

\definetextbackground[TG][backgroundcolor=gray, frame=off,
  offset=overlay, backgroundoffset=2pt]
\def\Bla{\starttextbackground[TG]FF FF XX XX XX XX XX XX SS CS CS%
  \stoptextbackground}
\dorecurse{20}{bla \Bla\ bla}
\stoptext

Could anybody help please?

TIA for any hints!
Cheer, Peter

-- 
http://pmrb.free.fr/contact/

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to