I’m trying to fit some text in a table, but the text keeps running through the table cells. I’ve already specified a fixed column width for the text using the p{} command. Initially, this worked, but then I also needed some forced linebreaks and once I implemented that using a new command, the p{} was overruled somehow, and the text runs through the cells again. Can someone help me fix this problem?
The code I used looks something like this:
\begin{landscape}
\newcommand{\cellenter}[2][l]{%
\begin{tabular}[#1]{@{}l@{}}#2\end{tabular}}
\begin{table}[t]\footnotesize
\caption{Caption}\label{table:table_cable_lay_2}
\begin{tabular*}{1.4\textwidth}{| p{0.32\textwidth} | p{0.32\textwidth} | p{0.32\textwidth} | p{0.32\textwidth} |}
\hline\hline
\textbf{Scenarios} &\textbf{Advantages} &\textbf{Disadvantages} &\textbf{Remarks} \\ [0.5ex]
\hline
\textit{Title of the cell} This text remains within the cell width because there are no forced linebreaks in this cell.
&\cellenter[t]{+ Advantage 1 \\ + Advantage 2}
&\cellenter[t]{- Disadvantage 1 \\ - Disadvantage 2}
&\cellenter[t]{ There is some text here that runs through the cell width. \\ There is some text here that runs through the cell width.} \\[1ex]
\hline
\end{tabular*}
\end{table}
\end{landscape}
The pdf output that I get looks like this:


!so that it becomes a link rather than showing the image inline. Someone with edit privileges will put it back – David Carlisle Oct 11 '12 at 14:13