Do take some time to master the structure (and syntax) of longtable
environments:
- Don't use
tabular
environments inside a longtable
environment. Really: don't do it.
- Don't use
center
environments inside a longtable
environment -- it's automatically centered (assuming it's not wider than \linewidth
by design or accident...)
- The full width of your
tabular
is not \linewidth
but \linewidth + 4\tabcolsep + 3\arrayrulewidth
. That's not the intention, is it?
- A
longtable
doesn't float -- the [H]
positioning specifier doesn't do anything at all (other than clutter up the code)
The following may be a useful starting point for further refinements. Note how (a) I've separated out the header, the footer, and the body of the longtable
and (b) provided calculations for the usable widths of the two columns.
\documentclass{article}
\usepackage{longtable,url}
\begin{document}
\section{System}
\begin{longtable}{|p{\dimexpr0.2\linewidth-2\tabcolsep-1.5\arrayrulewidth\relax}|
p{\dimexpr0.8\linewidth-2\tabcolsep-1.5\arrayrulewidth\relax}|}
%% define the header
\hline
%\rowcolor{cyan}
\textbf{field} & \textbf{value}\\
\hline
\endhead
%% define the footer
\hline
\multicolumn{1}{c}{}\\ % blank line
\caption{Funtoo Details}
\label{Funtoo Details}
\endfoot
%% body of table
website & \url{http://www.funtoo.org} \\
website & \url{http://www.funtoo.org} \\
website & \url{http://www.funtoo.org} \\
website & \url{http://www.funtoo.org} \\
website & \url{http://www.funtoo.org} \\
\end{longtable}
\end{document}
longtable
you do not needtabular
, please check the documentation withtexdoc longtable
... Welcome to TeX.SE!