[XeTeX] Fontspec mappings causing errors in ToC/chapter-headings in memoir class documents

Shrisha Rao shrao at nyx.net
Sun Dec 19 10:57:58 CET 2010


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).

See the attached minimal example, which uses the xetex-itrans package from CTAN, as well as the Code2000 and Latin Modern families of fonts.  The file should compile cleanly as given, but when the text enclosed inside the \eat{ ... } is brought out by commenting out the macro invocation, the problem will appear.

Any help appreciated.  Thanks in advance.

Regards,

Shrisha Rao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minimal.tex
Type: application/octet-stream
Size: 1532 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20101219/8b8cf7da/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minimal.pdf
Type: application/pdf
Size: 12705 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20101219/8b8cf7da/attachment-0001.pdf>


More information about the XeTeX mailing list