![在两列类中插入一个很长的表格(大约 4 页)](https://linux22.com/image/390359/%E5%9C%A8%E4%B8%A4%E5%88%97%E7%B1%BB%E4%B8%AD%E6%8F%92%E5%85%A5%E4%B8%80%E4%B8%AA%E5%BE%88%E9%95%BF%E7%9A%84%E8%A1%A8%E6%A0%BC%EF%BC%88%E5%A4%A7%E7%BA%A6%204%20%E9%A1%B5%EF%BC%89.png)
我必须在tex
文件中插入一个很长的表格,用于两列类,例如:\documentclass[5p]{elsarticle}
。
问题是:该longtable
包在此类中不起作用(因为它是两列类)。此外,使用包xtab
或supertabular
使表仅限于一列。
有没有办法将表格插入到上述两列类中,而表格则位于单列文档中(表格的宽度要宽得多,只能放在两列中的一列)。问题是:为什么表格在页面中间被截断。\strip
环境中的典型代码:
\documentclass[5p,times]{elsarticle}
\usepackage{cuted}
\usepackage{array}
\usepackage{booktabs}
\usepackage{caption}
\usepackage{xtab}
\usepackage{booktabs}
\usepackage{lipsum}
\begin{document}
\begin{frontmatter}
\title{Title}
\author{Name}
\begin{abstract}
The abstract.
\end{abstract}
\end{frontmatter}
\section{Introduction}
\lipsum[1-10]
\topcaption{This is the caption} \label{tab:xtab}
\tablefirsthead{\hline \multicolumn{1}{l}{\textbf{Command}} &
\multicolumn{1}{l}{Effect} \\ \hline }
\tablehead{\multicolumn{2}{l}%
{{\captionsize\bfseries \tablename\ \thetable{} --
continued from previous page}} \\
\hline \multicolumn{1}{l}{\textbf{Command}} &
\multicolumn{1}{l}{\textbf{Effect}} \\ \hline }
\tablelasthead{\multicolumn{2}{c}%
{{\captionsize\bfseries \tablename\ \thetable{} --
concluded from previous page}} \\
\hline \multicolumn{1}{l}{\textbf{Command}} &
\multicolumn{1}{l}{\textbf{Effect}} \\ \hline }
\tabletail{\hline \multicolumn{2}{r}{{Continued on next page}} \\ \hline}
\tablelasttail{\hline}
\begin{strip}
\begin{center}
\begin{xtabular}{p{0.4\textwidth}p{0.4\textwidth}}
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
content & some text\\
\end{xtabular}%
\end{center}
\end{strip}
\lipsum[1-10]
\end{document}