Hans van der Meer wrote:
I more or less conclude that the lookahead from \dodoublegroupempty does not stop on the \if. If I remember correctly, that behaviour is to be expected from tex and the prospects for solving it generically within the format bleak. If Hans Hagen is listening, can he comment on this?
indeed, but cooking up a solution that always works is hard 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.com | www.pragma-pod.nl -----------------------------------------------------------------