[XeTeX] footnotes and ArabXeTeX

Philip TAYLOR P.Taylor at Rhul.Ac.Uk
Wed Oct 5 16:54:35 CEST 2011



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


More information about the XeTeX mailing list