LaTeX forum ⇒ XeTeXAsana Math not so good at math?

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

Asana Math not so good at math?

Postby marie-regine » Tue Jan 11, 2011 2:42 pm

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!


  1. \documentclass{scrartcl}
  2.  
  3. \usepackage{unicode-math}
  4.  
  5. \setmathfont{Asana Math}
  6. % Output b_j !!!
  7. % Output a_i on Mac OS X, ok
  8. %\setmathfont{XITS Math}
  9. % Output a_i, ok
  10.  
  11. \begin{document}
  12. $a_i$
  13. \end{document}

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

Postby frabjous » Tue Jan 11, 2011 4:49 pm

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 5642 times

Could you add \listfiles to the beginning of the code, and post the relevant part of the resulting .log file. Here's mine:
  1. *File List*
  2. scrartcl.cls 2010/09/17 v3.07 KOMA-Script document class (article)
  3. scrkbase.sty 2010/09/17 v3.07 KOMA-Script package (KOMA-Script-dependent bas
  4. ics and keyval usage)
  5. scrbase.sty 2010/09/17 v3.07 KOMA-Script package (KOMA-Script-independent b
  6. asics and keyval usage)
  7. keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
  8. scrlfile.sty 2009/03/25 v3.03 KOMA-Script package (loading files)
  9. tocbasic.sty 2010/09/14 v3.06a KOMA-Script package (handling toc-files)
  10. scrsize11pt.clo 2010/09/17 v3.07 KOMA-Script font size class option (11pt)
  11. typearea.sty 2010/09/17 v3.07 KOMA-Script package (type area)
  12. unicode-math.sty 2010/09/27 v0.5b Unicode maths in XeLaTeX and LuaLaTeX
  13. ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
  14. ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
  15. expl3.sty 2010/11/13 v2083 L3 Experimental code bundle wrapper
  16. l3names.sty 2010/10/03 v2064 L3 Experimental Naming Scheme for TeX Primitiv
  17. es
  18. etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
  19. l3basics.sty 2010/10/03 v2063 L3 Experimental basic definitions
  20. l3expan.sty 2010/09/20 v2037 L3 Experimental Argument Expansion module
  21. l3tl.sty 2010/12/18 v2103 L3 Experimental Token Lists
  22. l3int.sty 2010/10/17 v2077 L3 Experimental Integer module
  23. l3quark.sty 2010/09/20 v2036 L3 Experimental Quark Commands
  24. l3seq.sty 2010/03/29 v1879 L3 Experimental sequences and stacks
  25. l3toks.sty 2010/09/20 v2037 L3 Experimental Token Registers
  26. l3prg.sty 2010/10/03 v2063 L3 Experimental control structures
  27. l3clist.sty 2010/10/09 v2071 L3 Experimental comma separated lists
  28. l3token.sty 2010/10/03 v2063 L3 Experimental token investigation and manipu
  29. lation
  30. l3prop.sty 2010/11/23 v2087 L3 Experimental Property Lists
  31. l3msg.sty 2010/10/02 v2052 L3 Experimental LaTeX Messages module
  32. l3io.sty 2010/10/03 v2063 L3 Experimental i/o module
  33. l3skip.sty 2010/11/23 v2088 L3 Experimental skip registers
  34. l3box.sty 2010/09/26 v2048 L3 Experimental Box module
  35. l3keyval.sty 2010/04/11 v1890 L3 Experimental keyval processing
  36. l3keys.sty 2010/11/11 v2082 L3 Experimental key-value support
  37. l3precom.sty 2010/02/09 v1793 L3 Experimental precompilation module
  38. l3xref.sty 2010/02/09 v1786 L3 Experimental cross referencing
  39. l3file.sty 2010/03/21 v1853 L3 Experimental file loading
  40. l3fp.sty 2010/12/18 v2104 L3 Experimental floating-point operations
  41. l3luatex.sty 2010/07/18 v1985 L3 Experimental LuaTeX functions
  42. calc.sty 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
  43. xparse.sty 2010/10/13 v2073 Generic document command parser
  44. l3keys2e.sty 2010/10/13 v2076 Parsing LaTeX3 keyvals as LaTeX2e package opti
  45. ons
  46. fontspec.sty 2010/11/17 v2.1e Advanced font selection for XeLaTeX/LuaLaTeX
  47. xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
  48. xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
  49. fontspec-patches.sty 2010/11/17 v2.1e Advanced font selection for XeLaTeX/Lu
  50. aLaTeX
  51. fixltx2e.sty 2006/09/13 v1.1m fixes to LaTeX
  52. fontenc.sty
  53. eu1enc.def 2010/05/27 v0.1h Experimental Unicode font encodings
  54. eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
  55. xunicode.sty 2010/11/06 v0.96 provides access to latin accents and many othe
  56. r characters in Unicode lower plane
  57. fontspec.cfg
  58. catchfile.sty 2010/04/28 v1.5 Catches the contents of a file (HO)
  59. infwarerr.sty 2010/04/08 v1.3 Providing info/warning/message (HO)
  60. ltxcmds.sty 2010/04/26 v1.7 LaTeX kernel commands for general use (HO)
  61. etexcmds.sty 2010/01/28 v1.3 Prefix for e-TeX command names (HO)
  62. unicode-math-table.tex
  63. ***********

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

Postby marie-regine » Tue Jan 11, 2011 5:27 pm

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 ... eb5d91b76#

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

Postby frabjous » Tue Jan 11, 2011 5:37 pm

That's useful, thanks.

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Wed Jan 12, 2011 7:53 pm

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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1


Return to “XeTeX”

Who is online

Users browsing this forum: No registered users and 1 guest