From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46911 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: backgrounds: help needed Date: Wed, 21 Jan 2009 00:07:42 +0100 Message-ID: References: <20081104111622.GA9179@pm-suse.deltadore.bzh> <200901202351.10435.alan.braslau@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232493031 19067 80.91.229.12 (20 Jan 2009 23:10:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2009 23:10:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 21 00:11:41 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 1LPPkz-0005gh-1Z for gctc-ntg-context-518@m.gmane.org; Wed, 21 Jan 2009 00:11:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1AE711FDE5; Wed, 21 Jan 2009 00:10:16 +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-03; Wed, 21 Jan 2009 00:08:53 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5165B1FD7E; Wed, 21 Jan 2009 00:08:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA3261FD7E for ; Wed, 21 Jan 2009 00:08:52 +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 28999-05-2 for ; Wed, 21 Jan 2009 00:08:14 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id B6B171FCF5 for ; Wed, 21 Jan 2009 00:08:14 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0KN8D1I020153 for ; Wed, 21 Jan 2009 00:08:14 +0100 Original-Received: by fg-out-1718.google.com with SMTP id 19so1693694fgg.8 for ; Tue, 20 Jan 2009 15:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Koki4J4/5pbM09AhXbsVTpiP0VybOEs/YWXICFciNgA=; b=Q1W27WZjXTgp/BAGibj0Fsv3c7vaWhOfj3OjmElVb8PohMiDD4oz9QEa6R3VXPeC02 kUrY8kjrO59mFQXuSYzUC/symuW2pOhlaQmbACLjMjbC8i+VzjcBJhC9CKGtUCB2ro1X gk1lp7g43+P86sZWA4AjzSXLjCyfV8biOYxas= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=iOUoRTFAnkI4WGqv2mu8AEEyxhTpqvXCaburMLE0xf78mJE2Ybugkby56wvTUN2qjW gocM9xUw6zZwfas0lJYcv1ix5CTSvHYdA5q1Z65lig78hdShSpkyau+veqvOjPWzJBKb wC6kOSR3FBZ0bpGqDiPGgFHRtRJLo/VKx+7pI= Original-Received: by 10.86.100.19 with SMTP id x19mr1388281fgb.29.1232492893724; Tue, 20 Jan 2009 15:08:13 -0800 (PST) Original-Received: from ?10.40.34.112? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id e11sm2530195fga.32.2009.01.20.15.08.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 20 Jan 2009 15:08:13 -0800 (PST) In-Reply-To: <200901202351.10435.alan.braslau@cea.fr> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.154; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 168265773 - 4361eb0f9554 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:46911 Archived-At: 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 ___________________________________________________________________________________