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

如何在LaTeX中创建IEEE格式占满整页且支持跨页的表格

解决方案

核心思路

原生table*是浮动体,本身不支持跨页拆分,你需要使用xltabular包,它同时整合了longtable的跨页能力、tabularx的宽度自适应特性,完全兼容IEEEtran双栏文档的通栏排版要求,且可以自动重复表头、适配你原有定义的居中X列格式。

依赖引入

在导言区新增引入xltabular包即可,原有列定义、booktabs等配置不需要修改:

\usepackage{xltabular}

完整修改后代码

\documentclass[conference]{IEEEtran}
\usepackage{tabularx,booktabs,xltabular}
\newcolumntype{C}{>{\centering\arraybackslash}X} % 保留原有居中X列定义
\setlength{\extrarowheight}{1pt}
\usepackage{lipsum}
\begin{document}
\lipsum[1] % 填充文本

% 替换原有table*+tabularx为xltabular环境,宽度设为\textwidth占满整页
\begin{xltabular}{\textwidth}{@{}l*{10}{C}c@{}}
\caption{CIFAR-10 Confusion Matrix}\label{my-label}\\
\toprule
labels     & airplane & automobile & bird & cat & deer & dog & frog & horse & ship & truck & accuracy \\
\midrule
\endfirsthead % 第一页表头结束标记

% 后续页的表头配置,会自动在每页开头重复
\multicolumn{12}{c}{\tablename\ \thetable\ (续上页)}\\
\toprule
labels     & airplane & automobile & bird & cat & deer & dog & frog & horse & ship & truck & accuracy \\
\midrule
\endhead % 通用表头结束标记

% 每页的页脚配置,分页时自动在页面底部显示
\midrule
\multicolumn{12}{r}{(续下页)}\\
\endfoot % 通用页脚结束标记

% 最后一页的页脚配置,仅在表格最后一页显示
\bottomrule
\endlastfoot % 最后一页页脚结束标记

% 原有表格内容直接复用即可
airplane   & 915      & 4          & 17   & 19  & 3    & 1   & 0    & 2     & 27   & 12    & 91.50\%  \\
automobile & 8        & 934        & 3    & 4   & 0    & 0   & 3    & 0     & 10   & 38    & 93.40\%  \\
bird       & 60       & 1          & 813  & 37  & 19   & 23  & 30   & 10    & 7    & 0     & 81.30\%  \\
cat        & 18       & 1          & 34   & 746 & 25   & 113 & 37   & 18    & 8    & 0     & 74.60\%  \\
deer       & 24       & 1          & 38   & 33  & 809  & 19  & 44   & 29    & 2    & 1     & 80.90\%  \\
dog        & 4        & 0          & 37   & 106 & 23   & 792 & 9    & 26    & 2    & 1     & 79.20\%  \\
frog       & 2        & 5          & 19   & 35  & 1    & 20  & 912  & 2     & 3    & 1     & 91.20\%  \\
horse      & 14       & 0          & 26   & 20  & 18   & 28  & 4    & 886   & 3    & 1     & 88.60\%  \\
ship       & 35       & 10         & 3    & 2   & 0    & 2   & 1    & 0     & 936  & 11    & 93.60\%  \\
truck      & 23       & 37         & 4    & 10  & 1    & 2   & 2    & 0     & 15   & 906   & 90.60\%  \\
% 其余表格行直接按原有格式追加即可,无需手动拆分
\end{xltabular}

\lipsum[2-15] % 更多填充文本
\end{document}

关键特性说明

  • 完全符合IEEE排版规范:通栏宽度、表格线样式、字体格式均和原有实现一致
  • 自动跨页拆分:不需要手动切割表格,超过页面高度的内容会自动转到下一页展示
  • 表头自动重复:后续页会自动带上表头和“续上页”标注,最后一页显示完整底纹线,符合学术表格阅读习惯
  • 兼容原有配置:你之前定义的C列格式、extrarowheight等配置完全可以复用,不需要修改

内容的提问来源于stack exchange,提问作者Bisu

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.09.28 18:15:03