I'm having the following problem. I'm using a tabular environment to create a phrase structure rule (linguistics stuff, don't care about it) and I need parentheses for those parts in the rule which are optional. This is a demo code of what I'm using:
\documentclass{article}
\newcommand{\symb}[2]{%
\begin{tabular}[t]{c}
\normalsize{#1}\\
\footnotesize{#2}
\end{tabular}}
% Optional rule support
\newcommand{\opt}[1]{\ensuremath{\left(#1\right)}}
% Macros
\newcommand{\ra}{\ensuremath{\rightarrow}}
\newcommand{\ua}{\ensuremath{\uparrow}}
\newcommand{\da}{\ensuremath{\downarrow}}
\newcommand{\blank}{\ensuremath{\quad}}
\begin{document}
\symb{IP}{}\blank
\symb{\ra}{}\blank
\opt{
\begin{tabular}[t]{c}
\normalsize{TopicP}\\
\footnotesize{{\sc (\ua topic) = \da}}\\
\footnotesize{{\sc (\ua topic) = (\ua TopicPath)}}
\end{tabular}
}\blank
\opt{\symb{IP}{\ua = \da}}
\end{document}
I know the code isn't the most elegant thing you'll ever see. It's because I've had to modify a somewhat well-known macro used for LFG phrase structure rules... which sadly doesn't support more than one annotation. Thus, I'm using the tabular in order to have more than one annotation under the phrasal category (NP, IP, whatever).
Thanks!



\textitor\it,\bfseriesor\bf, etc. and Will two-letter font style commands (\bf,\it, …) ever be resurrected in LaTeX? – Werner Nov 21 '12 at 0:27