You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在LaTeX中设置合并行标签?调整表格AGE标签至左上方

修改后的LaTeX表格代码
\begin{table}[ht]
\centering
\begin{tabular}{cc}
  \hline
\multicolumn{1}{c}{\textbf{年龄}} & \textbf{占比} \\ 
  \hline
19-24 & 6\% \\ 
25-34 & 18\% \\ 
35-44 & 24\% \\ 
45-54 & 36\% \\ 
55-64 & 7\% \\ 
   \hline
\end{tabular}
\end{table}

修改说明

  • 移除原表头中的“AGE”,将其翻译为中文“年龄”后,通过\multicolumn{1}{c}{\textbf{年龄}}设置在表格第一列的顶部居中位置,实现左上方居中的效果
  • 将原表头的“Percentage”翻译为中文“占比”,保留在第二列的表头位置
  • 保留原表格的所有数据行、水平线格式不变

内容的提问来源于stack exchange,提问作者y.eska

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.29 08:52:41