![表格跨越两列,造成太多间隙](https://linux22.com/image/344540/%E8%A1%A8%E6%A0%BC%E8%B7%A8%E8%B6%8A%E4%B8%A4%E5%88%97%EF%BC%8C%E9%80%A0%E6%88%90%E5%A4%AA%E5%A4%9A%E9%97%B4%E9%9A%99.png)
首先,我已经看过与这个问题相关的所有问题,包括表格跨越两列,文本中出现空洞,但他们并没有提供我想要的解决方案。
我尝试过多种解决方案,包括多列、对表使用不同的参数等,但对我而言都没有用。
我出于无奈在这里提出这个问题。
如果您能查看我下面显示的 mwd 并给我一个可能的解决方案,我将不胜感激。我更改了我的实际文件,并将表中的单词替换为“Dummy”,以维护表结构。
使用的 .sty 文件“eacl2017”位于http://eacl2017.org/index.php/calls/call-for-papers在“提交格式”下
\documentclass[11pt]{article}
\usepackage{eacl2017}
\usepackage{times}
\usepackage{url}
\usepackage{latexsym}
\usepackage{verbatim}
\usepackage{enumerate}
\usepackage{multicol, lipsum}
\newcommand\BibTeX{B{\sc ib}\TeX}
\title{Dummy}
\date{}
\begin{document}
\maketitle
\begin{abstract}
\lipsum[1-1]
\end{abstract}
\section{Dummy}
\lipsum[2-4]
\begin{table*}[hbp]
\small
\begin{flushleft}
\caption{\label{table-4} \textit{Dummy for Dummy DummyDummy into Dummy DummyDummyDummy}}
\begin{tabular}{|p{4cm}|p{12cm}|}
\hline
DummyDummyDummy (DummyDummyDummy DummyDummy DummyDummyDummy) & DummyDummyDummy \\
\hline
\vspace{-3.5mm}
\begin{enumerate}[1.]
\setcounter{enumi}{0}
\item DummyDummy DummyDummyDummy (From Dummy)
\end{enumerate}
\vspace{-3.5mm}
&
DummyDummyDummy \\
\hline
\vspace{-3.5mm}
\begin{enumerate}[1.]
\setcounter{enumi}{1}
\item DummyDummyDummy Dummy DummyDummyDummy (From Dummy)
\end{enumerate}
\vspace{-3.5mm}
&
\vspace{-3.5mm}
\begin{enumerate}[I]
\itemsep0em
\item
If DummyDummyDummyDummy DummyDummyDummyDummy, Dummy as Dummy. If not, DummyDummy
\vspace{-2mm}
\begin{enumerate}[i]
\itemsep0em
\item Dummy DummyDummy \textit{DummyDummyDummy}\textsuperscript{5} and Dummy Dummy Dummy \textit{Dummy} Dummy
\item DummyDummyDummy Dummy DummyDummy \textit{Dummy}, or \textit{Dummy}.
\end{enumerate}
\vspace{-2mm}
\item
DummyDummyDummyDummy DummyDummyDummy
\leftskip =0.2in
DummyDummy DummyDummy DummyDummy
\leftskip =0.2in
DummyDummyDummyDummyDummy DummyDummyDummy
Dummy DummyDummy DummyDummy DummyDummyDummy\textsuperscript{3} or Dummy DummyDummyDummy\textsuperscript{2}
DummyDummy DummyDummyDummy
\leftskip=0in
\item
If DummyDummy DummyDummyDummy, DummyDummy.
\leftskip=0.2in
Dummy --- The Dummy doesn`t DummyDummyDummyDummyDummy \textit{Dummy},
such that Dummy Dummy is \textit{Dummy}, DummyDummyDummyDummyDummyDummy
and DummyDummy DummyDummyDummy DummyDummy \textit{Dummy}.
\end{enumerate}
\vspace{-3.5mm}
\\
\hline
\vspace{-3.5mm}
\begin{enumerate}[1.]
\setcounter{enumi}{2}
\item DummyDummy DummyDummy Dummy DummyDummyDummyDummy DummyDummyDummy DummyDummyDummy
\end{enumerate}
\vspace{-3.5mm}
&
\vspace{-3.5mm}
\begin{enumerate}[I]
\itemsep0em
\item DummyDummy Dummy DummyDummyDummyDummy DummyDummy DummyDummy DummyDummyDummyDummy
\item If DummyDummy Dummy DummyDummy DummyDummyDummy, DummyDummyDummyDummy. Else DummyDummy
\vspace{-2mm}
\begin{enumerate}[i]
\itemsep0em
\item The Dummy is in \textit{DummyDummyDummyDummy}\textsuperscript{5} and DummyDummy
\item The Dummy has Dummy Dummy DummyDummyDummy Dummy
\end{enumerate}
\vspace{-2mm}
\item If DummyDummy Dummy DummyDummy Dummy DummyDummy
\vspace{-2mm}
\begin{enumerate}[i]
\itemsep0em
\item The Dummy Dummy DummyDummy DummyDummy DummyDummyDummy,
\item The DummyDummy Dummy Dummy DummyDummy,
\item An DummyDummyDummy DummyDummy DummyDummy DummyDummyDummy DummyDummy DummyDummy\textsuperscript{3}
or Dummy\textsuperscript{2} Dummy between Dummy
\item The DummyDummyDummy DummyDummy
\item DummyDummy
\end{enumerate}
\vspace{-2mm}
\end{enumerate}
\vspace{-3.5mm}
\\
\hline
\vspace{-3.5mm}
\begin{enumerate}[1.]
\setcounter{enumi}{3}
\item DummyDummy\textsuperscript{1} DummyDummy DummyDummy Dummy DummyDummyDummy DummyDummyDummy
\end{enumerate}
\vspace{-3.5mm}
&
\vspace{-3.5mm}
\begin{enumerate}[I]
\itemsep-0.5em
\item If DummyDummyDummy Dummy DummyDummy Dummy. Else Dummy
\begin{enumerate}[i]
\itemsep0em
\item The Dummy Dummy \textit{DummyDummy}\textsuperscript{5} and Dummy
\textit{Dummy} or Dummy Dummy Dummy DummyDummy Dummy DummyDummy Dummy Dummy (for an Dummy Dummy Dummy\textsuperscript{1} Dummy DummyDummy)
\item There are DummyDummy DummyDummy \textit{Dummy} or \textit{Dummy}, Dummy DummyDummy
\end{enumerate}
\item If the Dummy DummyDummy DummyDummy DummyDummy Dummy DummyDummyDummy
\end{enumerate}
\vspace{-3.5mm}\\
\hline
\end{tabular}
\end{flushleft}
\end{table*}
\lipsum[3-5]
\end{document}
问题在于表格最终位于页面的中间,不允许更多文本出现在其上方或下方,如下图所示 -
前面和后面的段落被推到了上面和下面的页面上,浪费了大量的空间,而这正是我迫切需要的。
有人能给我提供一个解决方案吗,比如将表格放在页面顶部,而我可以在其下方放置文本(两列),从而充分利用空间?
答案1
如果你想强制table*
环境位于页面顶部,并且页面底部也包含一些文本,我建议你替换
\begin{table*}[hbp]
和
\begin{table*}[t!]