From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2214 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: RE: Setting paragraph title right or left in doublesided mode Date: Sat, 03 Jun 2000 00:42:11 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20000603004211.0188d9f0@pop.wxs.nl> References: <006e01bfcc9e$b65ed2f0$0321a8c0@bmach.nederware.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035393000 7033 80.91.224.250 (23 Oct 2002 17:10:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:10:00 +0000 (UTC) Cc: Original-To: "Berend de Boer" In-Reply-To: <006f01bfcca4$dd8ad7b0$0321a8c0@bmach.nederware.nl> Xref: main.gmane.org gmane.comp.tex.context:2214 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2214 At 05:11 PM 6/2/2000 +0200, Berend de Boer wrote: >> I tried to use \ifodd\paginanumber, but this wasn't very >> reliable (perhaps >> in combination with other stuff). How can I make 100% sure >> I'm on an odd or >> even page? > >Hmm, it seems \definetwopasslist does the job!! (and a few more lines of >course, but this was what I needed) \ifodd\realpageno this is \else rather safe \fi but indeed a twopass list is more robust; actually, you could use: \setraggedparagraphmode {odd action} {even action} which generates the twopass entry too. Maybe I should have: \let\doifrightpageelse\setraggedparagraphmode alternatively (atthe cost of more macros, since two pass lists are implemented rather efficiently) you can use: \pagereference[here]\doifreferencefoundelse{here} {\ifodd\currentrealreference\relax a\else b\fi} {} Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------