可以将tblr环境放入strip环境里,该环境由cuted这个包提供,注意的是strip里面不要放入浮动体
代码如下:
\documentclass[a4paper,twocolumn]{article}
\usepackage[margin=.5in]{geometry}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage{tabularray}
\usepackage{float}
\usepackage{cuted}
\UseTblrLibrary{booktabs}
\begin{document}
\lipsum[1-2]
\begin{strip}
\centering
\begin{tblr}{
vlines,cells={valign=m},
colspec = {*{8}{Q[1.75cm,c]}},
cells = {font=\tiny},
row{1,2}={font=\bfseries\small},
column{1}={font=\bfseries\small},
abovesep=0pt, belowsep=2pt, rowsep=2pt,
}
\toprule
\SetCell[r=2]{m} Dataset & \SetCell[r=2]{m} Embedding Capacity (bits) & \SetCell[c=6]{m} Extraction Error (\%) \\
\midrule
& & Addition and Deletion of Punctuation Marks & Addition and Deletion of Stop Words & Synonym Replacement & Random Word Insertion & Character Deletion and Swapping & Word Order Reversal \\
\midrule
AG News & 30,000 & 0 & 0 & 0 & 0 & 2.92 & 0.26 \\
\midrule
Dbpedia & 90,000 & 0 & 0 & 0 & 1.27 & -- & -- \\
\bottomrule
\end{tblr}
\end{strip}
\lipsum[3-4]
\end{document}
编译效果如图:
问 双栏排版如何使用twocolumn和onecolumn的选项实现 双栏文本-单栏表格-双栏文本 的文章结构