Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font selection of minus sign only working with range = { \minus, "2212 }, but not with range = { "2212 } or with range = { \minus } #626

Open
jasperhabicht opened this issue Dec 16, 2023 · 0 comments

Comments

@jasperhabicht
Copy link

jasperhabicht commented Dec 16, 2023

Description

It seems that the font for the minus sign can only be selected, if both \minus and "2212 are selected via the range option, such as range = { \minus, "2212 }. If only "2212 or only \minus are selected, the font does not change.

Add info or delete as appropriate:

Minimal example demonstrating the issue

If you change range = { \minus, "2212 } in the below MWE to range = { "2212 } or to range = { \minus } the font is not selected as expected:

\documentclass{article}
\RequirePackage[silent]{fontspec}
\setmainfont{Times New Roman}
\RequirePackage{unicode-math}
\setmathfont{STIX Two Math}
\setmathfont{Times New Roman}[ 
    range = { \minus, "2212 } 
]

\begin{document}

-6 and $-6$ 

\end{document}

Further Details

It might be the case that this behaviour is intended, but it is at least not documented in the manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant