The expected output should be obvious. Unfortunately though, the “gets” arrow is dropped from the output when rendered with XeTeX (0.9997.4, Unicode-Math v0.5b):

𝜎 1

But even weirder, when I comment in the \setmainfont line and comment out the \setmathfont line, then the result looks as follows:

← 1

i.e. the sigma is swallowed.

Summary: when trying to use either Asana Math or Linux Libertine or both I cannot get the above text to display correctly.

Is this a bug? How can I get this to display correctly?

Furthermore, when I have “Asana Math” loaded, additionally load microype (2.5 beta 0.4) and display a very huge math text (e.g. fontsize{50}{50}), the xelatex compiler creates an error and doesn’t produce any output. This is the error log:

3 Answers
3

It is a bug that has been fixed last October, but the fix doesn't seem to have propagated to CTAN yet (or at least not into TeX Live).
With unicode-math from git your code works as expected (at least the arrow part).

Drat, for some reason the TeX Live installation can’t find this package when I install it in TEXMFLOCAL, even though the same works seamlessly for other packages … but this is the correct answer so I’ve accepted it.
–
Konrad RudolphJan 27 '11 at 16:03

@Konrad: please report that as a bug. unicode-mathshould work like other packages.
–
PhilippJan 28 '11 at 10:51

@Philipp: that’s not an issue with unicode-math, the package is put into the correct location (I’m doing a manual install via make install-sys). But somehow kpathsea refuses to pick up this path, as evidenced by kpsewhich unicode-math.sty returning the texmf-dist path instead of texmf-local (but for other packages that exist in both paths this works). I blame my own stupidity.
–
Konrad RudolphJan 28 '11 at 11:04

@Konrad: Did you run mktexlsr afterwards? (Probably the makefile should do this automatically.)
–
PhilippJan 28 '11 at 11:07

Your example works for me with the latest unicode-math's nighty-build.
Another solution is to use \leftarrow instead of \gets.
The comprehensive list of symbols for unicode-math may also be helpful for this kind of problems.

I’m using version 2.5 (beta) which is compatible with XeTeX. You’re right about my not using Unicode but I still expect this code to work (and unicode-math is required for \setmathfont).
–
Konrad RudolphJan 26 '11 at 21:58

As far as I know σ and \sigma are equivalent with unicode-math.
–
CaramdirJan 26 '11 at 22:31

@Caramdir — Yep, it is correct to use either (and sometimes even preferable to use \sigma depending on your text editor and whether other people need to use the code — e.g., copying a maths expression into a totally different pdfLaTeX document).
–
Will RobertsonJan 27 '11 at 5:07

well I stand corrected. Microtype support for xetex and xelatex is an excellent feature addition. :P
–
MicaJan 29 '11 at 1:15