Am Sun, 19 Dec 2010 15:27:58 +0530 schrieb Shrisha Rao: > Greetz. > I find that when a Roman-based fontspec mapping is used in a > chapter title or a ToC entry in a memoir document, it causes an > error if the input text (not the output) offends (Xe)TeX in some > way; thus, `kR^ishhNaM vande jagadgurum.h' (which should simply > be rendered as कृष्णं वन्दे जगद्गुरुम्) causes a problem because > (Xe)TeX thinks `R^i' can only occur in math mode. Other input > texts do not seem to cause such a problem, and the same string > also causes no problem inside a chapter (only in chapter titles > and ToC entries).
Your problem has nothing to do with fontspec. Your commands \dev etc change catcodes. But when you use them in the argument of a command this changes are too late. The catcodes are already fixed. Change the catcodes before the \chapter* command. -- Ulrike Fischer -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex