双列模式下,表格太长

双列模式下,表格太长

我的文章是双列模式的,表格太长,单列就超出了页面长度,怎么让它自动推到第二列,出现这个警告:LaTeX: Float too large for page by 39.31897pt。

\begin{table}[htbp]
\caption{NOTATIONS}
\label{notationTable}
\begin{tabular}{lp{5cm}}
    \hline
    Notation        & Definition\\ \hline
    $n$             & Number of users/tasks\\
    .......
    long long content.............
    ......   
\end{tabular}
\end{table}

答案1

您可以longtblr使用tabularray

\documentclass[twocolumn]{article}
\usepackage{tabularray}
\usepackage{mwe}% <-- for testing purpose only
\begin{document}
\blindtext% <-- for testing purpose only
\begin{longtblr}[
  caption={NOTATIONS},
  label={notationTable},
  ]{
  colspec={lp{5cm}},
  hline{1,2}={solid},
  rowhead=1,
  row{1}={abovesep=3pt},
  }
  Notation        & Definition\\ 
  $n$             & Number of users/tasks\\
  $a$             & something\\
  $b$             & something\\
  $c$             & something\\
  $d$             & something\\
  $e$             & something\\
  $f$             & something\\
  $g$             & something\\
  $h$             & something\\
  $i$             & something\\
  $j$             & something\\
  $k$             & something\\
  $l$             & something\\
  $m$             & something\\
  $n$             & something\\
  $o$             & something\\
  $p$             & something\\
  $q$             & something\\
  $r$             & something\\
  $s$             & something\\
  $t$             & something\\
  $u$             & something\\
  $v$             & something\\
  $w$             & something\\
  $x$             & something\\
  $y$             & something\\
  $z$             & something\\
\end{longtblr}
\blindtext% <-- for testing purpose only
\end{document}

在此处输入图片描述

相关内容