I'd like to label a table without putting it into a table environment. From this I know that this wont work, but the solution offered there does not work either, because, if I put my table (tabularx) inside a table environment, the table does not continue on the next page but gives an overfull vbox error... How do you solve such problems? Thanks for any help!
This is the script I use:
\documentclass{article}
\usepackage{booktabs, tabularx, array}
\newcolumntype{s}[1]{>{\hsize=#1\hsize}X}
\begin{document}
\begin{tabularx}{\linewidth}{
@{}
s{0.5}
s{2}
>{\raggedright\arraybackslash}s{0.5}
@{}
}
\label{tab:primer}
\caption[blabla]{blablabla}\\
\toprule
\textbf{Number} & \textbf{Sequence (5' $\rightarrow$ 3')} & \textbf{Application}\\[6pt]
\midrule
\endfirsthead
\toprule
\textbf{Number} & \textbf{Sequence (5' $\rightarrow$ 3')} & \textbf{Application}\\[6pt]
\midrule
\endhead
1 & 2 & 3\\
\end{tabularx}
\end{document}




tabularxenvironment (ii) label had to be aftercaption, (iii) you can usecaptionof{figure}{...}for caption. For this you need to load thecaptionor thecapt-ofpackage. – Zarko Aug 26 '19 at 14:38