I need to have a long table with 7 columns so I chose the landscape format. Everything is working just fine except the text of the last column which is not sitting in the right place. I can't understand why the text is not respecting the margins of the page (the text that I wrote after the table is). In the picture, there's an example of this.
Here are a few lines of the code to reproduce the problem:
\documentclass{report}
\usepackage{array}
\usepackage{pdflscape}
\usepackage{colortbl}
\usepackage{longtable}
\begin{document}
\begin{landscape}
\footnotesize
\begin{longtable}
{>{\centering\hspace{0pt}}m{0.055\linewidth}>
{\centering\hspace{0pt}}m{0.06\linewidth}>
{\centering\hspace{0pt}}m{0.22\linewidth}>
{\centering\hspace{0pt}}m{0.04\linewidth}>
{\centering\hspace{0pt}}m{0.15\linewidth}>
{\centering\hspace{0pt}}m{0.05\linewidth}>
{\centering\arraybackslash\hspace{0pt}}m{0.3\linewidth}}
\caption{EEG table} \\
\label{tab:EEG}
\textbf{} & \textbf{Cohort} & \textbf{MI Task} & \textbf{NC} &
\textbf{Network Nodes} & \textbf{Metrics} & \textbf{Main Findings}
\endfirsthead
\multicolumn{7}{c}%
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
\\
\textbf{} & \textbf{Cohort} & \textbf{MI Task} & \textbf{NC}
& \textbf{Network Nodes} & \textbf{Metrics} & \textbf{Main Findings}\\ \hline
\endhead
\hline
\multicolumn{7}{>{\centering\arraybackslash\hspace{0pt}}m{1.089\linewidth}}
{{\cellcolor[rgb]{0.714,0.714,0.714}}\textbf{Effective Connectivity}}
\\
\hline
\rowcolor[rgb]{0.871,0.871,0.871} Vukelić, Mathias et al. (2014) & 16 HS & kinesthetic imagination of opening the right hand; each trial consisted of a preparation (2s), MI (6s), and rest (8s) phase & 32 & 24 electrodes as nodes & PSI & activation of an ipsilateral sensorimotor–parietal EC network is an indicator of a low ability for regional sensorimotor $\beta$-modulation \\
Yi, Weibo et al. (2014) & 10 HS & imagine left hand, right hand, feet, both hands and hand combined with foot movements; each trial consisted of a preparation cue (1s), MI (4s) and rest (1s) phase & 64 & 21 electrodes as nodes & \textcolor{red}{PLV}, SDTF & findings imply that there exist apparent intrinsic distinctions of neural mechanism between simple and compound limb MI, which presents a more complex EC network and may involve a more complex cognitive process during information processing \\
\rowcolor[rgb]{0.871,0.871,0.871} Liang, Shuang et al. (2016) & 9 HS & imagination of movement of the left hand, right hand, both feet and tongue; each trial consisted of a cue (1.25s), MI (3s, no feedback was provided) and rest (1.5s) phase & 22 & 9 electrodes used as nodes & PDC & significant EC exists in the bilateral hemisphere during the tasks, regardless of the left or right-hand MI tasks. Furthermore, the out-in rate results of the information flow reveal the existence of contralateral lateralisation; \textcolor{red}{using PDC to compute EC provides efficient features for the detection of MI tasks and has great potential to be applied in BCIs}
\end{longtable}
\textbf{Abbreviations:}
\textbf{ADTF} Adaptive Directed Transfer Function,
\textbf{BCI} Brain Computer Interface,
\textbf{CCorr} Cross Correlation,
\textbf{CMA} Cingulate Motor Areas,
\textbf{Coh} Coherence,
\textbf{Corr} Correlation,
\textbf{DCM} Dynamic Causal Modelling
\end{landscape}
\end{document}
\documentclass ...
and end with\end{document}
which reproduce your problem. With your first code fragment is not possible to reproduce shower result, the second fragment is not compilable, So it is not clear what is your problem.\usepackage{array} \usepackage{pdflscape} \usepackage{colortbl} \usepackage{longtable}
\documentclass{report}
and then the\begin{document}
and the piece of code that I have in my question and the problem remains