From: "Peter Münster" <pmlists@free.fr>
To: ConTeXt list <ntg-context@ntg.nl>
Subject: backgrounds: help needed
Date: Tue, 4 Nov 2008 12:16:22 +0100 [thread overview]
Message-ID: <20081104111622.GA9179@pm-suse.deltadore.bzh> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2008-11-04 11:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-04 11:16 Peter Münster [this message]
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
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=20081104111622.GA9179@pm-suse.deltadore.bzh \
--to=pmlists@free.fr \
--cc=ntg-context@ntg.nl \
/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).