From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27326 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: using headnumber Date: Thu, 20 Apr 2006 23:46:57 +0200 Message-ID: References: <4447A561.1020102@gmx.net> <0520A565-5054-429D-9779-4DB26DB380FC@uni-bonn.de> <4447F2C3.9030409@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v749.3) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145569765 13617 80.91.229.2 (20 Apr 2006 21:49:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2006 21:49:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 20 23:49:24 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FWh1X-0000Nk-Jh for gctc-ntg-context-518@m.gmane.org; Thu, 20 Apr 2006 23:49:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 388CE127AA; Thu, 20 Apr 2006 23:49:14 +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 15910-03-4; Thu, 20 Apr 2006 23:49:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E9607127A2; Thu, 20 Apr 2006 23:49:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA26F127A2 for ; Thu, 20 Apr 2006 23:49:07 +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 15910-03-3 for ; Thu, 20 Apr 2006 23:49:06 +0200 (CEST) Original-Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by ronja.ntg.nl (Postfix) with SMTP id 8C8201276B for ; Thu, 20 Apr 2006 23:49:06 +0200 (CEST) Original-Received: from fwd27.aul.t-online.de by mailout05.sul.t-online.com with smtp id 1FWh1O-0005zx-00; Thu, 20 Apr 2006 23:49:06 +0200 Original-Received: from [192.168.0.2] (XLnrwvZSrexoUAHIfoELKh0bmb3DNj4gApWReUvG38g8Qt9B4ijswv@[84.172.122.98]) by fwd27.sul.t-online.de with esmtp id 1FWh1H-15PSLI0; Thu, 20 Apr 2006 23:48:59 +0200 In-Reply-To: <4447F2C3.9030409@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.749.3) X-ID: XLnrwvZSrexoUAHIfoELKh0bmb3DNj4gApWReUvG38g8Qt9B4ijswv@t-dialin.net X-TOI-MSGID: 35d5971e-4983-46ea-aaa7-a96e2479e6f7 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:27326 Archived-At: Fascinating, but... The slidenumber needs to be reset according to the criterion whether we're starting an odd or an even section. If anybody's wondering why I want such a bizarre setup: this is the manuscript of my course for the entire term. Every class consists of two lectures = two sections in my manuscript, but because the lectures are back-to-back, I have one pdf presentation for both and want the marks for the slides in my manuscript numbered consecutively for section 1+2, then reset and numbered for 3+4 etc. Btw, I laboriously wrote my own macro to get nice marks for the slides in my manuscripts and then I discovered the \definelabel command... Best Thomas On Apr 20, 2006, at 10:44 PM, Hans Hagen wrote: > why not directly use the slidenumber > > \def\SlideNumber{1} > > command={\ifodd\SlideNumber\gdef\SlideNumber{1}\else\doglobal > \increment\SlideNumber\fi}} > > command={\ifodd\SlideNumber\gdef\SlideNumber{1}\else\gdef > \SlideNumber{2}\fi}} > > > command={\xdef\SlideNumber{\ifodd\SlideNumber\space1\else2\fi}} > > \def\SlideNumber{\ifconditional\OddSlide1\else2\fi} > > command=\ifodd\settrue\OddSlide\else\setfalse\OddSlide\fi > > etc etc