From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6166 Path: main.gmane.org!not-for-mail From: "F. Miller Maley" Newsgroups: gmane.comp.tex.context Subject: Re: (pdfe)TeX register clash? Date: Thu, 15 Nov 2001 20:07:37 -0500 Sender: owner-ntg-context@let.uu.nl Message-ID: <3BF466AB.43C7382B@idaccr.org> References: <5.1.0.14.1.20011115092246.0403c490@server-1> Reply-To: maley@idaccr.org NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035396710 8113 80.91.224.250 (23 Oct 2002 18:11:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:11:50 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:6166 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6166 Hans Hagen wrote: > Context offers \newcount and \newbox (although the implementation is > adapted to etex's >256 register count; i don't use the original etex macros). > > So, there must be something else going on. How does the macro that uses the > counter look? Maybe there is some unsafe testing going on there (lookahead > problem). Thank you, this answers my question, and made me realize where my bug was. Things are now working as expected, but perhaps there is a better solution than the hack I came up with. My real question is this: Suppose I want to format something (a table, a section title) differently depending on whether it appears on a left or right page. I promise that the two formats (left/right) will behave the same with regard to page breaking. What is the cleanest way to do this? My idea was to (1) use the cross-reference mechanism to make a self-reference, (2) extract the page number from the reference into a counter and (3) test it with \ifodd. Step (2) was a bit tricky, and my solution unfortunately relies on ConTeXt internal macros (\doifreferencefoundelse, etc.). -- Miller Maley