You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently fontspec sets the current text fonts as default fonts for \mathrm (...). Since the current
text fonts typically uses the node or harf shaper in LuaLaTeX this uses such fonts in math mode which
doesn't actually work since math mode is not processed by these shapers.
Can fontspec (at least for LuaTeX) automatically set \mathrm (...) to equivalent fonts with mode=base?
Check/indicate
Relevant for XeTeX
Relevant for LuaTeX
Issue tracker has been searched for similar issues?
Links to <tex.stackexchange.com> discussion if appropriate
Description
Currently
fontspec
sets the current text fonts as default fonts for\mathrm
(...). Since the currenttext fonts typically uses the
node
orharf
shaper in LuaLaTeX this uses such fonts in math mode whichdoesn't actually work since math mode is not processed by these shapers.
Can
fontspec
(at least for LuaTeX) automatically set\mathrm
(...) to equivalent fonts withmode=base
?Check/indicate
Minimal example demonstrating the issue
shows that
\mathrm
hasmode=node
instead ofmode=base
.Further details
The text was updated successfully, but these errors were encountered: