On 14/03/2010, at 11:36 PM, Will Robertson wrote: > The code is somewhat tentative but I think it shows this approach is valid. Any comments or suggestions? Well, I do notice that etex.sty does a lot of this stuff as well, so I really should be working off that package rather than re-inventing the relevant parts of it... in fact, it almost replaces entirely the need for the expl3 stuff; just need to say (I think) \let \int_new:N \globcount \let \int_new_local:N \loccount etc. etc. Should have looked in there first :) I didn't realise it provided support for local registers already. -- Will