At 11:12 PM 11/14/2001 -0500, you wrote:
>I'm using ConTeXt with pdfeTeX to typeset a large manuscript, and things
>have been going very well, but I had to work around the following problem.
>
>When I defined variables using the plain TeX methods, e.g.
>
>\newcount\Mycount
>\newbox\Mybox
>
>and started using these in my macros, it seemed to confuse ConTeXt about
>which pages were left pages and which were right pages.  If I just blindly
>say
>
>\chardef\Mycount=200
>\chardef\Mybox=200
>
>then everything works.  It seems ConTeXt and I were using the same counter.
>
>What is the preferred method for allocating variables (TeX registers) for
>my own macros?  My apologies if this is a FAQ.  I couldn't find a FAQ file
>for this mailing list.

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).

Hans


-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------

Reply via email to