I have a table composed of 2 subtables. I would like to be able to break the table to display the subtables on different pages. It seems it is not working like subfigures and \ContinuedFloat
as it it presented here. It seems to me that the \longtable
environment is not suited for that purpose either.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{subcaption}
\begin{document}
\begin{table}[!h]
\caption{General caption. \label{tab:mytable}
\begin{subtable}{1\textwidth}
\caption{Caption subtable 1}\label{cst1}
\centering
\begin{tabular}{l|l|}
Name & Description\\
\hline
a & This is a \\
b & This is b \\
\end{tabular}
\end{subtable}
\vspace{1cm}
\begin{subtable}{1\textwidth}
\caption{Caption subtable 2}\label{cst2}
\centering
\begin{tabular}{l|l|}
Name & Description\\
\hline
c & This is c \\
d & This is d \\
\end{tabular}
\end{subtable}
\end{table}
\end{document}