From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35418 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: Layers in ConTeXt Date: Fri, 13 Jul 2007 14:08:31 +0200 Message-ID: <46976B3F.6060802@gmx.net> References: <1235056452.20070713113127@iol.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184338259 2826 80.91.229.12 (13 Jul 2007 14:50:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2007 14:50:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 13 16:50:57 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1I9MTr-00057b-AB for gctc-ntg-context-518@m.gmane.org; Fri, 13 Jul 2007 16:50:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4D4C5200D1; Fri, 13 Jul 2007 16:50:50 +0200 (CEST) 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 24350-02-2; Fri, 13 Jul 2007 16:50:38 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B874200BF; Fri, 13 Jul 2007 16:50:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D8BF5200B9 for ; Fri, 13 Jul 2007 16:50:36 +0200 (CEST) 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 24350-02 for ; Fri, 13 Jul 2007 16:50:32 +0200 (CEST) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id C265D20143 for ; Fri, 13 Jul 2007 14:08:25 +0200 (CEST) Original-Received: (qmail invoked by alias); 13 Jul 2007 12:08:25 -0000 Original-Received: from i577BAC73.versanet.de (EHLO [192.168.1.3]) [87.123.172.115] by mail.gmx.net (mp033) with SMTP; 13 Jul 2007 14:08:25 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX1+lJaoDLNOlnQOzTBUEOtUUGBdMEUU2gwe1fpXSH2 vLit362KuWJ4Dw User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) In-Reply-To: <1235056452.20070713113127@iol.it> X-Enigmail-Version: 0.95.2 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:35418 Archived-At: Hi Guiseppe, welcome back ;) Giuseppe Bilotta schrieb: > Hello all, > > I have a couple of questions concerning the use of layers in > ConTeXt. I'm working with Luigi Scarso on a layout which is > characterized by some fixed-position elements surrounding > the actual main body of text. > > For the fixed-position elements, I'm using layers. However, > my ConTeXt is a little rusty[*], so there are a couple of > things which I need hints for. > > The first one is very simple: is there a way to 'fix' the > layer's content "until they change"? I've currently set them > as page backgrounds, but their content gets reset on each > new page. > > The second question is slightly more complex: is there a way > to add contents to a layer, rather than replacing the > current layer content? Something like a macro > > \addtolayer[layername][hoffset=whatever(optional)]{additional content} > use a collector (Details, p.75) instead; I have no experience with them, but setup should be the same as for layer. % - - - - - \definecollector[foo][state=repeat] \starttext \switchtobodyfont[32pt] \setcollector[foo]{\strut eat more...} \flushcollector[foo] \page[yes] \setcollector[foo][hoffset=6cm]{\strut poppler} \flushcollector[foo] \stoptext % - - - - - Greetings, Peter ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________