If I make longtable, how can I remove the spacing between preceding text and it? Tabular doesn't have this spacing.
This example should make clear to you what I'm asking:
\documentclass[a4paper]{article}
\usepackage[margin = 5mm]{geometry}
\usepackage{longtable}
\begin{document}
\centering
Can you see how little vertical space there is between this line and the table down here \ldots\\
\begin{tabular}{|c|c|c|c|}
\hline
0 & 1 & 2 & 3 \tabularnewline
\hline
4 & 5 & 6 & 7 \tabularnewline
\hline
8 & 9 & 0 & 1 \tabularnewline
\hline
2 & 3 & 4 & 5 \tabularnewline
\hline
6 & 7 & 8 & 9 \tabularnewline
\hline
\end{tabular}\\
\vspace{3cm}
\ldots compared to this line and this table?\\
\begin{longtable}{|c|c|c|c|}
\hline
0 & 1 & 2 & 3 \tabularnewline
\hline
4 & 5 & 6 & 7 \tabularnewline
\hline
8 & 9 & 0 & 1 \tabularnewline
\hline
2 & 3 & 4 & 5 \tabularnewline
\hline
6 & 7 & 8 & 9 \tabularnewline
\hline
\end{longtable}
\end{document}

\setlength\LTpre{0pt}(but never end a paragraph with\\so remove the\\before longtable) – David Carlisle Mar 31 '18 at 14:31