From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55434 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: Columns within a layer Date: Sat, 2 Jan 2010 16:35:58 +0100 Message-ID: <99BFDBE8-CA89-4AB6-BB57-D37486495454@mpq.mpg.de> References: <28007C7F-5497-4599-981F-C4A0BE30599A@googlemail.com> <482F3B96-CB5F-452A-BA99-442B17336AEF@googlemail.com> <98AF2A55-7EAD-404B-ACEC-4EF250E73B21@googlemail.com> <5373AF0E-EE87-4999-A83F-6251B4B39BEE@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 1262446585 712 80.91.229.12 (2 Jan 2010 15:36:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jan 2010 15:36:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 02 16:36:16 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 1NR61X-0004OT-SX for gctc-ntg-context-518@m.gmane.org; Sat, 02 Jan 2010 16:36:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1F9BAC9BC5; Sat, 2 Jan 2010 16:36:15 +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 WXYsvS8YLU5O; Sat, 2 Jan 2010 16:36:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8DE61C9B92; Sat, 2 Jan 2010 16:36:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F326C9B92 for ; Sat, 2 Jan 2010 16:36:11 +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 nP1ImvBvIYYg for ; Sat, 2 Jan 2010 16:36:00 +0100 (CET) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.30.42]) by balder.ntg.nl (Postfix) with ESMTP id 0C40DC9B8F for ; Sat, 2 Jan 2010 16:35:59 +0100 (CET) Original-Received: from [192.168.178.23] (g229238231.adsl.alicedsl.de [92.229.238.231]) (authenticated bits=0) by post.rzg.mpg.de (8.14.3/8.14.3) with ESMTP id o02FZweV537328 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 2 Jan 2010 16:35:59 +0100 In-Reply-To: <5373AF0E-EE87-4999-A83F-6251B4B39BEE@googlemail.com> 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:55434 Archived-At: > But the frame from setlayerframed has not the measures of the text, > to get the correct size you need textbackground. Ah, I see! The reason I asked is I didn't see any frame with your code... I presume I need to hook some MP overlay into textbackground? > \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 No, that doesn't solve my problem :-( Compare the two buffers and watch the space between the frame's top border and the first line of text: --- \definelayer [test] [width=\paperwidth, height=\paperheight] \setupbackgrounds [page] [background=test] \starttext \startbuffer[test] \hsize=12cm \startsimplecolumns \input zapf \stopsimplecolumns \stopbuffer \startbuffer[test2] \input zapf \stopbuffer \setlayerframed [test] [x=5cm, y=10cm] [width=12cm, % align=normal, offset=none] {\getbuffer[test]} % {\getbuffer[test2]} \page[empty] \stoptext --- Also, I forgot to mention that I need three columns... my apologies. > You can set \textheight in the streamlayer settings and disable the balancing for columns. I managed to disable the balancing but I can't get the text height right. I'm probably not seeing the obvious but neither \textheight{10cm} nor \overloadtextwidth{10cm} between \startsetups and \stopsetups do the job :-( Please advise... Oliver ___________________________________________________________________________________ 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 ___________________________________________________________________________________