首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Latex学习笔记(五)插入表格

Latex学习笔记(五)插入表格

作者头像
zstar
发布于 2022-06-14 09:33:55
发布于 2022-06-14 09:33:55
1.3K0
举报
文章被收录于专栏:往期博文往期博文

插入表格示例:

代码语言:javascript
复制
\begin{table}[htbp]
	\centering
	\begin{tabular}{|c|l|l|c|l|l|l|l|l|l|l|l|}
		\hline
		\multicolumn{3}{|c|}{Symbols} & \multicolumn{9}{c|}{Definition}                                                 \\ \hline
		\multicolumn{3}{|c|}{(x,y)}   & \multicolumn{9}{c|}{Player position coordinates}                                \\ \hline
		\multicolumn{3}{|c|}{N}       & \multicolumn{9}{c|}{Total passes}                                               \\ \hline
		\multicolumn{3}{|c|}{$D_{ij}$}     & \multicolumn{9}{c|}{Pass times of two players in the network}                   \\ \hline
		\multicolumn{3}{|c|}{$d_{ij}$}     & \multicolumn{9}{c|}{The average number of passes of two players in the network} \\ \hline
	\end{tabular}
\end{table}

有的时候,表格会换行错位,有一种方法是在后面加【htbp】 不过经过实测,有时候也不太灵

比较有效的方法是 调入宏包\usepackage{graphicx} 把【htbp】改成【H】即可

当然表格的输入推荐一个网址 https://www.tablesgenerator.com/ 可以将可视化的表格转换成latex语言,真方便~

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-01-18,如有侵权请联系 cloudcommunity@tencent.com 删除
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档