幫助無法將長表格跨兩列頁面中的兩個頁面展開

幫助無法將長表格跨兩列頁面中的兩個頁面展開

我迫切需要你的幫助。我檢查了整個 TEX.StackExchange,但過去 4 小時無法解決任何問題。請幫忙 :)

這個問題很難解釋,所以最好用圖片來說明。在兩欄頁面中,我試圖建立一篇論文,其中的元件在 tex 程式碼中按以下順序出現:

  1. 文字1
  2. 寬表 #1 有很多項目
  3. 一列短表#2
  4. 寬表 #3 有很多物品
  5. 文字#2

在此輸入影像描述

我需要得到這樣的輸出: 在此輸入影像描述

答案1

絕不在 LaTeX 來源中執行此操作:

表 3。

在 LaTeX 中總是這樣做

n the Table \ref{somename}.

然後做

 \caption{my table\label{somename}}

那麼無論乳膠給出的數字是什麼,都會在交叉引用中使用,而且您不希望\setcounter下面的內容強制編號無序。

請在這裡發布完整的文檔:我認為您的讀者不會感謝您對錶格進行不按順序編號(編號的目的是為了幫助找到它們),但如果您真的想要這樣做,您可以。這使用序列 2, 1, 3

在此輸入影像描述

\documentclass[twocolumn,a5paper]{article}

\usepackage{longtable}
\title{zzz}
\author{Yyy Yyy}
\begin{document}
\maketitle
\def\a{One two three four five. }
\def\b{\a Six seven eight nine ten. \a\a\a\a}
\b\b\a\a\a\b\a\a
\setcounter{table}{1}
\begin{table}[htp]
\caption{zzzz}
\begin{tabular}{cc}a&b\\c&d\end{tabular}
\end{table}
\a\a\b\a

\onecolumn
\setcounter{table}{0}
\begin{longtable}{cc}
\caption{a table}\\
A&B\endfirsthead
\caption*{a table (continued)}\\
A&B\endhead
aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\
AAaa&bb\\aa&BBbb\\aa&bb\\aa&bb\\AAaa&bb\\aa&bb\\aa&bb\\aa&bb\\
aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\
Aaa&bb\\aa&BBbb\\aa&bb\\aa&bAb\\AAaa&bb\\aa&bb\\aa&bb\\aa&bb\\
aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\aa&bb\\
\end{longtable}
\setcounter{table}{2}
\begin{longtable}{cc}
\caption{another table}\\
X&Y\endfirsthead
\caption*{another table (continued)}\\
X&Y\endhead
xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\
XXxx&yy\\xx&YYyy\\xx&yy\\xx&yy\\XXxx&yy\\xx&yy\\xx&yy\\xx&yy\\
xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\
Xxx&yy\\xx&YYyy\\xx&yy\\xx&yXy\\XXxx&yy\\xx&yy\\xx&yy\\xx&yy\\
xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\xx&yy\\
\end{longtable}
\twocolumn
\b\b\b

\end{document}

相關內容