wrap text in table with multirow and landscape

by Andrew Chang   Last Updated May 15, 2019 22:23 PM

I am new to LaTeX. I am trying to make a table in LaTeX but I cannot figure it out by myself. Any help would be much appreciated!

Here is the ideal appearance I made in word. The ideal appearance of my table Some details about this table: (1). I merged some cells together. To achieve this, I am using multirow. (2). This table is too wide for a page, therefore I am using landscape to rotate it 90 degree. (3). The text in some cells are too long, and thus I need to wrap the text.

I got into trouble when I try to wrap the text.

Here is my current code:

\begin{landscape}
\begin{table}[]
\caption{Pairwise Pearson correlation coefficients among EEG indexes}
\label{tab:my-table}
\begin{tabular}{|ll|ll|ll|ll|ll|}
\hline
                                                                  &   & Delta phase deviation             &              & Beta power modulation quadratic coefficient &             & Beta power modulation vertex time point &              & Delta-beta dPACz                 &    \\ \cline{3-10} 
                                                                  &   & \multicolumn{1}{p{2cm}|}{L}            & R            & \multicolumn{1}{p{2cm}|}{L}                      & R           & \multicolumn{1}{p{2cm}|}{L}                  & R            & \multicolumn{1}{p{2cm}|}{L}           & R  \\ \hline
\multicolumn{1}{|p{2cm}|}{Delta phase deviation}                       & L & \multicolumn{1}{p{2cm}|}{--}           & --           & \multicolumn{1}{p{2cm}|}{--}                     & --          & \multicolumn{1}{p{2cm}|}{--}                 & --           & \multicolumn{1}{p{2cm}|}{--}          & -- \\ \cline{2-10} 
\multicolumn{1}{|p{2cm}|}{}                                            & R & \multicolumn{1}{p{2cm}|}{.149 ± .044}  & --           & \multicolumn{1}{p{2cm}|}{--}                     & --          & \multicolumn{1}{p{2cm}|}{--}                 & --           & \multicolumn{1}{p{2cm}|}{--}          & -- \\ \hline
\multicolumn{1}{|p{2cm}|}{Beta power modulation quadratic coefficient} & L & \multicolumn{1}{p{2cm}|}{-.010 ± .014} & -.016 ± .013 & \multicolumn{1}{p{2cm}|}{--}                     & --          & \multicolumn{1}{p{2cm}|}{--}                 & --           & \multicolumn{1}{p{2cm}|}{--}          & -- \\ \cline{2-10} 
\multicolumn{1}{|p{2cm}|}{}                                            & R & \multicolumn{1}{p{2cm}|}{-.008 ± .012} & .009 ± .015  & \multicolumn{1}{p{2cm}|}{.103 ± .020}            & --          & \multicolumn{1}{p{2cm}|}{--}                 & --           & \multicolumn{1}{p{2cm}|}{--}          & -- \\ \hline
\multicolumn{1}{|p{2cm}|}{Beta power modulation vertex time point}     & L & \multicolumn{1}{p{2cm}|}{-.014 ± .015} & -.028 ± .017 & \multicolumn{1}{p{2cm}|}{.030 ± .040}            & .027 ± .015 & \multicolumn{1}{p{2cm}|}{--}                 & --           & \multicolumn{1}{p{2cm}|}{--}          & -- \\ \cline{2-10} 
\multicolumn{1}{|p{2cm}|}{}                                            & R & \multicolumn{1}{p{2cm}|}{-.009 ± .015} & -.028 ± .023 & \multicolumn{1}{p{2cm}|}{-.011 ± .022}           & .024 ± .023 & \multicolumn{1}{p{2cm}|}{.050 ± .020}        & --           & \multicolumn{1}{p{2cm}|}{--}          & -- \\ \hline
\multicolumn{1}{|p{2cm}|}{Delta-beta dPACz}                            & L & \multicolumn{1}{p{2cm}|}{-.071 ± .018} & -.005 ± .018 & \multicolumn{1}{p{2cm}|}{.148 ± .017}            & .014 ± .016 & \multicolumn{1}{p{2cm}|}{-.008 ± .016}       & -.028 ± .011 & \multicolumn{1}{p{2cm}|}{--}          & -- \\ \cline{2-10} 
\multicolumn{1}{|p{2cm}|}{}                                            & R & \multicolumn{1}{p{2cm}|}{-.039 ± .016} & -.028 ± .016 & \multicolumn{1}{p{2cm}|}{.031 ± .015}            & .181 ± .021 & \multicolumn{1}{p{2cm}|}{.019 ± .019}        & .016 ± .026  & \multicolumn{1}{p{2cm}|}{.026 ± .021} & -- \\ \hline
\end{tabular}
\end{table}
\end{landscape}

This is my current result enter image description here

It appears that the texts are overlapped, and only the texts in the bottom row were wrapped.

Can anyone shed some light on this? Thank you all!



Related Questions


Updated June 07, 2015 04:10 AM

Updated March 20, 2017 02:23 AM

Updated May 14, 2017 19:23 PM

Updated December 24, 2016 07:40 AM

Updated February 22, 2017 20:23 PM