[XeTeX] xunicode, tipa (again) plus amsmath
Ross Moore
ross.moore at mq.edu.au
Sun Aug 29 22:40:10 CEST 2010
Hi Alan,
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
>
> 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
This works fine for me.
> $\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.
I get log messages as follows:
LaTeX Warning: Command \textfishhookr invalid in math mode on input line 1.
LaTeX Warning: Command \textglotstop invalid in math mode on input line 1.
LaTeX Warning: Command \textscripta invalid in math mode on input line 1.
LaTeX Warning: Command \textrevglotstop invalid in math mode on input line 1.
LaTeX Warning: Command \textsci invalid in math mode on input line 1.
LaTeX Warning: Command \textopeno invalid in math mode on input line 1.
LaTeX Warning: Command \textepsilon invalid in math mode on input line 1.
LaTeX Warning: Command \textturnv invalid in math mode on input line 1.
Missing character: There is no ɾ in font cmmi10!
Missing character: There is no ʔ in font cmmi10!
Missing character: There is no ɑ in font cmmi10!
Missing character: There is no ʕ in font cmmi10!
Missing character: There is no ɪ in font cmmi10!
Missing character: There is no ɔ in font cmmi10!
Missing character: There is no ɛ in font cmmi10!
Missing character: There is no ʌ in font cmmi10!
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.
Attached is the version of Xunicode.sty that I'm using.
Please compare it with what you have.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xunicode-096.sty
Type: application/octet-stream
Size: 133386 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20100830/209ebd5a/attachment-0001.obj>
-------------- next part --------------
> \end{document}
> --
> Alan Munn
> amunn at gmx.com
Hope this helps,
Ross
------------------------------------------------------------------------
Ross Moore ross.moore at mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
More information about the XeTeX
mailing list