Zdenek Wagner wrote:

This is a problem of \catcode. Apparently \textarab changes \catcode
of ^ and _ to 12. However, \footnote (as well as other macros) read
the whole argument and when \textarab starts to play its role, it is
too late and \catcode of ^ and _ is already set. I do not know how to
solve this problem without breaking math in \footnote, some dirty
trick will be needed.

To re-catcode a TeX sequence known to contain (e.g.) ^12 :

Pass the sequence + \sentinel to a macro with parameter structure

        #1^12#2\sentinel


Yield as expansion #1^#2, where ^ has its normal catcode.

Philip Taylor


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex

Reply via email to