I have a table whose text is unfortunately a bit longer and does not fit on one page. For this reason I would like to repeat the table on the second page.
I looked at Tabularx: Break long tables over several pages It does not work. The text is still only on one page. How can I make the table repeat itself on the second page?
Also the problem is the hyphenation and spacing. As can be seen here, the text was set with syllables although there was still plenty of space.
\documentclass[12pt]{report}
\usepackage[usegeometry]{typearea}% load before geometry
\usepackage[a4paper, left={2.5cm}, right={2cm}, top={3cm}, bottom={3cm}, headheight=15pt]{geometry}
\usepackage{tabularx}
% \renewcommand\tabularxcolumn[1]{m{#1}} % for vertical centering text in X column %-----> commented
\usepackage{caption}
\usepackage{pdflscape}
\captionsetup[table]{position=bottom}
\usepackage{fancyhdr}
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyhead[L]{\nouppercase{\leftmark}}%
\fancyfoot[R]{\thepage}}
\pagestyle{plain}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}}
\usepackage[parfill]{parskip}
\usepackage{float} %----> added
\usepackage{tabularx}
\usepackage{ltablex}
\usepackage{ltablex}
\usepackage{longtable}
\usepackage{lipsum} % just for dummy text- not needed for a longtable
\begin{document}
\lipsum[1-6]
\begin{landscape}
\setlength{\tabcolsep}{0.5em} % for the horizontal padding
{\renewcommand{\arraystretch}{1.2}% for the vertical padding
\begin{table}[H]
\caption[Name]{Überblick der Phasen des CRISP-DM Prozesses~\cite{PeterChapmanandJanetClintonandRandyKerberandTomKhabazaandThomasP.ReinartzandColinShe.2000}}
\label{tab:crisp__ueberblick}
\begin{tabularx}{\textwidth}{|X|X|X|X|X|X|}
\hline %-----> added
\multicolumn{1}{|c|}{\textbf{BusinessUnderstanding}} & \multicolumn{1}{c|}{\textbf{Data Understanding}} & \multicolumn{1}{c|}{\textbf{Data Prepartion}} & \multicolumn{1}{c|}{\textbf{Modeling}} & \multicolumn{1}{c|}{\textbf{Evaluation}} & \multicolumn{1}{c|}{\textbf{Deployment}}
\ \hline
Geschäftsziele festlegen \newline
Hintergrund \newline
Unternehmensziele \newline
Erfolgskriterien für das Unternehmen \newline
Situation bewerten
Bestandsaufnahme der Ressourcen
Erfordernisse
Annahmen und Beschränkungen
Risiken und Zufälligkeiten
Terminologie
Kosten und Nutzen
Bestimmen der Data-Mining-Ziele
Data-Mining-Ziele
Data Minig Erfolgskriterien
Projektplan erstellen
Projektplan
Erste Bewertung von Tools und Techniken
& This is another long text what a long text is that \newline And agian an new line
& sad
& asd
& aa
& adasd
\\ \hline
\end{tabularx}
\end{table}
}
\end{landscape}
\lipsum[1-6]
\end{document}
with xltabular
\documentclass[12pt]{report}
\usepackage[usegeometry]{typearea}% load before geometry
\usepackage[a4paper, left={2.5cm}, right={2cm}, top={3cm}, bottom={3cm}, headheight=15pt]{geometry}
\usepackage{tabularx}
% \renewcommand\tabularxcolumn[1]{m{#1}} % for vertical centering text in X column %-----> commented
\usepackage{caption}
\usepackage{pdflscape}
\captionsetup[table]{position=bottom}
\usepackage{fancyhdr}
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyhead[L]{\nouppercase{\leftmark}}%
\fancyfoot[R]{\thepage}}
\pagestyle{plain}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}}
\usepackage[parfill]{parskip}
\usepackage{xltabular}
\usepackage{float} %----> added
\usepackage{lipsum} % just for dummy text- not needed for a longtable
\begin{document}
\lipsum[1-6]
\begin{landscape}
\setlength{\tabcolsep}{0.5em} % for the horizontal padding
{\renewcommand{\arraystretch}{1.2}% for the vertical padding
\begin{table}[H]
\caption[Name]{Überblick der Phasen des CRISP-DM Prozesses~\cite{PeterChapmanandJanetClintonandRandyKerberandTomKhabazaandThomasP.ReinartzandColinShe.2000}}
\label{tab:crisp__ueberblick}
\begin{xltabular}{\textwidth}{|X|X|X|X|X|X|}
\hline \multicolumn{1}{|c|}{\textbf{BusinessUnderstanding}} & \multicolumn{1}{c|}{\textbf{Data Understanding}} & \multicolumn{1}{c|}{\textbf{Data Prepartion}} & \multicolumn{1}{c|}{\textbf{Modeling}} & \multicolumn{1}{c|}{\textbf{Evaluation}} & \multicolumn{1}{c|}{\textbf{Deployment}}
\endfirsthead
\multicolumn{6}{c}%
{\tablename\ \thetable{}: -- continued from previous page} \\
\hline \multicolumn{1}{|c|}{\textbf{BusinessUnderstanding}} & \multicolumn{1}{c|}{\textbf{Data Understanding}} & \multicolumn{1}{c|}{\textbf{Data Prepartion}} & \multicolumn{1}{c|}{\textbf{Modeling}} & \multicolumn{1}{c|}{\textbf{Evaluation}} & \multicolumn{1}{c|}{\textbf{Deployment}}
\endhead
\multicolumn{6}{|r|}{{Continued on next page...}} \\
\endfoot
\hline
\endlastfoot
Geschäftsziele festlegen \newline
Hintergrund \newline
Unternehmensziele \newline
Erfolgskriterien für das Unternehmen \newline
Situation bewerten
Bestandsaufnahme der Ressourcen
Erfordernisse
Annahmen und Beschränkungen
Risiken und Zufälligkeiten
Terminologie
Kosten und Nutzen
Bestimmen der Data-Mining-Ziele
Data-Mining-Ziele
Data Minig Erfolgskriterien
Projektplan erstellen
Projektplan
Erste Bewertung von Tools und Techniken
& This is another long text what a long text is that \newline And agian an new line
& sad
& asd
& aa
& adasd
\\ \hline
\end{xltabular}
\end{table}
}
\end{landscape}
\lipsum[1-6]
\end{document}




xltabular, which brings the functionalities oflongtabletotabularx? – Bernard Jun 05 '22 at 15:52xltabularI changed\begin{tabularx}to\begin{xltabular}. Maybe I did it wrong too. – Test Jun 05 '22 at 15:54endhead, \endfirsthead, &c.). This being said, you can break a longtable within a cell – only between rows. – Bernard Jun 05 '22 at 15:57