On Aug 29, 2010, at 2:18 PM, George N. White III wrote:
On Sun, Aug 29, 2010 at 2:45 PM, Alan Munn <[email protected]> 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}
Thanks, that works inside an ipa environment, but
$\mbox{\textipa{RPAQIOE2}}$
still doesn't. (And since I'm trying to reuse legacy code, I'd like
not to have to hand modify all my source.) Because generally the math
code will not be inside an ipa environment but will be within a
regular text environment, but will include embedded ipa characters.
Alan
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
[email protected]
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
--
George N. White III <[email protected]>
Head of St. Margarets Bay, Nova Scotia
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
--
Alan Munn
[email protected]
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex