On Sun, Aug 29, 2010 at 2:45 PM, Alan Munn <am...@gmx.com> 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

I use \mbox{} for text in maths mode, and \mbox use the text encoding of
the "surrounding" text, so try:

\begin{ipa}
$\mbox{RPAQIOE2}$
\end{ipa}


>
> Alan
>
>
> % !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
> $\textipa{RPAQIOE2}$ % and neither does this
> \end{document}
> --
> Alan Munn
> am...@gmx.com
>
>
>
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
>



-- 
George N. White III <aa...@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia



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

Reply via email to