[XeTeX] Another tipa/xunicode puzzle: interaction with array.sty?
Ross Moore
ross.moore at mq.edu.au
Mon Aug 30 21:33:20 CEST 2010
Hi Alan,
On 31/08/2010, at 2:12 AM, Alan Munn <amunn at gmx.com> wrote:
> Hi again, I've encountered another puzzle.
>
> % !TEX TS-program = XeLaTeX
> \newcolumntype{I}{>{\begin{ipa}[}l<{]\end{ipa}}}
>
> \begin{document}
> \begin{ipa}[PoP]\end{ipa}
>
> \begin{tabular}{I}
> PoP
> \end{tabular}
>
> \end{document}
>
> For some reason, the first character of the the IPA environment (whether with a newcolumntype or explicitly encoded into the column) specification fails to do the correct TIPA mapping. Enclosing the character in braces solves the problem, but this doesn't seem ideal.
>
> Any suggestions?
This is a general feature of alignment environments.
The first character in a cell is examined, in case it is (or expands to) \omit , which is the signal to ignore the template coding. This can lead to the \catcode becoming not what you want, as in your example, since it is the template coding that is going to establish what you want.
A simple work-around is to start any cell, whose contents start with a macro, with \relax .
>
> Thanks
>
> Alan
>
> --
> Alan Munn
> amunn at gmx.com
Hope this helps.
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20100831/a07adf6a/attachment.html>
More information about the XeTeX
mailing list