From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45300 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Different footers for different parts of a project Date: Wed, 5 Nov 2008 08:11:21 +0100 Message-ID: <7297EAB9-E609-444D-BBD1-B4B3FE085406@gmail.com> References: <20081104210137.GD2264@atos.labs.wmid.amu.edu.pl> <76EA300C-EB2B-4BE2-818F-E767D3755097@gmail.com> <20081104214450.GG2264@atos.labs.wmid.amu.edu.pl> <20081104224704.GK2264@atos.labs.wmid.amu.edu.pl> <7278408D-5B9D-467C-8B07-810D9BF2C8FB@gmail.com> <20081105000015.GL2264@atos.labs.wmid.amu.edu.pl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225869195 9256 80.91.229.12 (5 Nov 2008 07:13:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2008 07:13:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 05 08:14:17 2008 connect(): Connection refused 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 1Kxcan-0004Ya-IQ for gctc-ntg-context-518@m.gmane.org; Wed, 05 Nov 2008 08:14:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E402D1FADC; Wed, 5 Nov 2008 08:13:07 +0100 (CET) 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 01209-02-6; Wed, 5 Nov 2008 08:12:07 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 50C931FB64; Wed, 5 Nov 2008 08:12:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 333F71FB30 for ; Wed, 5 Nov 2008 08:12:05 +0100 (CET) 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 01209-02-5 for ; Wed, 5 Nov 2008 08:11:28 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by ronja.ntg.nl (Postfix) with ESMTP id C24BC1FB5B for ; Wed, 5 Nov 2008 08:11:28 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id l26so3111648fgb.8 for ; Tue, 04 Nov 2008 23:11:28 -0800 (PST) Original-Received: by 10.86.80.5 with SMTP id d5mr671824fgb.7.1225869088454; Tue, 04 Nov 2008 23:11:28 -0800 (PST) Original-Received: from ?10.40.33.150? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id 4sm11413465fge.8.2008.11.04.23.11.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 04 Nov 2008 23:11:27 -0800 (PST) In-Reply-To: <20081105000015.GL2264@atos.labs.wmid.amu.edu.pl> X-Mailer: Apple Mail (2.929.2) 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:45300 Archived-At: Am 05.11.2008 um 01:00 schrieb Marcin Borkowski: > Dnia Wed, Nov 05, 2008 at 12:00:30AM +0100, Wolfgang Schuster > napisał(a): >> >> Am 04.11.2008 um 23:47 schrieb Marcin Borkowski: >> >>> Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster >>> napisał(a): >>>> >>>> Am 04.11.2008 um 22:44 schrieb Marcin Borkowski: >>>> >>>>> Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster >>>>> napisał(a): >>>>>> >>>>>> Am 04.11.2008 um 22:01 schrieb Marcin Borkowski: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> yet another question from me;). >>>>>>> >>>>>>> I have a project divided into products divided into components. >>>>>>> When I >>>>>>> typeset a component, I want to get it's title (I keep it in a >>>>>>> variable) >>>>>>> in the footer. If I typeset the wqhole project, I want to have >>>>>>> the >>>>>>> pagenumber there instead. >>>>>>> >>>>>>> How do I do it? (I mean what to put in the >>>>>>> environment/product/component code?) >>>>>> >>>>>> \startmode[*product] >>>>>> ... >>>>>> \stopmode >>>>> >>>>> And: is there a corresponding \startmode[*project] ... \stopmode >>>>> construct? >>>> >>>> Yes. >>> >>> Yes, that's right. However, it won't work wrt. arranging. If I put >>> \setuppapersize[A5][A4] >>> \setuparranging[2UP,rotated] >>> >>> within >>> \startmode[*project] >>> ... >>> \stopmode >>> >>> I have still to repeat >>> \setuparranging[normal] >>> >>> within >>> \startmode[*product] >>> ... >>> \stopmode >>> >>> etc. >>> >>> Is it a bug or a feature? (Seems a bug for me;).) >> >> I guess you missed something in your files, it works for me. > > So here are my files: > > env.tex: > ====== > \environment env > > \startmode[*project] > \setupheadertexts[Project] > \setuppapersize[A5][A4] > \setuparranging[2UP,rotated] > \stopmode > > \startmode[*product] > \setupheadertexts[Product] > \stopmode > > \startmode[*component] > \setupheadertexts[Component] > \stopmode > ====== > > project.tex: > ====== > \startproject project > > \environment env > > \product product > > \stopproject > ====== > > product.tex: > ====== > \startproduct product > > \project project > > \component component > > \stopproduct > ====== > > component.tex: > ====== > \startcomponent component > > \project project > > Hello component! > > \blank > > \input tufte > > \blank > > \input knuth > > \stopcomponent > ====== > > So that only the whole project should be typest 2-up - but everything > gets arranged that way... The project file is loaded from the product and the component and both enable then the project mode. See also Adityas mail and use \startmode[*product] and \startnotmode[*product]. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________