I am typesetting a document using the package tipa, and it happens often that the contents of each cell in a column of a table are notionally IPA and need to be enclosed between \textipa{ and }. So I want to define a column type which will add those enclosing strings.
I know the technique of using \newcolumntype from package array for enclosing such cell contents between two strings, e.g. \newcolumntype{M}{>{$}p<{$}} to supply math mode $'s. But what if a string to be added contains a backslash or a brace?
MNWE. Here, the \textipa disappears and I get literal braces. \backslash and \arraybackslash are to no avail.
\documentclass[12pt,a4paper]{article}
\usepackage{array} % for \newcolumntype
\usepackage{tipa}
\newcolumntype{I}{>{\textipa\{}c<{\}}}
\begin{document}
\begin{tabular}{I}
lOrEm IpsUm
\end{tabular}
\end{document}