文档格式为双栏时如何将表格整页放置

问题描述 投票:0回答:1

我有一个带有 elsarticle 文档类(Elsevier Journal)的 Latex 文档,它是双栏的。我试图将一个长表格放入一列中,但它不起作用,表格很乱并且不占据整个宽度。我尝试在 longtable 命令中添加 *,但这也不起作用。

我的表格中包含示例数据(但行数少得多)的摘录如下:

\documentclass[5p,times,twocolumn,authoryear]{elsarticle}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{placeins}
\usepackage{multirow}
\usepackage{afterpage}
\usepackage{xcolor}
\usepackage{longtable}

\begin{document}

\afterpage{%
\begingroup
\scriptsize
\centering
\begin{longtable} [c]{p{1cm}p{1.8cm}p{1cm}p{2cm}p{2.1cm}p{1.3cm}p{2cm}}
\caption{High Level Overview of Existing Frameworks}
\label{tab:general-description-v1}\\
\hline
%\rowcolor[HTML]{9B9B9B} 
\textbf{Name} &
\textbf{Authors} &
\textbf{Year} &
\textbf{Column A} &
 \textbf{Column B} & 
\textbf{Column C} &
  \textbf{Column D} \\ \hline
\endfirsthead
%
\multicolumn{6}{c}%
{{\bfseries Table \thetable\ continued from previous page}} \\
\hline
%\rowcolor[HTML]{9B9B9B} 
\textbf{Name} &
\textbf{Authors} &
\textbf{Year} &
 \textbf{Column A} &
 \textbf{Column B} &
 \textbf{Column C} &
\textbf{Column D} \\ \hline
\endhead
%

AA\textsuperscript{*}&
citation 1 &
2019 - 2020 &
data 1 &
data 2 &
\begin{tabular}[c]{@{}l@{}}data 3\end{tabular} &
\begin{tabular}[c]{@{}l@{}}data 4\end{tabular} \\ \hline

  
\multirow{2}{*}{BB\textsuperscript{*} }
&citation 2 &
  2010 &
  \begin{tabular}[c]{@{}l@{}}data 1 \end{tabular} &
  \begin{tabular}[c]{@{}l@{}}data 2\end{tabular} &
  \begin{tabular}[c]{@{}l@{}}data 3\end{tabular} &
  \begin{tabular}[c]{@{}l@{}}data 4\end{tabular} \\ \cline{2-7}

&citation 3 &
  2013 &
  data 1 &
  \begin{tabular}[c]{@{}l@{}}data 2\end{tabular} &
  \begin{tabular}[c]{@{}l@{}}data 3\end{tabular} &
  \begin{tabular}[c]{@{}l@{}}data 4\end{tabular} \\ \hline

\end{longtable}
\endgroup
}%
\raggedbottom

\end{document}

有什么想法可以解决这个问题吗?

templates layout latex multirow longtable
1个回答
0
投票

请分享更多关于无箔纸在225烟熏排骨需要多长时间

的详细信息
© www.soinside.com 2019 - 2024. All rights reserved.