[XeTeX] Missing characters

José Carlos Santos jcsantos at fc.up.pt
Mon May 3 14:57:37 CEST 2010


On 03-05-2010 13:40, Ulrike Fischer wrote:

>> If I compile this file:
>>
>> \documentclass{article}
>> \usepackage{fontspec}
>> \usepackage{xunicode}
>> \usepackage{xltxtra}
>> \begin{document}
>> $2×2±2$
>> \end{document}
>>
>> all goes well; the result is a document which contains 2×2±2. However,
>> if I add the line
>>
>> \usepackage[utopia]{mathdesign}
>>
>> before loading the fontspec package, my log file says:
>>
>> Missing character: There is no × in font mdputr7t!
>> Missing character: There is no ± in font mdputr7t!
>>
>> and all I get is "222". Is there some way of avoiding this (besides, of
>> course, replacing × and ± with \times and \pm respectively)?
>
> \documentclass{article}
> \usepackage[utopia]{mathdesign}
> \usepackage{xltxtra}
> \setmainfont{Arial}%to better see the differences
> \catcode`\×=\active
> \def×{\ifmmode\times\else\char"00D7\fi}
> \catcode`\±=\active
> \def±{\ifmmode\pm\else\char"00B1\fi}
>
> \begin{document}\pagestyle{empty}
> text ×±
>
> math $×±$
> \end{document}

Great! Thanks a lot.

Best regards,

José Carlos Santos


More information about the XeTeX mailing list