From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17812 Path: main.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context Subject: Re: Problem with backgrounds and page breaks Date: Mon, 10 Jan 2005 13:35:50 -0500 Message-ID: <738C2F1C-6336-11D9-89F5-0003934F9514@indiana.edu> References: <3.0.5.32.20041102061702.008e6640@mail.northcoast.com> <3.0.5.32.20041030142258.008da250@mail.northcoast.com> <3.0.5.32.20041030142258.008da250@mail.northcoast.com> <3.0.5.32.20041102061702.008e6640@mail.northcoast.com> <3.0.5.32.20041102094749.008e7b60@mail.northcoast.com> <41B45338.80401@hoki.ibp.fhg.de> <6B6CC5D9-6322-11D9-B2C7-0003934F9514@indiana.edu> <41E2C02B.6080505@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1105382170 15866 80.91.229.6 (10 Jan 2005 18:36:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2005 18:36:10 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 10 19:36:01 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Co4OW-0006J4-00 for ; Mon, 10 Jan 2005 19:36:01 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 176EB127C1; Mon, 10 Jan 2005 19:36:00 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02949-04; Mon, 10 Jan 2005 19:35:56 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 59AB6127B3; Mon, 10 Jan 2005 19:35:56 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E363127B3 for ; Mon, 10 Jan 2005 19:35:54 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03030-01 for ; Mon, 10 Jan 2005 19:35:53 +0100 (CET) Original-Received: from rockridge.uits.indiana.edu (unknown [129.79.1.74]) by ronja.ntg.nl (Postfix) with ESMTP id 7A70A127A4 for ; Mon, 10 Jan 2005 19:35:53 +0100 (CET) Original-Received: from mail-relay.iu.edu (fontz.uits.indiana.edu [129.79.1.76]) by rockridge.uits.indiana.edu (8.12.10/8.12.10/IUPO) with ESMTP id j0AIZnHd008439 for ; Mon, 10 Jan 2005 13:35:49 -0500 (EST) Original-Received: from [129.79.94.193] (129-79-94-193.dhcp-bl.indiana.edu [129.79.94.193]) (authenticated bits=0) by mail-relay.iu.edu (8.12.10/8.12.10/IUPO) with ESMTP id j0AIZoqt025975 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 10 Jan 2005 13:35:51 -0500 (EST) In-Reply-To: <41E2C02B.6080505@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17812 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17812 Thanks, Hans, this fixes it most of the time. But the problem still occurs with one "new line" less. (Example again at the bottom) :( Matthias On Jan 10, 2005, at 12:49 PM, Hans Hagen wrote: > Matthias Weber wrote: > >> [before={\starttextbackground[exbackground]}, > > try: > > [before={\testpage[2]\starttextbackground[exbackground]}, > > that way a pagebreak is forced when less than three lines are left > > Hans > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > > \mainlanguage [en] \setupcolors[state=start] \setupcolor[rgb] % Exercises and Activities \definecolor[exc] [r=.94,g=.9,b=.9] \definetextbackground [exbackground] [backgroundcolor=exc, corner=round, before=\blank, after=\blank, leftoffset=5pt, rightoffset=5pt, topoffset=5pt, bottomoffset=5pt, frame=on, framecolor=darkgreen, location=paragraph, color=darkgreen] \defineenumeration [exercise] [before={\testpage[2]\starttextbackground[exbackground]}, after={\stoptextbackground}, way=bysection, text=Exercise, start=1, location=hanging, letter=rm] \setuppapersize[S6][S6] \setupbodyfont[12pt] \starttext \input tufte \input tufte new line new line %new line \startexercise Please explain how to get rid of the additional framed stuff on page 1. \stopexercise \input tufte \stoptext