Hi Ross,

On Aug 29, 2010, at 4:40 PM, Ross Moore wrote:

On 30/08/2010, at 3:45 AM, Alan Munn wrote:

Hi, a while ago, Ulrike posted an nice way to allow legacy tipa code to be used with xelatex. Unfortunately I've encountered a problem: it doesn't work inside math mode. Is there a way to fix this? Thanks

% !TEX TS-program = XeLaTeX

\documentclass{article}
\usepackage{amsmath}
\usepackage{xltxtra}
\newfontfamily{\ipafont}{Doulos SIL}
\def\useTIPAfont{\ipafont}
\newenvironment{ipa}{%
\let\stone\TIPAstonebar
\let\tone\TIPAtonebar
\setTIPAcatcodes\activatetipa
\csname useTIPAfont\endcsname
}{}
\begin{document}
\textipa{RPAQIOE2} % This will give you correct phonetic characters
\begin{ipa}
RPAQIOE
\end{ipa}
$\text{\textipa{RPAQIOE2}}$ % unfortunately this doesn't
  This works fine for me.

Thanks. Installing the version of xunicode.sty that you attached solves the problem.


$\textipa{RPAQIOE2}$ % and neither does this
  This does not, since it is logically wrong.
  The text characters have no meaning in math mode;
  i.e., they do not exist in the font for the
  usual math-italics of variable names.

Yes, and I knew that.  I think I just included it out of frustration :-)



Changing this, so that these and other TIPA characters
are recognised in math-mode, would require a fair bit
of work to get right and be safe.

Absolutely.  That's what the amsmath \text command is for anyway.

Thanks again.

Alan


--
Alan Munn
am...@gmx.com






--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex

Reply via email to