From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35437 Path: news.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re: Layers in ConTeXt Date: Mon, 16 Jul 2007 00:42:14 +0200 Message-ID: <1697352827.20070716004214@iol.it> 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 1184539815 25647 80.91.229.12 (15 Jul 2007 22:50:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2007 22:50:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 16 00:50:13 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 1IACup-00039U-0p for gctc-ntg-context-518@m.gmane.org; Mon, 16 Jul 2007 00:50:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D9AC01FF75; Mon, 16 Jul 2007 00:50:08 +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 12036-07; Mon, 16 Jul 2007 00:50:03 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F197A1FF2E; Mon, 16 Jul 2007 00:50:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AE9971FF2E for ; Mon, 16 Jul 2007 00:49:58 +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 12042-02 for ; Mon, 16 Jul 2007 00:49:53 +0200 (CEST) Original-Received: from joe.tiscali.it (joe.tiscali.it [213.205.33.54]) by ronja.ntg.nl (Postfix) with ESMTP id 1299A1FF27 for ; Mon, 16 Jul 2007 00:49:52 +0200 (CEST) Original-Received: from [192.168.0.3] (62.10.76.119) by joe.tiscali.it (7.2.079) id 465A9B160075E738 for ntg-context@ntg.nl; Mon, 16 Jul 2007 00:49:51 +0200 X-Mailer: The Bat! (v3.5.25) Professional X-Priority: 3 (Normal) In-Reply-To: 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:35437 Archived-At: Saturday, July 14, 2007 Aditya Mahajan wrote: > On Fri, 13 Jul 2007, Giuseppe Bilotta wrote: >> Hello all, > Welcome back Giuseppe. I had benifitted a lot from your efforts of > improving the math support in ConTeXt. Had it not been for the amsl > module, I might have never switched to ConTeXt and would have missed a > lot of fun. Thanks :) I really hope I'll be able to get back at ConTeXt development and/or other contributions to the TeX world. > This is how I would do it. Not sure if this is the best way. Use > tokens to keep track of the current information that should go to the > layer, and repeat the layer on each page. > \newtoks\testtoks > \definelayer[test] > [ width=\paperwidth, > height=\paperheight, > ] > \startsetups make:test > \setlayer[test][x=5cm,y=3cm]{\framed[align=normal,width=5cm]{\the\testtoks}} > \stopsetups > \setupbackgrounds[page][setups=make:test,background=test] An interesting approach. I really need to learn to use setups. In the end, as the layout specifications got defined more accurately, it turns out the number and position of the layer elements is much less flexible than I originally thought, so I don't need this approach anymore, but I'll keep it in mind for future needs. One thing that I've noticed with repeating layers is that they appear also on 'empty' pages (as in those left by forcing an even or odd page). Is it possible to suppress then in those cases? Do the blank pages left by these commands have a particular setup that can be tweaked? -- Giuseppe "Oblomov" Bilotta ___________________________________________________________________________________ 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 ___________________________________________________________________________________