由于列名太长导致表格数据不居中,排版很难看

2020-12-20 09:46发布

## 编译环境 操作系统 * [x] Windows 7/8/10 * [ ] macOS * [ ] Linux Tex发行版 * [x] TexLive `2020` * [ ] MikTeX ...

## 编译环境 操作系统 * [x] Windows 7/8/10 * [ ] macOS * [ ] Linux Tex发行版 * [x] TexLive `2020` * [ ] MikTeX * [ ] CTeX ## 我的问题 由于列名太长导致表格数据不居中,排版很难看,求帮助 ```markdown \begin{table} \centering \begin{tabular}{llll} \hline Datasets & Hepth & Math Overflow & Super User\\ \hline Method & \multicolumn{3}{c}{Link Prediction(AUC)} \\ \hline node2vec & 0.6235 & 0.6250 & 0.5841\\ GAE & 0.7134 & 0.6879 & 0.6985\\ VGAE & 0.7189 & 0.6935 & 0.7064\\ GraphSAGE & 0.5998 & 0.6696 & 0.6582\\ \hline \end{tabular} \caption{Link Prediction Results} \label{linkprediction} \end{table} ``` ![](https://wenda.latexstudio.net/data/attach/201220/opipOil6.png) ![](https://wenda.latexstudio.net/data/attach/201220/0GyDorOy.png)
3条回答
羽箭
2020-12-21 22:24
和上面的朋友说的一样,不太明白你的诉求, 如果你觉得字段太长,可以使用makecell 宏包手动换行或tabularx自动换行

一周热门 更多>