我使用以下代码在我的论文中制作了一个表格:
\begin{table}[htbp]
\centering
\caption{Add caption}
\begin{tabularx}{\hsize}{cc}
\toprule
& Folhosas \\
\midrule
Celulose & 5 \\
Hemicelulose & 2 \\
Extrac & 6 \\
Lenhinha & 9 \\
\bottomrule
\end{tabularx}
\label{tab:addlabel}
\end{table}
但是,我想要表格中间的文本。你能帮助我吗?
答案1
\documentclass{article}
\usepackage{tabularx,booktabs}
\begin{document}
\begin{table}[htbp]
\centering
\caption{Add caption}\label{tab:addlabel}
\begin{tabularx}{\textwidth}{*{2}{>{\centering\arraybackslash}X}}
\toprule
& Folhosas \\
\midrule
Celulose & 5 \\
Hemicelulose & 2 \\
Extrac & 6 \\
Lenhinha & 9 \\
\bottomrule
\end{tabularx}
\end{table}
\end{document}
或者您可能想看看包tabulary
和它的C
列。