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

range=\mathit conflicts with \mathversion #264

Open
spl opened this issue Nov 27, 2013 · 1 comment
Open

range=\mathit conflicts with \mathversion #264

spl opened this issue Nov 27, 2013 · 1 comment
Projects

Comments

@spl
Copy link
Contributor

spl commented Nov 27, 2013

I would like to change the \mathversion, but it seems like the option [range=\mathit] is overriding my command. See the following minimal example:

\documentclass{minimal}
\usepackage{unicode-math}

% Default math font
\setmathfont{XITS Math}

% Math version 'arial'
\setmathfont[version=arial]{Arial}

\begin{document}
\(XITS\) % OK

{\mathversion{arial}\(Arial\)} % OK

\(XITS\) % OK

% Set a new \mathit range
\setmathfont[range=\mathit]{Comic Sans MS}
\(Comic Sans MS\) % OK

% This should be Arial:
{\mathversion{arial}\(Comic Sans MS\)} % BAD!
\end{document}

Note that I actually encountered the problem with \setmathfont[range=\mathit]{...} in the preamble, which affected the entire document. Also, I had other ranges set (\mathup, \mathbf, \mathbfup, \mathcal, and various Unicode ranges), but \mathit was the only contributor to the problem.

unicode-math version: 2013/05/04 v0.7e

@spl
Copy link
Contributor Author

spl commented Nov 27, 2013

Related: #255.

@wspr wspr modified the milestone: v0.9 Jun 28, 2017
@wspr wspr added this to To Do in v0.9 Oct 15, 2017
@wspr wspr removed this from the v0.9 milestone Oct 15, 2017
@wspr wspr moved this from To Do to To Do (serious) in v0.9 Oct 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
v0.9
  
To Do (serious)
Development

No branches or pull requests

2 participants