我有一张如下所示的表格,但是当我编译它时,我收到了这样的警告
LaTeX 警告:输入行 1125 处的浮动对于页面来说太大,为 18.73247pt。
我搜索过相关问题,但没有找到
\begin{table}[!ht]
\setlength{\tabcolsep}{3pt} % Default value: 6pt \begin{table}[!ht]
%\centering
\renewcommand{\arraystretch}{0.95}
\begin{tabular}{@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}}
\hline
\texttt{Objects Name}&\texttt{Vsys(I)}&\texttt{Vsys(II)}&\texttt{OffsetI} &\texttt{OffsetII}&\texttt{VmaxI}&\texttt{VmaxII}&\texttt{Vesc} \\
\texttt{}&\texttt{(km/s)}&\texttt{(km/s)}&\texttt{(km/s)}&\texttt{(km/s)}&\texttt{(km/s)}&\texttt{(km/s)}&\texttt{(km/s)}\\
\texttt{(1)}&\texttt{(2)}&\texttt{(3)}&\texttt{(4)}&\texttt{(5)}&\texttt{(6)}&\texttt{(7)}&\texttt{(8)}\\
\hline \hline
text &14431.78& & 17.35 & & 178.6 & &459 \\
\hline
\end{tabular}
\caption*{Notes-col(1):Name of target,col(2 and 3):the systemic velocity V\textsubscript{sys} of the galaxy for the two methods,method I and method 2 ,col(4 and 5):Offset velocities $\Delta$V and ,col(6 and 7): maximum velocities,col(8):escape velocity.Note:I and II indicates the two methods where V\textsubscript{sys} estimated from the continuum and from the rotation curve respectively.}
\label{calculated}
\end{table}
答案1
警告
LaTeX 警告:输入行 1125 处的浮动对于页面来说太大,为 18.73247pt。
简单来说,浮动(在您的情况下是表格)太长,无法完全容纳在一页上。您提供的代码不会导致此错误,但请参见以下 MWE(我添加了包showframe
以可视化输入区域和边距,并添加了更多表格行以使表格覆盖整个页面):
\documentclass{article}
\usepackage{showframe}
\begin{document}
\begin{table}[!ht]
\setlength{\tabcolsep}{3pt} % Default value: 6pt \begin{table}[!ht]
%\centering
\renewcommand{\arraystretch}{0.95}
\caption*{Notes-col(1): Name of target, col(2 and 3): the systemic velocity V\textsubscript{sys} of the galaxy for the two methods, method I and method 2, col(4 and 5): Offset velocities $\Delta$V and, col(6 and 7): maximum velocities, col(8): escape velocity. Note: I and II indicates the two methods where V\textsubscript{sys} estimated from the continuum and from the rotation curve respectively.}
\label{calculated}
\begin{tabular}{@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}l@{\hspace{2mm}}}
\hline
\texttt{Objects}&\texttt{Vsys(I)}&\texttt{Vsys(II)}&\texttt{OffsetI} &\texttt{OffsetII}&\texttt{VmaxI}&\texttt{VmaxII}&\texttt{Vesc} \\
\texttt{Name}&\texttt{(km/s)}&\texttt{(km/s)}&\texttt{(km/s)}&\texttt{(km/s)}&\texttt{(km/s)}&\texttt{(km/s)}&\texttt{(km/s)}\\
\texttt{(1)}&\texttt{(2)}&\texttt{(3)}&\texttt{(4)}&\texttt{(5)}&\texttt{(6)}&\texttt{(7)}&\texttt{(8)}\\
\hline \hline
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
text &14431.78& & 17.35 & & 178.6 & &459 \\
\hline
\end{tabular}
\end{table}
\end{document}
现在我们收到警告
LaTeX 警告:输入行 61 处的浮动对于页面来说太大,为 12.44225pt。
并且可以在生成的 pdf 中看到问题:
您会看到有一行超出了输入区域。因此,您必须缩短一行的数据或标题,或者将表格分成两部分,或者简单地使用longtable
环境table
……tabular
您更喜欢哪种解决方案?