I am trying to create a table in a landscape environment containing several subtables which content exceeds one page. Therefore a pagebreak within the table to separate the subtables on multiple pages is necessary.
The main problem here is that I can't use a longtable environment.
I've been using the table environment and putting tabulars inside, but the table environment isn't pagebreaking even using the \ContinuedFloat command.
I've tried using a figure environment and putting tabulars inside, but the figure environment isn't pagebreaking even using the \ContinuedFloat command,
\documentclass{scrartcl}
\usepackage[english,ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{subfig}
\usepackage{lscape}
\usepackage{float}
\usepackage{booktabs}
\usepackage{ltxtable}
\usepackage{tabularx}
\newcolumntype{M}[1]{>{\centering}m{#1}}
\captionsetup[table]{position=top}
\captionsetup[subtable]{position=top}
\begin{document}
\begin{landscape}
\begin{table}[H]
\centering
\caption{caption}
\label{tab:1}
%1
\subfloat[subcaption]{
\begin{tabular}{|M{3cm}|M{3cm}|M{3cm}|M{3cm}|M{3cm}| c| }
\hline
& a & b & c & d & e \\ \hline
i & $5$ & $2$ & $2$ & $5$ & $3,2$ \tabularnewline \hline
ii & $3$ & $3$ & $3$ & $2$ & $2,3$ \tabularnewline \hline
\end{tabular} }
\subref{tab:a}
\qquad
%2
\subfloat[subcaption2]{
\begin{tabular}{|M{3cm}|M{3cm}|M{3cm}|M{3cm}|M{3cm}| c| }
\hline
& f & g & h & i & j \tabularnewline \hline
i & $4$ & $3$ & $3$ & $3$ & $2,125$ \tabularnewline \hline
ii & $4$ & $4$ & $5$ & $4$ & $2,8$ \tabularnewline \hline
\end{tabular} }
\subref{tab:b}
\end{table}
\qquad
\begin{table}[H]
\centering
\ContinuedFloat
\addtocounter{table}{0}
\caption{caption (continued)}
\label{tab:1_continued}
%6
\subfloat[subcaption3]{
\begin{tabular}{|M{3cm}|M{3cm}|M{3cm}|M{3cm}|M{3cm}|c|}
\hline
& k & l & m & n & o \tabularnewline \hline
i & $5$ & $5$ & $5$ & $5$ & $3,75$ \tabularnewline \hline
ii & $4$ & $3$ & $3$ & $3$ & $2,5$ \tabularnewline \hline
\end{tabular} }
\subref{tab:c}
\qquad
\subfloat[subcaption4]{
\begin{tabular}{|M{3cm}|M{3cm}|M{3cm}|M{3cm}|M{3cm}|c|}
\hline
& p & q & r & s & t \tabularnewline \hline
i & $5$ & $5$ & $5$ & $5$ & $3,75$ \tabularnewline \hline
ii & $5$ & $5$ & $3$ & $3$ & $3,15$ \tabularnewline \hline
iii & $3$ & $3$ & $5$ & $5$ & $2,85$ \tabularnewline \hline
\end{tabular} }
\subref{tab:d}
\end{table}
random ref \ref{tab:c}
\end{landscape}
\end{document}
using \newline or \\ between the tabulars gives me:
"There's no line here to end. \newline"
This is what it looks like:
in what ever I've tried so far.





\documentclass, followed by preamble with necessary packages and your definitions, document body with your tables and ending with\end{document}– Zarko Jun 06 '19 at 11:39\ContinuedFloatdoesnt break float environments, it just preserve caption numbering in successive floats (when used correctly). – Zarko Jun 06 '19 at 11:48\subref{tab:1}. However, please first fix your document example. It can not be compiled due to missing packages and errors in preamble as well in document body. Please, make it compilable. – Zarko Jun 06 '19 at 12:28My problem at first was to pagebreak a table. Due to my misunderstanding of \ContinuedFloating i was unable to do so. After splitting my table into 3 tables, i was finally able to do so. Keeping the tablecounter from adding up, i was even able to keep it visually to 1 table.
my problem atm is the reference. When refering to subfloates i keep getting questionmakrs and even the subtables contain questionmarks in the same line as the subcaption..
– Im4X Jun 06 '19 at 13:08