From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55427 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Re: Columns within a layer Date: Fri, 1 Jan 2010 15:07:53 +0100 Message-ID: References: <28007C7F-5497-4599-981F-C4A0BE30599A@googlemail.com> <482F3B96-CB5F-452A-BA99-442B17336AEF@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 1262354897 29123 80.91.229.12 (1 Jan 2010 14:08:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jan 2010 14:08:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 01 15:08:10 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 1NQiAi-0004SQ-QV for gctc-ntg-context-518@m.gmane.org; Fri, 01 Jan 2010 15:08:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 94B37C9C61; Fri, 1 Jan 2010 15:08:05 +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 8Wi1coAc4rF0; Fri, 1 Jan 2010 15:07:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4901FC9C40; Fri, 1 Jan 2010 15:07:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 95067C9C40 for ; Fri, 1 Jan 2010 15:07:56 +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 q5GCPbpSyriI for ; Fri, 1 Jan 2010 15:07:54 +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 738EEC9C3D for ; Fri, 1 Jan 2010 15:07:54 +0100 (CET) Original-Received: from [192.168.178.23] (g229179150.adsl.alicedsl.de [92.229.179.150]) (authenticated bits=0) by post.rzg.mpg.de (8.14.3/8.14.3) with ESMTP id o01E7rXd250310 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 1 Jan 2010 15:07:54 +0100 In-Reply-To: <482F3B96-CB5F-452A-BA99-442B17336AEF@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:55427 Archived-At: > width: > > \startsetups streamlayer:test:settings > \overloadtextwidth{12cm} > \stopsetups > > frame: > > \definetextbackground[testframe] > > \startstreamlayer[test] > \starttextbackground[testframe] > ... > \stoptextbackground > \stopstreamlayer That's exactly what I need! Based on your example I kept experimenting a bit and got to: --- \usemodule[streams] \definestreamlayer [columns] [method=overlay] \startsetups streamlayer:columns:settings \overloadtextwidth{12cm} \stopsetups \setupbackgrounds [page] [background=columns] \starttext \startstreamlayer[columns] \startcolumns \input knuth \stopcolumns \stopstreamlayer \setlayerframed [columns] [x=2cm, y=3cm] [width=12cm, height=8cm, align=normal, offset=none, framecolor=gray] {\placestreamlayer[columns]} %\setlayer % [columns] % [x=1cm, % y=10cm] % {\placestreamlayer[columns]} \stoptext --- Observations: 1. One can even do without the textbackground material for some reason. 2. \placestreamlayer apparently can only be used once (try uncommenting the last lines). So it doesn't nearly behave like a buffer... 3. There's some vertical space between the frame and the first line of text. Is this some \topskip thing? How can I get rid of this space? Many thanks again for your suggestions and a happy new year, 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 ___________________________________________________________________________________