I am creating a tabular in LaTeX.
I want one column to be as small as possible, with no inter column spacing, so that it's just enough to fit the text. I know the answer to this question: I need to use @{}c@{}.
I also want to be able to have a linebreak wherever I want in my cell. I also know the answer to this question: I need to use a tabular within my tabular.
The problem is that I can't manage to make these two solutions work together: when I try to have 2 lines within a cell, the column gets expanded beyond the size of the text.
Here is such an example:
\begin{small}
\begin{tabular}{|@{}c@{}|}
A\\B\\C\\
\end{tabular}
\end{small}
Compare with (in the following code, there is unwanted extra space) :
\begin{tabular}{|@{}c@{}|}
\begin{small}
\begin{tabular}{@{}c@{}}
A\\B\\C\\
\end{tabular}
\end{small}
\end{tabular}


smallis a macro:\smallnot an environment (however, it also works without error). You might simply have some unwanted spaces, try putting%after the}at the end of the source lines. – Martin Scharrer♦ May 29 '12 at 14:53\begin{small}and the second after\end{tabular}. Saying only\small(and removing\end{small}) will solve the issue, as Gonzalo says. – egreg May 29 '12 at 15:01