I'm using
- XeTeX,
- unicode-math with
- Asana-math.otf
and required to make all greek letters in math -- upright. Asana-math seem to have upright greek letters:
(on the contrary I can't find italic greek letters in the file). But if I call \mathnormal
I don't get any output at all:
\documentclass{article}
\usepackage{fontspec} % enagles loading of OpenType fonts
\usepackage{polyglossia} % support for languages
% fonts:
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} % without this XeLaTeX won't turn "--" into dashes
\setmainfont{DejaVu Sans}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
% math:
\usepackage{amsmath} % for some math commands/symbols
\usepackage{amssymb} % for commands like \gg and \ll
\usepackage{mathtools} % for things like Vmatrix*
\usepackage{IEEEtrantools} % for advanced typesetting like multiline equations, and the likes.
\usepackage{unicode-math} % to use unicode in the formulas -- to improve readability of sources
\setmathfont{Asana-Math.otf} % it is important to have this line after the amsmath, mathtools and other maths
\begin{document}
Test upright greeks:
\begin{IEEEeqnarray}{rCl}
α & = & \mathnormal{α} \;.
\end{IEEEeqnarray}
\end{document}
I get no upright letter at all:
Is there a way I can get upright greeks with unicode-math, Asana-math font?
Edit:
I thought maybe it's a font issue. So I tried Latin Modern Math
:
\setmathfont[Path=fnt/]{latinmodern-math.otf}
but no luck!
Edit 2:
In my complex setup I get issues with sqrt and few other symbols -- when I specify range as in egreg solution. I added expression with sqrt to egreg's solution to reproduce the error:
As You see I can't reproduce the sqrt issue, but I get box on the second line.
Edit 3:
After I upgraded unicode-math to 0.7e
I can reproduce the sqrt issue:
Here's a full log. I read it and I noted:
Missing character: There is no ϵ in font [Asana-Math.otf]/ICU:script=math;lang
uage=DFLT;mapping=tex-text;!
Missing character: There is no ≫ in font cmr10!
Missing character: There is no ≪ in font cmr10!
lines. So probably have outdated Asana-Math.otf
.
Edit 4:
After I updated Asana-Math
the epsilon issue is resolved, but not the sqrt one:
And I still get:
Missing character: There is no ≫ in font cmr10!
What is that cmr10
?
unicode-math
version 0.7e and Asana-Math.otf version 000.949 I get correct output both for epsilon and the square root. Don't loadamssymb
; I get correct output without it and the input$a≫\theta$
– egreg May 18 '13 at 17:12amssymb
-- I started from Your solution. – Adobe May 18 '13 at 17:13range
I seem to have everything working. – Adobe May 18 '13 at 17:14otfinfo -v $(kpsewhich Asana-Math.otf)
? – egreg May 18 '13 at 17:15000.907
. But I'm using newest version:\setmathfont[Path=fnt/,math-style=french]{Asana-Math.otf}
and that one is:000.949
. – Adobe May 18 '13 at 17:17