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}
Best Answer
This uses the same approach as Zarko and Skillmon, but uses a length register to avoid repeating the calculation 13 times.
There is an automatic gap of
\tabcolsep
on the edges, which can be removed thusly.