![可以制作如下的组合表吗?](https://linux22.com/image/466242/%E5%8F%AF%E4%BB%A5%E5%88%B6%E4%BD%9C%E5%A6%82%E4%B8%8B%E7%9A%84%E7%BB%84%E5%90%88%E8%A1%A8%E5%90%97%EF%BC%9F.png)
可以制作这个组合表吗?
编辑-到目前为止我已经完成了:
\documentclass[twoside]{article}
\usepackage{array}
\usepackage{booktabs}
\usepackage{multicol}
%opening
\title{Tabla combinada}
\author{JMDA}
\date{}
\begin{document}
\maketitle
\begin{multicols}{2}
\begin{table*}[h]
\begin{center}
\caption{Características de la Zeolita LZY-52 en forma sódica y forma protónica}
\begin{tabular}{p{1.1cm}p{1.1cm}p{1.1cm}p{1.1cm}p{1.1cm}p{1.1cm}p{1.1cm}p{1.1cm}p{1.1cm}p{1.1cm}}
\toprule
Zeolita & FRX \%p & & $(Si/Al)_{FRX}$ Molar & \% Crist. & $a_0(A^0)$ & (Si/Al) DRX & Área Específica ($m^2/g$) & Acidez total (mmol $NH_3/g$) & Máximo de desorción (°C) \\
& $SiO_2$ & $Al_2O_3$ & & & & & & & \\
\midrule
NaY & 52.5 & 15.9 & 2.8 & 100 & 24.6 & 12.9 & 510 & 1.77 & 180 \\
HY5 & 7.5 & 19.8 & 2.5 & 73 & 24.58 & 3.4 & 716 & 2.97 & 270 \\
\bottomrule
\end{tabular}
\end{center}
\end{table*}
\end{multicols}
\end{document}
我不知道如何合并我感兴趣的单元格。
答案1
multicolumn
我宁愿使用文档类twocolumn
选项,而不是使用包article
- 对于表格代码,我将使用
tabularray
带有库的包booktabs
和siunitx
(稍后用于一致地编写单位和S
列) - 对于化学符号,我将使用
mhchem
包(最新版本,即version=4
)
\documentclass[twocolumn, % <---
twoside]{article}
%---------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{lipsum}% For dummy text. Don't use in a real document
\usepackage{tabularray} % <--- new
\UseTblrLibrary{booktabs,
siunitx} % <--- new
\sisetup{per-mode = symbol}
\usepackage[version=4]{mhchem} % <--- new
\begin{document}
\begin{table*}[ht] % <--- changed
\centering
\caption{Características de la Zeolita LZY-52 en forma sódica y forma protónica}
\begin{tblr}{colsep=5pt,
colspec = {@{} l *{2}{Q[c, si={table-format=2.2}]}
X[0.9, c, si={table-format=1.1}]
X[0.9, c, si={table-format=3.0}]
*{3}{X[0.9, c, si={table-format=2.2}]}
X[1.5, c, si={table-format=1.2}]
X[1.2, c, si={table-format=3.0}]
@{}},
cell{1}{1,4-Z} = {r=2}{}, % <--- set multirow cell where needed
row{1,2} = {guard, font=\small},
}
\toprule
Zeolita
& \SetCell[c=2]{c} FRX \%p % <--- set multicolumn cell
& & \ce{(Si/Al)_{FRX}} Molar
& \% Crist.
& $a_0(A^0)$
& (Si/Al) DRX
& Área Específica (\unit{\square\metre\per\gram})
& Acidez total (\ce{NH3} \unit{\mmol\per\gram})
& Máximo de desorción (\unit{\degreeCelsius}) \\
\midrule
& \ce{SiO2}
& \ce{Al2O3}
& & & & & & & \\
\midrule
NaY & 52.5 & 15.9 & 2.8 & 100 & 24.6 & 12.9 & 510 & 1.77 & 180 \\
HY5 & 7.5 & 19.8 & 2.5 & 73 & 24.58 & 3.4 & 716 & 2.97 & 270 \\
\bottomrule
\end{tblr}
\end{table*}
\end{document}