wspr/fontspec — Issue #118: Nobreakspace in math
Author: wspr
Created: 2011-11-03 01:06:55+00:00
State: open

From Hugo Macedo.

----

I had no problems until
recently I started integrating some math environments with "~" inside. Somehow fontspec translates
them into \nobreakspace and that is invalid in math mode. Eg. the following tex

\documentclass{article}
\usepackage[no-math]{fontspec}
\setmainfont{Georgia}
\begin{document}
\[ A ~= B \]
\end{document}

issues the following when compiled with xelatex:

LaTeX Warning: Command \nobreakspace invalid in math mode on input line 9.