[XeTeX] Another tipa/xunicode puzzle: interaction with array.sty?
Alan Munn
amunn at gmx.com
Mon Aug 30 21:36:38 CEST 2010
On Aug 30, 2010, at 3:33 PM, Ross Moore wrote:
> 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, Ross.
Why does the same code work with the IPA environment using tipa.sty
and regular latex?
Alan
--
Alan Munn
amunn at gmx.com
More information about the XeTeX
mailing list