From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: backgrounds: help needed
Date: Wed, 21 Jan 2009 00:07:42 +0100 [thread overview]
Message-ID: <BEA17B9C-9A2B-48F1-BB76-2D9B64D5DB1B@gmail.com> (raw)
In-Reply-To: <200901202351.10435.alan.braslau@cea.fr>
Am 20.01.2009 um 23:51 schrieb Alan BRASLAU:
> I, too, do not understand the
> \definetextbackground
> \starttextbackground
> \stoptextbackground
> commands, even though I tried looking at "details.pdf" (and core-
> pgr.tex).
> My particular problem is rather classic, that of illustrating
> examples, set off from the main text.
> I first used
> \defineframedtext [example]
> [width=fit,background=screen,backgroundscreen=0.7]
> \startexample
> ...
> \stopexample
> and this is appropriate if the example is short enough to fit on one
> page.
> However, a long example (many paragraphs) that spans more than one
> page
> runs off the bottom.
> Textbackground seems more appropriate, so I tried
> \definetextbackground [example]
> [location=paragraph,backgroundcolor=middlegray,frame=off]
> \definestartstop [example]
> [before={\starttextbackground[example]},after=\stoptextbackground]
> but this does not work. I tried other variants (such as adding
> state=start, ...) with no success.
> Does anyone have suggestions on where to look for further
> documentation or examples of use?
This works for me.
\setupcolors[state=start]
\definetextbackground
[example]
[location=paragraph,
background=color,
backgroundcolor=middlegray,
frame=off]
\starttext
\input knuth
\startexample
\dorecurse{4}{\input knuth\par}
\stopexample
\input knuth
\stoptext
Wolfgang
___________________________________________________________________________________
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 prev parent reply other threads:[~2009-01-20 23:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-04 11:16 Peter Münster
2009-01-20 22:51 ` Alan BRASLAU
2009-01-20 23:07 ` Wolfgang Schuster [this message]
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=BEA17B9C-9A2B-48F1-BB76-2D9B64D5DB1B@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--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).