Hi Alan,

On 31/08/2010, at 2:12 AM, Alan Munn <am...@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
> am...@gmx.com


Hope this helps.

        Ross


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

Reply via email to