Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

With this minimal example

\documentclass[a4paper,12pt]{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmathfont{Asana Math}
\begin{document}
$\frac{2\pi r}{r} = 2\pi$
\end{document}

I am unable to get the horizontal bar or vinculum for the fraction on the left.

I am new to unicode-math, and want to use the Asana Math font with Minion Pro as my main font, compiling the document with xelatex.

Can someone please suggest what is wrong and how to correct it?

Many thanks.

share|improve this question
    
Which versions of unicode-math and XeTeX are you using? –  Caramdir Dec 24 '10 at 9:34
    
XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010) –  chandra Dec 24 '10 at 11:13
    
unicode-math.sty 2010/09/27 v0.5b Unicode maths in XeLaTeX and LuaLaTeX –  chandra Dec 24 '10 at 11:13

2 Answers 2

up vote 1 down vote accepted

You are possibly using a 64bit operating system and the 64bit version of XeTeX. There seems to be a long-standing bug in 64bit XeTeX that makes it basically unusable with unicode-math. 32bit XeLaTeX compiles your example correctly.

If you want to continue using XeLaTeX, you should install the 32bit binaries from TeX Live and change $PATH accordingly. (On modern systems using 32bit binaries in a 64bit OS shouldn't be a problem.)

share|improve this answer
    
This is a known bug that should be fixed in the CVS version of xetex soon. The bug has been identified and a solution found. –  Alan Munn Jan 7 '11 at 22:40
    
@Alan: Good to know. Thanks for the update. –  Caramdir Jan 7 '11 at 22:57

I have no problem and here is my output with current TeXLive2010 and the otf version of Asana from CTAN. I run the document with lualatex. alt text

share|improve this answer
    
Thanks Herbert. I have the same, correct, results with lualatex but not with xelatex. I can use lualatex for now as a workaround, but need to find out why it does not work with xelatex. –  chandra Dec 24 '10 at 11:10
    
give a single line space before and after image inclusion to make the image get displayed-mode. –  xport Dec 25 '10 at 19:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.