긴 테이블의 셀 아래로 넘쳐나는 큰 텍스트 + Overfull \ vbox가있는 다중 행
저는 LaTeX를 처음 접했고 LaTeX에서 큰 텍스트를 포함하는 테이블을 작성하는 데 정말 어려움을 겪고 있습니다.
내 목표는 7 열 x 17 행 테이블을 그리는 것입니다. 각 행은 2 ~ 4 열에 걸쳐있는 2 행 다중 행으로 세분화됩니다. 5, 6, 7 열의 일부 셀은 반복되는 텍스트를 줄이기 위해 두 행에 걸쳐 있습니다 (아래 이미지 참조).
테이블이 너무 커서 한 페이지에 맞지 않기 때문에 longtable 패키지를 사용하고 있으며 테이블의 모양을 조정하기 위해 lscape (가로), 배열 및 다중 행 패키지를 추가로 사용 하여 모양을 조정하고 있습니다. 테이블 및 일부 다중 열 셀의 배열에 사용됩니다.
문제는 큰 텍스트를 포함하는 일부 셀이 행의 높이를 늘리는 대신 아래 셀로 넘쳐난다는 것입니다. 이 문제는 multirow{}{}{}
명령을 사용하지 않을 때 발생하지 않는 것 같습니다 .
이 포럼과 다른 포럼에서 솔루션을 광범위하게 검색하고 앞서 언급 한 패키지 설명서 ( 표 형식 등) 도 훑어 봤지만 내가 인정하는 것보다 더 많은 탭을 연 후에 포기합니다. 제안 사항은 테이블의 전체 디자인을 변경하거나 더 작은 열 단위로 나누는 것일 수 있지만 선택의 여지가 없습니다. 테이블은 Excel에서 내 보낸 후 PDF에서 괜찮아 보이므로 \includepdf
패키지 pdfpages 에서 사용할 수 있지만 이것은 최후의 수단이 될 것입니다.
아래 이미지는 Excel에서 테이블의 처음 몇 행이 어떻게 보이는지에 대한 샘플입니다.

아래 MWE는 패키지 lipsum을 간헐적으로 사용하여 더미 자리 표시 자 텍스트를 생성합니다 (원본 대신).
\documentclass{article}
\usepackage{longtable}
\usepackage{array}
\usepackage{multirow}
\usepackage[left=2.00cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry}
\usepackage{lscape}
\usepackage{lipsum} % For dummy text
\begin{document}
\newcommand\columnA{0.2\textwidth}
\newcommand\columnB{0.11\textwidth}
\newcommand\columnC{0.13\textwidth}
\newcommand\columnD{0.13\textwidth}
\newcommand\columnE{0.13\textwidth}
\newcommand\columnF{0.3\textwidth}
\newcommand\columnG{0.13\textwidth}
\begin{landscape}
\begin{small}
\begin{longtable}[c]{@{\extracolsep{\fill}}
>{\raggedright\arraybackslash}m{\columnA}
>{\centering\arraybackslash}m{\columnB}
>{\centering\arraybackslash}m{\columnC}
>{\centering\arraybackslash}m{\columnD}
>{\centering\arraybackslash}m{\columnE}
>{\centering\arraybackslash}m{\columnF}
>{\centering\arraybackslash}m{\columnG}
@{}}
\caption{A very big ugly table.\label{table1}}\\
\multirow{2}{\columnA}{\textbf{Study design}} & \multicolumn{3}{c}{\textbf{Participants}} & \multirow{2}{\columnE}{\textbf{Device name (Control options)}} & \multirow{2}{\columnF}{\textbf{User-environment interaction}} & \multirow{2}{\columnG}{\textbf{Type of outcomes assessed}} \\ \cline{2-4}
& \textbf{N} & \textbf{Description*} & \textbf{Diagnosis} & & & \\ \hline
\multicolumn{7}{c}{\textbf{Some category here}} \\ \hline
\endfirsthead
% additional pages' table head rows go here
\endhead
% additional pages' table foot rows go here...
\endfoot
\hline
\multicolumn{7}{l}{Table foot row 1}\\
\multicolumn{7}{l}{* Another foot row 2 \lipsum[10][2] }\\
\endlastfoot
\multirow{2}{\columnA}{Row 1 \lipsum[1][1]} & \textbf{Cases: 4} & \lipsum[1][2] & \lipsum[1][3] & \multirow{2}{\columnE}{\lipsum[1][4]} & \multirow{2}{\columnF}{\lipsum[1][5]} & \multirow{2}{\columnG}{\lipsum[1][6]} \\
& \textbf{Controls: 4} & Not reported & Just three words & & & \\
\multirow{2}{0.2\textwidth}{Row 2 \lipsum[2][1-2]} & \textbf{Cases: 10} & \lipsum[2][2] & \lipsum[2][3] & \multirow{4}{\columnE}{Quite long multirow tex:t \lipsum[2][4]} & \multirow{4}{\columnF}{Super long text \lipsum[2][1-15]} & \multirow{2}{\columnG}{\lipsum[2][6]} \\
& \textbf{Controls: -} & - & - & & & \\
\multirow{2}{\columnA}{Row 3 \lipsum[3][1]} & \textbf{Cases: 1} & two words & some more & & & \multirow{2}{\columnE}{Not that many words here either} \\
& \textbf{Controls: -} & - & - & & & \\
\multirow{2}{\columnA}{Row 4 \lipsum[4][1]} & \textbf{Cases: 9} & \lipsum[4][5] & Good & \multirow{2}{\columnE}{Couple of words} & \multirow{4}{\columnF}{Another short phrase with few words} & \multirow{2}{\columnG}{Yet another short text \& Only two words} \\
& \textbf{Controls: 20} & \lipsum[4][7] & Two words again & & & \\
\multirow{2}{\columnA}{Row 5 \lipsum[5][1-3]} & \textbf{Cases: 4} & something short & Bad & \multirow{2}{\columnE}{Something relatively short but not tiny} & & \multirow{2}{\columnG}{Again, something not that long} \\
& \textbf{Controls: -} & - & - & & & \\
\multirow{2}{\columnA}{Row 6 \lipsum[6][1]} & \textbf{Cases: 3} & \lipsum[6][2] & \lipsum[6][3] & \multirow{2}{\columnE}{\lipsum[6][4]} & \multirow{2}{\columnF}{\lipsum[6][5-10]} & \multirow{2}{\columnG}{Learning skills} \\
& \textbf{Controls: 3} & Short text & A few words & & & \\
\end{longtable}
\end{small}
\end{landscape}
\end{document}
그리고 이것은 출력입니다.

나는 이것들과 다른 많은 유사한 질문들로부터 해결책을 시도했지만 어떤 작업 해결책도 재현 할 수 없었고 또는 나는 컴파일 오류를 발견하고 더 이상 토끼 구멍 아래로 내려갈 수 없다는 점에 도달했습니다.
longtable에서 단어 줄 바꿈 된 열이있는 다중 행
긴 텍스트가있는 일부 셀이있는 테이블을 구현하는 방법은 무엇입니까?
여러 행 텍스트를 가운데에 배치하고 페이지가 나눌 때 longtabu의 각 페이지에 배치
나는 여기에 새로 왔기 때문에 내가 게시물을 작성한 방식이나 질문 자체에 대한 비판은 환영하며 필요한 경우 기꺼이 다시 편집 할 것입니다. 미리 감사드립니다!
답변
- 제안 된 솔루션 모방
excel
이미지 (이 복잡한 구조화 된 dtable에서는 의미가 있음) - 대신
m{...}
열 유형 차라리 사용하는 것이 좋습니다p{...}
유형을 - 일부 셀에서는 다소 길고 여러 줄의 텍스트이므로 더 작은 글꼴 크기를 사용하는 것이 좋습니다.
\small
- 수평 규칙이 사용됩니다에 대한
Xhline
및Xcline
규칙은 makecell 패키지로 정의 - 셀 내용 주위에 더 많은 수직 공간
\makegapedcells
을 위해makecell
패키지에 정의 된 매크로가 사용 됩니다. - 대신 열 유형 및 너비에 대해 정의 된 명령이 정의되어 테이블 너비의 단순 규정 공유를 가능하게하는 새로운 열 유형이 정의됩니다 (가로 방향에서는으로 간주 됨
\textheight
). - 빈 셀에 높이를 정의하는 규칙이 삽입됩니다 (아래 MWE 참조).
- 대한
multirow
세포 sinax 간주됩니다\multirow[t]{<number of spanned lines>}{=}{<content>}
\multicolumn{7}{|c|}{\textbf{Some category}}
각 헤더에 대소 문자가 고정 된 표 헤더의 일부이거나 적절한 텍스트가있는 표의 아무 곳에 나 삽입 할 수있는 경우 셀 이 명확하지 않습니다 (MWE에서는 이전 케이스로 간주 됨).
MWE :
\documentclass{article}
\usepackage[margin=2cm]{geometry}
\usepackage{ragged2e}
\usepackage{array, longtable,
makecell, % new
multirow}
\renewcommand\theadfont{\footnotesize\bfseries}
\renewcommand\theadgape{}
\newcolumntype{L}[1]{>{\RaggedRight\hspace{0pt}}p{\dimexpr#1\linewidth-2\tabcolsep-\arrayrulewidth}}
\usepackage{pdflscape}
\usepackage{lipsum} % For dummy text
\begin{document}
\begin{landscape}
\vfil
\setcellgapes{3pt}
\makegapedcells
\small\linespread{0.84}\selectfont % <---
\setlength\tabcolsep{2pt}
\begin{longtable}[c]{|
L{0.13}| L{0.09} | L{0.09}| L{0.08}| L{0.12}| L{0.36}| L{0.13}|
}
\caption{A very big ugly table.}
\label{table1} \\
\Xhline{1.2pt}
\multirow{2.8}{=}{\thead{Study\\ design}}
& \multicolumn{3}{c|}{\thead{Participants}}
& \multirow{2.8}{=}{\thead{Device name\\ (Control options)}}
& \multirow{2.8}{=}{\thead{User-environment\\ interaction}}
& \multirow{2.8}{=}{\thead{Type of outcomes\\ assessed}} \\
\Xcline{2-4}{0.6pt}
& \thead{N}
& \thead{Description*}
& \thead{Diagnosis}
& & & \\
\Xhline{0.6pt}
\multicolumn{7}{c}{\textbf{Some category}} \\
\Xhline{0.6pt}
\endfirsthead
\caption[]{A very big ugly table.} \\
\Xhline{1.2pt}
\multirow{2.8}{=}{\thead{Study\\ design}}
& \multicolumn{3}{c|}{\thead{Participants}}
& \multirow{2.8}{=}{\thead{Device name\\ (Control options)}}
& \multirow{2.8}{=}{\thead{User-environment\\ interaction}}
& \multirow{2.8}{=}{\thead{Type of outcomes\\ assessed}} \\
\Xcline{2-4}{0.6pt}
& \thead{N}
& \thead{Description*}
& \thead{Diagnosis}
& & & \\
\Xhline{0.6pt}
\multicolumn{7}{c}{\textbf{Some category}} \\
\Xhline{0.6pt}
\endhead
\multicolumn{7}{r}{\footnotesize\itshape{Continue is on the next page}} %?
\endfoot
\Xhline{1.2pt}
\endlastfoot
% table body
\multirow[t]{5}{=}{Row 1 \lipsum[1][1]}
& \textbf{Cases: 4}
& \lipsum[1][2]
& \lipsum[1][3]
& \lipsum[1][4]
& \lipsum[1][5]
& \multirow[t]{5}{=}{\lipsum[1][6]} \\
\Xcline{2-4}{0.6pt}
& \textbf{Controls: 4}
& Not reported
& Just three words
& & & \\
\Xhline{0.6pt}
\multirow[t]{8}{=}{Row 2 \lipsum[2][1-2]}
& \textbf{Cases: 10}
& \lipsum[2][2]
& \lipsum[2][3]
& \multirow[t]{22}{=}{Quite long multi line text \lipsum[2][4]}
& \multirow[t]{11}{=}{Super long text \lipsum*[2][1-15]}
& \multirow[t]{7}{=}{\lipsum[2][6]} \\
\Xcline{2-4}{0.6pt}
& \textbf{Controls: -}
& \hfil ---
& \hfil \centering ---
& & & \\
\Xcline{1-4}{0.6pt}
\Xcline{7-7}{0.6pt}
\multirow[t]{2}{=}{Row 3 \lipsum[3][1]}
& \textbf{Cases: 1}
& two words
& some more
& & & \multirow[t]{2}{=}{Not that many words here either} \\
\Xcline{2-4}{0.6pt}
& \textbf{Controls: -}
& \hfil ---
& \hfil ---
& & & \\
\Xhline{0.6pt}
\multirow[t]{3}{=}{Row 4 \lipsum[4][1]}
& \textbf{Cases: 9}
& \lipsum[4][5]
& Good
& Couple of words
& Another short phrase with few words
& \multirow[t]{3}{=}{Yet another short
text \& Only two words} \\
\Xcline{2-4}{0.6pt}
& \textbf{Controls: 20}
& \lipsum[4][7]
& Two words again
& & & \\
\Xhline{0.6pt}
\multirow[t]{8}{=}{Row 5 \lipsum[5][1-3]}
& \multirow{2}{=}{\textbf{Cases: 4}}
& \multirow{2}{=}{something short}
& \multirow{2}{=}{Bad}
& \multirow{2}{=}{Something relatively short but not tiny}
& \rule[-5.5\baselineskip]{0pt}{-0pt} % <--- define empty cell height
& \multirow{2}{=}{Again, something not that long} \\
\Xcline{2-4}{0.6pt}
& \textbf{Controls: -}
& - & - & & & \\
\Xhline{0.6pt}
\multirow[t]{7}{=}{Row 6 \lipsum[6][1]}
& \textbf{Cases: 3}
& \lipsum[6][2]
& \lipsum[6][3]
& \multirow[t]{7}{=}{\lipsum[6][4]}
& \multirow[t]{7}{=}{\lipsum*[6][5-10]}
& \multirow[t]{7}{=}{Learning skills} \\
\Xcline{2-4}{0.6pt}
& {\textbf{Controls: 3}}
& {Short text }
& {A few words }
& & & \\
\end{longtable}
\end{landscape}
\end{document}

최종 형태의 테이블의 경우 longtable
최소 두 번의 기능으로 인해 MWE를 컴파일해야합니다 .
추가:
m{...}
열 유형 을 사용하는 버전입니다 . 여전히makgapedcells
매크로를 사용 하지만 Ulrike Fisher ( patch ) 가 추가 되어m
열 유형 에서 작동 합니다.줄 간 공간이 줄어들 기 때문에이 솔루션에는 상당한 수동 조정이 필요합니다.
\documentclass{article}
\usepackage[margin=2cm]{geometry}
\usepackage{ragged2e}
\usepackage{array, longtable,
makecell, % new
multirow}
\renewcommand\theadfont{\footnotesize\bfseries}
\makeatletter
\renewcommand\mcell@classz{\@classx
\@tempcnta \count@
\prepnext@tok
\@addtopreamble{%\mcell@mstyle
\ifcase\@chnum
\hfil
\mcell@agape{\d@llarbegin\insert@column\d@llarend}\hfil \or
\hskip1sp
\mcell@agape{\d@llarbegin\insert@column\d@llarend}\hfil \or
\hfil\hskip1sp
\mcell@agape{\d@llarbegin \insert@column\d@llarend}\or
\mcell@agape{$\vcenter \@startpbox{\@nextchar}\insert@column\@endpbox$}\or
\mcell@agape{\vtop
\@startpbox{\@nextchar}\insert@column\@endpbox}\or
\mcell@agape{\vbox
\@startpbox{\@nextchar}\insert@column\@endpbox}%
\fi
\global\let\mcell@left\relax\global\let\mcell@right\relax
}\prepnext@tok}
\makeatother
\renewcommand\theadgape{}
\newcolumntype{L}[1]{>{\RaggedRight\hspace{0pt}}m{\dimexpr#1\linewidth-2\tabcolsep-\arrayrulewidth}}
\usepackage{pdflscape}
\usepackage{lipsum} % For dummy text
\begin{document}
\begin{landscape}
\vfil
\setcellgapes{3pt}
\makegapedcells
\small\linespread{0.84}\selectfont % <---
\setlength\tabcolsep{2pt}
\begin{longtable}[c]{|
L{0.13}| L{0.09} | L{0.09}| L{0.08}| L{0.12}| L{0.36}| L{0.13}|
}
\caption{A very big ugly table.}
\label{table1} \\
\Xhline{1.2pt}
\multirow{2.8}{=}{\thead{Study\\ design}}
& \multicolumn{3}{c|}{\thead{Participants}}
& \multirow{2.8}{=}{\thead{Device name\\ (Control options)}}
& \multirow{2.8}{=}{\thead{User-environment\\ interaction}}
& \multirow{2.8}{=}{\thead{Type of outcomes\\ assessed}} \\
\Xcline{2-4}{0.6pt}
& \thead{N}
& \thead{Description*}
& \thead{Diagnosis}
& & & \\
\Xhline{0.6pt}
\multicolumn{7}{c}{\textbf{Some category}} \\
\Xhline{0.6pt}
\endfirsthead
\caption[]{A very big ugly table.} \\
\Xhline{1.2pt}
\multirow{2.8}{=}{\thead{Study\\ design}}
& \multicolumn{3}{c|}{\thead{Participants}}
& \multirow{2.8}{=}{\thead{Device name\\ (Control options)}}
& \multirow{2.8}{=}{\thead{User-environment\\ interaction}}
& \multirow{2.8}{=}{\thead{Type of outcomes\\ assessed}} \\
\Xcline{2-4}{0.6pt}
& \thead{N}
& \thead{Description*}
& \thead{Diagnosis}
& & & \\
\Xhline{0.6pt}
\multicolumn{7}{c}{\textbf{Some category}} \\
\Xhline{0.6pt}
\endhead
\multicolumn{7}{r}{\footnotesize\itshape{Continue is on the next page}} %?
\endfoot
\Xhline{1.2pt}
\endlastfoot
% table body
\multirow{4}{=}{Row 1 \lipsum[1][1]}
& \textbf{Cases: 4}
& \lipsum[1][2]
& \lipsum[1][3]
& \multirow{4}{=}[1ex]{\lipsum[1][4]}
& \multirow{4}{=}{\lipsum[1][5]}
& \multirow{-2}{=}{\lipsum[1][6]} \\
\Xcline{2-4}{0.6pt}
& \textbf{Controls: 4}
& Not reported
& Just three words
& & & \\
\Xhline{0.6pt}
\multirow{-2}{=}[2ex]{Row 2 \lipsum[2][1-2]}
& \textbf{Cases: 10}
& \lipsum[2][2]
& \lipsum[2][3]
& \multirow{-2.4}{=}{Quite long multi line text \lipsum[2][4]}
& \multirow{-3.3}{=}{Super long text \lipsum*[2][1-15]}
& \multirow{3.3}{=}{\lipsum[2][6]} \\
\Xcline{2-4}{0.6pt}
& \textbf{Controls: -}
& \hfil ---
& \hfil \centering ---
& & & \\
\Xcline{1-4}{0.6pt}
\Xcline{7-7}{0.6pt}
\multirow{2}{=}{Row 3 \lipsum[3][1]}
& \textbf{Cases: 1}
& two words
& some more
& & & \multirow{2}{=}{Not that many words here either} \\
\Xcline{2-4}{0.6pt}
& \textbf{Controls: -}
& \hfil ---
& \hfil ---
& & & \\
\Xhline{0.6pt}
\multirow{3}{=}{Row 4 \lipsum[4][1]}
& \textbf{Cases: 9}
& \lipsum[4][5]
& Good
& \multirow{4}{=}{Couple of words}
& \multirow{4}{=}{Another short phrase with few words}
& \multirow{4}{=}{Yet another short
text \& Only two words} \\
\Xcline{2-4}{0.6pt}
& \textbf{Controls: 20}
& \lipsum[4][7]
& Two words again
& & & \\
\Xhline{0.6pt}
\multirow{-3.4}{=}{Row 5 \lipsum[5][1-3]}
& \multirow{2}{=}{\textbf{Cases: 4}}
& \multirow{2}{=}{something short}
& \multirow{2}{=}{Bad}
& \multirow{2}{=}{Something relatively short but not tiny}
& \rule[-5.5\baselineskip]{0pt}{-0pt} % <--- define empty cell height
& \multirow{3}{=}{Again, something not that long} \\
\Xcline{2-4}{0.6pt}
& \textbf{Controls: -}
& - & - & & & \\
\Xhline{0.6pt}
\multirow{4}{=}{Row 6 \lipsum[6][1]}
& \textbf{Cases: 3}
& \lipsum[6][2]
& \lipsum[6][3]
& \multirow{4}{=}{\lipsum[6][4]}
& \multirow{-2}{=}{\lipsum*[6][5-10]}
& \multirow{3}{=}{Learning skills} \\
\Xcline{2-4}{0.6pt}
& {\textbf{Controls: 3}}
& {Short text }
& {A few words }
& & & \\
\end{longtable}
\end{landscape}
\end{document}

이것이 최선의 답이 아닐 수도 있지만 문제가 어디에 있는지 파악하는 데 도움이됩니다.
먼저 booktabs
더 나은 행 간격과 규칙에 항상 유용하며 더 pdflscape
쉬운 디버깅을 위해 모니터에서 가로 테이블을 가로로 볼 수 있도록을 추가했습니다. 또한 \cmidrule{1-7}
Cases 및 Controls 행을 시각적으로 그룹화하기 위해 일부 를 추가했습니다 .
이것은 충분하지 않았기 때문에 수동으로 (여기서는 약점) 더 큰 행의 끝에 수직 공간을 추가했습니다 [70pt]
. 더 나은 해결책이 있는지 모르겠습니다.
마지막으로 \ pagebreak를 추가하여 페이지를 올바른 위치에서 나누고 Cases와 Controls를 함께 유지했습니다 longtable
.
또한 헤더를 일부 정리 p
하고 대부분의 셀에서 텍스트를 위쪽으로 정렬하도록 열 유형을 변경했습니다 .
\documentclass{article}
\usepackage{longtable}
\usepackage{array}
\usepackage{multirow}
\usepackage[left=2.00cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry}
%\usepackage{lscape}
\usepackage{lipsum} % For dummy text
\RequirePackage{pdflscape} % added
\RequirePackage{booktabs} % added
\RequirePackage{bigstrut} % added
\begin{document}
\newcommand\columnA{0.2\textwidth}
\newcommand\columnB{0.11\textwidth}
\newcommand\columnC{0.13\textwidth}
\newcommand\columnD{0.13\textwidth}
\newcommand\columnE{0.13\textwidth}
\newcommand\columnF{0.3\textwidth}
\newcommand\columnG{0.13\textwidth}
\begin{landscape}
\begin{small}
\begin{longtable}[c]{@{\extracolsep{\fill}}
>{\raggedright\arraybackslash}p{\columnA}
>{\centering\arraybackslash}p{\columnB}
>{\centering\arraybackslash}p{\columnC}
>{\centering\arraybackslash}p{\columnD}
>{\centering\arraybackslash}p{\columnE}
>{\centering\arraybackslash}p{\columnF}
>{\centering\arraybackslash}p{\columnG}
@{}}
\caption{A very big ugly table.\label{table1}}\\
\toprule
\multicolumn{1}{c}{\multirow{2}[4]{\columnA}{\textbf{Study design}}} &
\multicolumn{3}{c}{\multirow{2}[-1]{*}{\textbf{Participants}}} &
\multirow{2}[4]{70pt}{\textbf{Device Name (control options)}} &
\multirow{2}[4]{\columnF}{\textbf{User-enviroment interaction}} &
\multirow{2}[4]{\columnG}{\textbf{Type of outcomes assesed}} \bigstrut[t]\\[10pt]
\cline{2-4}
& \textbf{N } & \textbf{Description*} & \textbf{Diagnosis} & & & \bigstrut\\
\midrule
\multicolumn{7}{c}{\textbf{Some category}} \bigstrut[t]\\
\midrule
\endfirsthead
\toprule
\multicolumn{1}{c}{\multirow{2}[4]{\columnA}{\textbf{Study design}}} &
\multicolumn{3}{c}{\multirow{2}[-1]{*}{\textbf{Participants}}} &
\multirow{2}[4]{70pt}{\textbf{Device Name (control options)}} &
\multirow{2}[4]{\columnF}{\textbf{User-enviroment interaction}} &
\multirow{2}[4]{\columnG}{\textbf{Type of outcomes assesed}} \bigstrut[t]\\[10pt]
\cline{2-4}
& \textbf{N } & \textbf{Description*} & \textbf{Diagnosis} & & & \bigstrut\\
\midrule
\multicolumn{7}{c}{\textbf{Some category}} \bigstrut[t]\\
\midrule
\endhead
\multicolumn{7}{r}{\footnotesize \emph{to be continued in the next page \ldots{} }} \\
\endfoot
\bottomrule
\endlastfoot
\multirow{2}{\columnA}{Row 1 \lipsum[1][1]} & \textbf{Cases: 4} & \lipsum[1][2] & \lipsum[1][3] & \multirow{2}{\columnE}{\lipsum[2][4]} & \multirow{2}{\columnF}{\lipsum[2][4]} & \multirow{2}{\columnG}{\lipsum[1][6]} \\ [60pt]
& \textbf{Controls: 4} & Not reported & Just three words & & & \\
\cmidrule{1-7}
\multirow{2}{0.2\textwidth}{Row 2 \lipsum[2][1-2]} & \textbf{Cases: 10} & \lipsum[2][2] & \lipsum[2][3] & \multirow{4}{\columnE}{Quite long multirow tex:t \lipsum[2][4]} & \multirow{4}{\columnF}{Super long text \lipsum[2][1-15]} & \multirow{2}{\columnG}{\lipsum[2][6]} \\[90pt]
& \textbf{Controls: -} & - & - & & & \\ [80pt]
\cmidrule{1-7}
\pagebreak
\multirow{2}{\columnA}{Row 3 \lipsum[3][1]} & \textbf{Cases: 1} & two words & some more & & & \multirow{2}{\columnE}{Not that many words here either} \\[20pt]
\textbf{Controls: -} & - & - & & & \\ [20pt]
\cmidrule{1-7}
\multirow{2}{\columnA}{Row 4 \lipsum[4][1]} & \textbf{Cases: 9} & \lipsum[2][5] & Good & \multirow{1}{\columnE}{Couple of words} & \multirow{1}{\columnF}{Another short phrase with few words} & \multirow{2}{\columnG}{Yet another short text \& Only two words } \\
& \textbf{Controls: 20} & \lipsum[4][7] & Two words again & & & \\[20pt]
\cmidrule{1-7}
\multirow{2}{\columnA}{Row 5 \lipsum[5][1-3]} & \textbf{Cases: 4} & something short & Bad & \multirow{2}{\columnE}{Something relatively short but not tiny} & & \multirow{2}{\columnG}{Again, something not that long} \\[40pt]
& \textbf{Controls: -} & - & - & & & \\[30pt]
\cmidrule{1-7}
\pagebreak
\multirow{2}{\columnA}{Row 6 \lipsum[6][1]} & \textbf{Cases: 3} & \lipsum[6][2] & \lipsum[6][3] & \multirow{2}{\columnE}{\lipsum[6][4]} & \multirow{2}{\columnF}{\lipsum[6][5-10]} & \multirow{2}{\columnG}{Learning skills} \\[60pt]
& \textbf{Controls: 3} & Short text & A few words & & & \\[20pt]
\end{longtable}
\end{small}
\end{landscape}
\end{document}

