<div dir="ltr"><div><div><div><div><br></div>Sorry I just realised that the undefined command error is due to different catcode defaults for xetex and<br></div>luatex but if you add space after \string in \c and \e you get no error but a log of<br><br>A=B<br>C=D<br>C=E<br>D=E<br><br><br></div>which is still wrong, fixed test file attached.<br><br></div>David<br><br></div>