From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55433 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Columns within a layer Date: Sat, 2 Jan 2010 14:16:14 +0100 Message-ID: <5373AF0E-EE87-4999-A83F-6251B4B39BEE@googlemail.com> References: <28007C7F-5497-4599-981F-C4A0BE30599A@googlemail.com> <482F3B96-CB5F-452A-BA99-442B17336AEF@googlemail.com> <98AF2A55-7EAD-404B-ACEC-4EF250E73B21@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1262438191 10990 80.91.229.12 (2 Jan 2010 13:16:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jan 2010 13:16:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 02 14:16:24 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NR3qC-0002Z2-Bz for gctc-ntg-context-518@m.gmane.org; Sat, 02 Jan 2010 14:16:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C439AC9C61; Sat, 2 Jan 2010 14:16:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oFGQ2N9ayJcn; Sat, 2 Jan 2010 14:16:20 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5BEBC9BE2; Sat, 2 Jan 2010 14:16:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A5FC1C9BE2 for ; Sat, 2 Jan 2010 14:16:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IzoJn7M1ZbS7 for ; Sat, 2 Jan 2010 14:16:17 +0100 (CET) Original-Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by balder.ntg.nl (Postfix) with ESMTP id 913F6C9BC9 for ; Sat, 2 Jan 2010 14:16:17 +0100 (CET) Original-Received: by fxm10 with SMTP id 10so1149042fxm.34 for ; Sat, 02 Jan 2010 05:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=bm4ziVWrbs1Vo+kA5UQ29xs7lMUfF/FTrZDV6Ajpzqo=; b=CYkySkqTJaRyHa8CzzoJetdSYk45q87g3+W2hVCOvIV21yst2d36xzyaoe+/7bU2DZ 74SdWlvj0h9PvXD4CLdHpos0tlkltIruB0u+wNL0BwwilkXJeW6pXZf3WH+f/hRc02rk Qz1ZprXRpW3gEycmcQPE0teKFwAzdNv3laPXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=nuTmAswSHyOa3m+R+9luJH0m93wDSvfCNv2A4juV7K8HCKJJBEVaqHkci0wlvYeA4D pOUvd7+os7dfWRJAuc1wV3lhQd6ILLntNR1sZkMXomu34k4dCsubbNQ2AJqsBSpMGVft qbRZK2KFpnt8x6wHZFj8tHdMIgc9552Sbp46M= Original-Received: by 10.223.164.75 with SMTP id d11mr16400378fay.17.1262438177270; Sat, 02 Jan 2010 05:16:17 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B295D44.dip.t-dialin.net [91.41.93.68]) by mx.google.com with ESMTPS id 9sm16731432fks.52.2010.01.02.05.16.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 02 Jan 2010 05:16:16 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1077) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:55433 Archived-At: Am 02.01.2010 um 11:18 schrieb Oliver Buerschaper: >> You need textbackground to draw the frame around the text > > That's the funny thing ... apparently I don't! See the code in my previous mail. There I seem to get the frame from the \setlayerframed command alone. But the frame from setlayerframed has not the measures of the text, to get the correct size you need textbackground. >> When you want only text in two columns \startsimplecolumns ... \stopsimplecolumns >> is a alternative to the normal columns environment and it works also in \framed >> (which is used in \setlayerframed). > > I'm afraid that doesn't make the vertial space vanish :-( Any ideas? \definelayer[test][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=test] \starttext \startbuffer[test] \hsize=12cm \startsimplecolumns \input zapf \stopsimplecolumns \stopbuffer \setlayerframed [test] [x=5cm,y=10cm] [width=12cm] {\getbuffer[test]} \page[empty] \stoptext > Also, can I force the streamlayer to have a fixed height? In the example I'd like the first column to be filled all the way down to the visible bottom frame and then the remaining text should be broken to the second column. At the moment both columns are filled with roughly equal amounts of text... You can set \textheight in the streamlayer settings and disable the balancing for columns. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________