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


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex

Reply via email to