[Tex/LaTex] Can not force \newline within \longtable

line-breakinglongtable

\begin{table}[htbp]
\begin{tabular}{p{3cm}|p{1.5cm}|p{8cm}}

A \newline B & C \newline D & E \\ 

\end{tabular}

I tried creating a table as shown in the above MWE, the table is longer than 1 page and its not going to the second page, part of the table is cut off at the bottom.

I tried using \begin{longtable} in place of \begin{tabular} and it gave me error. am I doing anything wrong, can I not use \newline to force line break within a cell in \longtable environment?

Best Answer

When you say you tried \begin{longtable}, did you also put \usepackage{longtable} in your preamble? What was the error it gave?

With \usepackage{longtable} in the preamble it gives the expected output, something like

A     |C     |E
B     |D     |

and no errors.

Related Question