ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* backgrounds: help needed
@ 2008-11-04 11:16 Peter Münster
  2009-01-20 22:51 ` Alan BRASLAU
  2009-01-25 18:23 ` Alan BRASLAU
  0 siblings, 2 replies; 15+ messages in thread
From: Peter Münster @ 2008-11-04 11:16 UTC (permalink / raw)
  To: ConTeXt list

Hello,

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-01-29 10:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-04 11:16 backgrounds: help needed Peter Münster
2009-01-20 22:51 ` Alan BRASLAU
2009-01-20 23:07   ` Wolfgang Schuster
2009-01-25 12:14     ` Something usefull? Alan BRASLAU
2009-01-25 18:13       ` Wolfgang Schuster
2009-01-27  8:50     ` backgrounds: help needed Thomas Floeren
2009-01-27  9:11       ` Wolfgang Schuster
2009-01-27  9:28         ` Thomas Floeren
2009-01-27 13:56       ` Aditya Mahajan
2009-01-27 14:08         ` Thomas Floeren
2009-01-27 16:04           ` Alan BRASLAU
2009-01-28  7:13             ` Thomas Floeren
2009-01-29 10:39               ` Thomas Floeren
2009-01-25 18:23 ` Alan BRASLAU
2009-01-25 18:59   ` Wolfgang Schuster

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).