unicode-math redefines math commands like \tilde from
macro:->\protect \tilde␣
to
\protected macro:->...
And if user does not explicitly use \setmathfont in preamble, the above redefinition takes place at begin document. But in some cases, commands like \title are expanded at preamble (thus before begin document). This can be solved by using \protect\tilde, but protecting a robust command is not so straightforward.
It would be better that unicode-math will update the definition of commands like tilde␣ inside \setmathfont.
Add info or delete as appropriate:
Relevant for XeTeX
Relevant for LuaTeX
Issue tracker has been searched for similar issues.
Description
unicode-math
redefines math commands like\tilde
fromto
And if user does not explicitly use
\setmathfont
in preamble, the above redefinition takes place at begin document. But in some cases, commands like\title
are expanded at preamble (thus before begin document). This can be solved by using\protect\tilde
, but protecting a robust command is not so straightforward.It would be better that
unicode-math
will update the definition of commands liketilde␣
inside\setmathfont
.Add info or delete as appropriate:
Minimal example demonstrating the issue