我需要一个只有两列的长表。我看到了这个主题两列表我设法将其转换成长表。
\documentclass{article}
\begin{document}
\begin{longtable}{|p{0.45\textwidth}|p{0.45\textwidth}|}
\caption{ex} \\
\hline
1. One one one
&
3. One one one One one one One one one One one one One one one One one one One one one One one one One one one \\
2. One one one One one one One one one One one one One one one One one one One one one One one one One one one
&
4. One one one One one one\\
\hline
\end{longtable}
\end{document}
问题是点 1 和 2 之间有很大空间。我希望这些点之间没有多余的空间。它需要是一个长表!谢谢。
答案1
表格对齐意味着将数据放置在矩形块中,因此显示的空间。您有一个列表而不是表格:
\documentclass{article}
\usepackage{capt-of}
\begin{document}
\twocolumn[\captionof{table}{A caption}]
\begin{enumerate}
\item One one one
\item One one one One one one One one one One one one One one one One one one One one one One one one One one one
\newpage
\item
One one one One one one One one one One one one One one one One one one One one one One one one One one one
\item One one one One one one
\end{enumerate}
\end{document}
答案2
您需要使用列表/枚举来避免出现间距。但是,您仍然可以通过将列表放入表格或图形浮动中来添加标题。
我创建了一个小页面,其中放置了两列环境和列表。
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{multicol}
\usepackage{babel}
\begin{document}
\begin{table}
\begin{minipage}[t]{1\columnwidth}%
\begin{multicols}{2}
\begin{enumerate}
\item One one one
\item One one one One one one One one one One one one One one one One one
one One one one One one one One one one \newpage{}
\item One one one One one one One one one One one one One one one One one
one One one one One one one One one one
\item One one one One one one \end{enumerate}
\end{multicols}
%
\end{minipage}
\protect\caption{some caption}
\end{table}
\end{document}