
我被要求以 2 列格式寫一篇文章,並且我有一個包含七列和大量行的大表。我需要表格佔據頁面的整個寬度,我還需要它繼續下一頁。我嘗試了很多解決方案,但每個解決方案都有一個問題。例如,當使用 longtable 套件時,我強制在兩列和一列之間進行轉換,這會導致問題。當表格在一頁中間結束時,該頁的其餘部分留空,文章的其餘部分在新頁的開頭繼續。這是一件不受歡迎的事。我也使用了 tabular*,但表格沒有繼續到下一頁。有沒有人對這個問題有一個理想的解決方案,或者有一個包含我想要的格式的範例 .tex 檔案?我附上圖片作為我想要的說明第二張圖是表尾後空白的問題
編輯:這是我的 tex 程式碼
\documentclass[fleqn,10pt]{SelfArx}
\usepackage[english]{babel} % Specify a different language here - english by default
\usepackage{lipsum} % Required to insert dummy text. To be removed otherwise
\usepackage{longtable}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{cite}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{multirow}
\usepackage{xtab,afterpage}
\graphicspath{ {./} }
\usepackage{fancyhdr}
\usepackage{xpatch}
\newcommand{\ignore}[1]{}
\setlength{\columnsep}{0.55cm} text
\setlength{\fboxrule}{0.75pt}
\begin{document}
% the content of Article in 2 column mode
\onecolumn
\begin{center}
\begin{longtable}{|l|l|l|}
\caption[Short caption]{Long captions for the long table.} \label{tab:long1} \\
% First head
\hline
\multicolumn{1}{|c|}{\textbf{Time (s)}} &
\multicolumn{1}{c|}{\textbf{Triple chosen}} &
\multicolumn{1}{c|}{\textbf{Other feasible triples}} \\ \hline
\endfirsthead
% Standard head
\multicolumn{3}{c}
{{\tablename\ \thetable{} -- continued from previous page.}} \\
\hline
\multicolumn{1}{|c|}{\textbf{Time (s)}} &
\multicolumn{1}{c|}{\textbf{Triple chosen}} &
\multicolumn{1}{c|}{\textbf{Other feasible triples}} \\ \hline
\endhead
% Footnote
\hline \multicolumn{3}{|r|}{{Continued on next page...}} \\ \hline
\endfoot
% Last footnote
\hline
\endlastfoot
% The table
col1 & col2 & col3 \\
col1 & col2 & col3 \\
col1 & col2 & col3 \\
..........................
col1 & col2 & col3 \\
col1 & col2 & col3 \\
col1 & col2 & col3 \\
col1 & col2 & col3 \\
\end{longtable}
\end{center}
\twocolumn
%rest of article
\end{document}
答案1
您應該至少提供一個 MWE,以便任何人都可以解決您的問題。
根據我的理解,您可以使用套件longtblr
中的選項tabularray
來產生您想要的表。