# Math italics with unicode-math.

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

\documentclass{article}
\RequirePackage{amsmath}
\RequirePackage{unicode-math}
\setmainfont{Linux Libertine O}
\setmathfont{xits-math.otf}
\setmathfont[range=\mathit/{latin, Latin, greek, Greek}]{Linux Libertine O}
\begin{document}
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.
\end{document}


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?

-
This behaviour has now been reported as a bug: github.com/wspr/unicode-math/issues#issue/157 – Will Robertson Oct 10 '10 at 22:23
@WillRobertson An old question, but would you mind adding an answer? – Joseph Wright Jun 4 '14 at 13:43

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.)
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9571651220321655, "perplexity": 3220.5384620016775}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-26/segments/1466783396106.71/warc/CC-MAIN-20160624154956-00119-ip-10-164-35-72.ec2.internal.warc.gz"}