[XeTeX] Missing characters
Ulrike Fischer
news3 at nililand.de
Mon May 3 14:40:36 CEST 2010
Am Mon, 03 May 2010 09:36:44 +0100 schrieb José Carlos Santos:
> Hi all:
>
> 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}
--
Ulrike Fischer
More information about the XeTeX
mailing list