(This is a cross-posting to the latex-community forum)
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!
\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}
Seems like an off-by-one error somewhere in the font configuration. Does
$b_j$ come out as `c_k'?
/August
> Hi,
>
> (This is a cross-posting to the latex-community forum)
>
> 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.
Make sure you only have a single version of Asana math on the XP
machine. If there is more than one copy of a font, it can cause
problems. I think MikTeX has both a .ttf and an .otf version of the
font. You don't need the .ttf version; I think you can put it in a
folder fonts/truetype.ignored so that it's not found.
> > 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.
>
> Seems like an off-by-one error somewhere in the font configuration. Does
> $b_j$ come out as `c_k'?
Yes, but there are some exceptions (which makes it even funnier!)
\documentclass{scrartcl}
\usepackage{unicode-math}
\setmathfont{Asana Math}
%\setmathfont{XITS Math}
\begin{document}
\renewcommand{\theenumi}{\alph{enumi}}
\begin{enumerate}
\item $a$ %b
\item $b$ %c
\item $c$ %d
\item $d$
\item $e$
\item $f$
\item $g$ %i (instead of h)
\item $h$ %h with a slash through it
\item $i$ %j
\item $j$
% and so on
\item $x$
\item $y$
\item $z$ % capital A
\end{enumerate}
\renewcommand{\theenumi}{\Alph{enumi}}
\begin{enumerate}
\item $A$
\item $B$
\item $C$
% and so on
\item $X$
\item $Y$
\item $Z$ %a (small)
\end{enumerate}
, $,$\\ % - (some dash, not sure which)
; $;$\\ % <
\end{document}
> Hi,
>
> (This is a cross-posting to the latex-community forum)
>
> 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.
You have two versions of asana-math (probably an otf and ttf) and
xetex is using one and xdvipdfmx the other. Remove one of them (the
tff)
You can see in the log which xetex uses by putting
\XeTeXtracingfonts= 1 in your document
To see the font used by xdvipdfmx call on the command line
xelatex --output-driver="xdvipdfmx -vv" file
--
Ulrike Fischer