[XeTeX] xunicode, tipa (again) plus amsmath
Alan Munn
amunn at gmx.com
Mon Aug 30 17:30:44 CEST 2010
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
amunn at gmx.com
More information about the XeTeX
mailing list