From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46910 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: backgrounds: help needed Date: Tue, 20 Jan 2009 23:51:10 +0100 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <200901202351.10435.alan.braslau@cea.fr> References: <20081104111622.GA9179@pm-suse.deltadore.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0253270172==" X-Trace: ger.gmane.org 1232491999 15805 80.91.229.12 (20 Jan 2009 22:53:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2009 22:53:19 +0000 (UTC) Cc: Peter =?iso-8859-1?q?M=FCnster?= To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 20 23:54:31 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LPPUJ-0000pn-7L for gctc-ntg-context-518@m.gmane.org; Tue, 20 Jan 2009 23:54:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F1931FDD8; Tue, 20 Jan 2009 23:53:08 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29469-01-2; Tue, 20 Jan 2009 23:51:59 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 19A601FCE4; Tue, 20 Jan 2009 23:51:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 04F721FCDE for ; Tue, 20 Jan 2009 23:51:57 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29469-01 for ; Tue, 20 Jan 2009 23:51:20 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id E61091FCE4 for ; Tue, 20 Jan 2009 23:51:19 +0100 (CET) Original-Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0KMpGK0017398 for ; Tue, 20 Jan 2009 23:51:18 +0100 Original-Received: from smtp3-g21.free.fr (localhost [127.0.0.1]) by smtp3-g21.free.fr (Postfix) with ESMTP id D9D6D818076; Tue, 20 Jan 2009 23:51:14 +0100 (CET) Original-Received: from drec-hb-001817.localnet (cev75-1-81-57-248-225.fbx.proxad.net [81.57.248.225]) by smtp3-g21.free.fr (Postfix) with ESMTP id D8A30818002; Tue, 20 Jan 2009 23:51:11 +0100 (CET) User-Agent: KMail/1.10.4 (Linux/2.6.26; KDE/4.1.4; i686; ; ) In-Reply-To: <20081104111622.GA9179@pm-suse.deltadore.bzh> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.27.42.3; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 168262184 - dc5b18b0c729 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:46910 Archived-At: --===============0253270172== Content-Type: multipart/alternative; boundary="Boundary-00=_eVldJ7g9Uu7urZA" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-00=_eVldJ7g9Uu7urZA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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? Thanks. --Boundary-00=_eVldJ7g9Uu7urZA Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit

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?

Thanks.

--Boundary-00=_eVldJ7g9Uu7urZA-- --===============0253270172== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0253270172==--