Instead of specifying the width of each column in a longtable (see below), is there a way to get it to automatically adjust its size so that it matches the text width, but does not go into the margins?
\floatsetup[longtable]{LTcapwidth=\textwidth}
\scriptsize
\begin{longtable}[c]
{p{0.045\textwidth}p{0.045\textwidth}p{0.045\textwidth}p{0.045\textwidth}p{0.045\textwidth}p{0.05\textwidth}p{0.045\textwidth}p{0.045\textwidth}p{0.045\textwidth}p{0.045\textwidth} p{0.045\textwidth} p{0.045\textwidth} p{0.045\textwidth}}
\caption{Insert caption here}
\hline \multicolumn{13}{c} %Removed code for 13 column multiple page table%
\end{longtable}
\documentclass...
and ending with\end{document}
. welcome to tex.se!ltablex
package. Or you could use\begin{longtable}[c]{*{13}{p{\dimexpr0.0768\textwidth-2\tabcolsep}}}
if all your 13 columns are equally wide.xltabular
package.*{13}{p{\dimexpr\textwidth/13-2\tabcolsep\relax}}
?