XeTeXAsana Math not so good at math?

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
marie-regine
Posts: 2
Joined: Wed Dec 29, 2010 2:02 pm

Asana Math not so good at math?

Post by marie-regine »

Hi,

(This is a cross-posting to the comp.text.tex)

I have a wierd bug here... When I compile the document below with xelatex on an XP machine, the $a_i$ comes out as $b_j$ in the PDF document. If I got variables confused like this in my math assignments, I don't think I'd get very good grades ;-)

The problem does not occur on my Mac, but as far as I can tell the versions of xelatex, included packages (as per \listfiles) and the Asana fonts themselves are the same on both machines (namely updated yesterday using tlmgr + the Asana fonts installed by hand from CTAN into the respective OS's font directories). The problem is also absent on the Windows machine using another math font, but I think Asana fits the general look of my document better.

Does anyone have any idea where I can go on looking for the problem? I'm calling xelatex from TeXmakerX on the XP machine and from AUCTeX on the Mac, viewing with Adobe Acrobat or Sumatra PDF under Windows, with Preview under Mac OS.

Thanks in advance!

Code: Select all

\documentclass{scrartcl}

\usepackage{unicode-math}

\setmathfont{Asana Math}
% Output b_j !!!
% Output a_i on Mac OS X, ok
%\setmathfont{XITS Math}
% Output a_i, ok

\begin{document}
$a_i$
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Asana Math not so good at math?

Post by frabjous »

Wow, what an interesting problem to have. Here's what I get when I compile your code, unmodified, as expected:
ai.png
ai.png (466 Bytes) Viewed 8359 times
Could you add \listfiles to the beginning of the code, and post the relevant part of the resulting .log file. Here's mine:

Code: Select all

 *File List*
scrartcl.cls    2010/09/17 v3.07 KOMA-Script document class (article)
scrkbase.sty    2010/09/17 v3.07 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
 scrbase.sty    2010/09/17 v3.07 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty    2009/03/25 v3.03 KOMA-Script package (loading files)
tocbasic.sty    2010/09/14 v3.06a KOMA-Script package (handling toc-files)
scrsize11pt.clo    2010/09/17 v3.07 KOMA-Script font size class option (11pt)
typearea.sty    2010/09/17 v3.07 KOMA-Script package (type area)
unicode-math.sty    2010/09/27 v0.5b Unicode maths in XeLaTeX and LuaLaTeX
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
   expl3.sty    2010/11/13 v2083 L3 Experimental code bundle wrapper
 l3names.sty    2010/10/03 v2064 L3 Experimental Naming Scheme for TeX Primitiv
es
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
l3basics.sty    2010/10/03 v2063 L3 Experimental basic definitions
 l3expan.sty    2010/09/20 v2037 L3 Experimental Argument Expansion module
    l3tl.sty    2010/12/18 v2103 L3 Experimental Token Lists
   l3int.sty    2010/10/17 v2077 L3 Experimental Integer module
 l3quark.sty    2010/09/20 v2036 L3 Experimental Quark Commands
   l3seq.sty    2010/03/29 v1879 L3 Experimental sequences and stacks
  l3toks.sty    2010/09/20 v2037 L3 Experimental Token Registers
   l3prg.sty    2010/10/03 v2063 L3 Experimental control structures
 l3clist.sty    2010/10/09 v2071 L3 Experimental comma separated lists
 l3token.sty    2010/10/03 v2063 L3 Experimental token investigation and manipu
lation
  l3prop.sty    2010/11/23 v2087 L3 Experimental Property Lists
   l3msg.sty    2010/10/02 v2052 L3 Experimental LaTeX Messages module
    l3io.sty    2010/10/03 v2063 L3 Experimental i/o module
  l3skip.sty    2010/11/23 v2088 L3 Experimental skip registers
   l3box.sty    2010/09/26 v2048 L3 Experimental Box module
l3keyval.sty    2010/04/11 v1890 L3 Experimental keyval processing
  l3keys.sty    2010/11/11 v2082 L3 Experimental key-value support
l3precom.sty    2010/02/09 v1793 L3 Experimental precompilation module
  l3xref.sty    2010/02/09 v1786 L3 Experimental cross referencing
  l3file.sty    2010/03/21 v1853 L3 Experimental file loading
    l3fp.sty    2010/12/18 v2104 L3 Experimental floating-point operations
l3luatex.sty    2010/07/18 v1985 L3 Experimental LuaTeX functions
    calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
  xparse.sty    2010/10/13 v2073 Generic document command parser
l3keys2e.sty    2010/10/13 v2076 Parsing LaTeX3 keyvals as LaTeX2e package opti
ons
fontspec.sty    2010/11/17 v2.1e Advanced font selection for XeLaTeX/LuaLaTeX
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
fontspec-patches.sty    2010/11/17 v2.1e Advanced font selection for XeLaTeX/Lu
aLaTeX
fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX
 fontenc.sty
  eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings
  eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern
xunicode.sty    2010/11/06 v0.96 provides access to latin accents and many othe
r characters in Unicode lower plane
fontspec.cfg
catchfile.sty    2010/04/28 v1.5 Catches the contents of a file (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)
 ltxcmds.sty    2010/04/26 v1.7 LaTeX kernel commands for general use (HO)
etexcmds.sty    2010/01/28 v1.3 Prefix for e-TeX command names (HO)
unicode-math-table.tex
 ***********
Check also what version or versions of Asana Math you have. I have 000.928. XeLaTeX sometimes gets confused when you have the same font installed more than once. You might want to double check that's not the case.
marie-regine
Posts: 2
Joined: Wed Dec 29, 2010 2:02 pm

Asana Math not so good at math?

Post by marie-regine »

Hi,
Thanks for your help. As I mentioned, the versions of the packages and the fonts were updated on both computers yesterday; they were the latest on CTAN and it worked on one computer (the Mac) but not on the other (Windows machine).
XeLaTeX sometimes gets confused when you have the same font installed more than once. You might want to double check that's not the case.
The problem was here. I deleted the ttf from the XP machine's Control Panel/Fonts, and that solved the problem. There is still a copy of the otf in my TeXLive installation in another place, but that does not seem to pose problems.

BTW I got some additional information on comp.text.tex that is useful, namely commands to find out what font is being used (just in case someone ever finds this post and needs them):
http://groups.google.com/group/comp.tex ... aeb5d91b76#
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Asana Math not so good at math?

Post by frabjous »

That's useful, thanks.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Asana Math not so good at math?

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Thorsten
Post Reply