I'm using Tex Live 2010. Here's the example I want to discuss.

\setmainfont{Linux Libertine O}   
\setmathfont[range=\mathit/{latin, Latin, greek, Greek}]{Linux Libertine O}  
Transfinite induction will reveal that $\kappa$ is $\alpha$-Mahlo for each
$\alpha < \kappa$. We have proved elsewhere that $\kappa$ is 1-Mahlo, and hence
0-Mahlo. If $\kappa$ is $\alpha$-Mahlo for all $\alpha$ below some limit ordinal
$\lambda < \kappa$, then $\kappa$ is $\lambda$-Mahlo by definition.  

My problem is that the latin, Latin, greek, and Greek characters are set in XITS, not Libertine. Now fontspec issues the warning,

fontspec Warning: Font 'Linux Libertine O' does not contain script 'Math'.

I guess Libertine isn't a math font. Nevertheless, similar markup seemed to yield the desired result in June at this blog. Has something changed dramatically since then?

I'm unwilling to abandon unicode-math. But I desperately want to use, within math mode, Latin and Greek glyphs that were designed for text mode. Since (as far as I know) mathspec is no longer compatible with unicode-math, I'm not sure what to do. Any suggestions?

closed as off-topic by Stefan Kottwitz Dec 8 '17 at 13:52

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.


For future reference, the question has already been answered on xetex mailing list.

  • There's also an answer in the comments section of the blog linked to. – frabjous Oct 9 '10 at 22:38
  • 3
    Could you please copy the main part in you answer. This site should be self-contained. – Martin Scharrer Jun 4 '14 at 20:18

When this question was written, there was a bug in the option code that caused the spaces in {latin, Latin, greek, Greek} to upset the parsing (it was looking for a range called Latin with a leading space).

This bug was corrected shortly afterwards and the example given should now behave correctly. (Although one wonders if the original poster intended to use an italic font instead for \mathit.)