From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32318 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Elevated text blocks Date: Thu, 28 Dec 2006 13:58:02 +0100 Message-ID: <20061228135802.55a92c73.schuster.wolfgang@googlemail.com> References: <20061227212538.GA4333@grohe.our-isp.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167310719 25321 80.91.229.10 (28 Dec 2006 12:58:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Dec 2006 12:58:39 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 28 13:58:38 2006 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 dough.gmane.org with esmtp (Exim 4.50) id 1GzuqB-0003Po-6Y for gctc-ntg-context-518@m.gmane.org; Thu, 28 Dec 2006 13:58:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6A51A2009A; Thu, 28 Dec 2006 13:56:35 +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 06300-02-16; Thu, 28 Dec 2006 13:56:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4588420085; Thu, 28 Dec 2006 13:56:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 184F120099 for ; Thu, 28 Dec 2006 13:56:24 +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 06300-02-15 for ; Thu, 28 Dec 2006 13:56:18 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by ronja.ntg.nl (Postfix) with SMTP id B60B020007 for ; Thu, 28 Dec 2006 13:56:16 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id l37so4824496nfc for ; Thu, 28 Dec 2006 04:58:14 -0800 (PST) Original-Received: by 10.48.4.17 with SMTP id 17mr8280810nfd.1167310694055; Thu, 28 Dec 2006 04:58:14 -0800 (PST) Original-Received: from unknown ( [62.180.201.169]) by mx.google.com with ESMTP id k24sm63052879nfc.2006.12.28.04.58.11; Thu, 28 Dec 2006 04:58:13 -0800 (PST) Original-To: ntg-context@ntg.nl In-Reply-To: <20061227212538.GA4333@grohe.our-isp.org> X-Mailer: Sylpheed version 2.2.10 (GTK+ 2.6.10; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:32318 Archived-At: On Wed, 27 Dec 2006 22:25:38 +0100 Gerhard Kugler wrote: > Hi, > > in the book which I'm translating there are many exercises which > should be elevated. The original sets grey bars at the beginning and > the end. My solutions tends to light grey background over the whole > text block. Partially the exercises exceed a page. If possible they > should kept as wholes. > > What is the suitable logical isolation of these blocks in context? > Framedtexts? Textblocks? > > Gerhard > > -- > Gerhard Kugler > Psychotherapeut > http://www.psychotherapie-kugler.de Hi Gerhard, you can keep text togehther by putting them into a vbox and it will move to the next page if it will not fit on the current page. There are to many ways how you defined your example, you can find one way below. The important things are saved into the before and after commands in the defintion. \defineenumeration [Example] [before=\null\vbox\bgroup, after=\egroup] \starttext \input knuth \startExample \dorecurse{30}{This is a example\crlf} \stopExample \input knuth \stoptext Wolfgang