LaTex 之 表格

【学习链接】

【转】基本表格绘制: https://blog.csdn.net/JueChenYi/article/details/77116011

【转】调公式、图片、段落间距、行间距算法等心得: https://blog.csdn.net/u011591648/article/details/81137769

 

【参考内容】

在线编辑器:https://www.tablesgenerator.com/

\multirow使用说明:http://www.ctex.org/documents/packages/table/multirow.htm

  • 使用\begin{table} 

比较麻烦,很多东西都需要重新定义。

\begin{table}[htbp]
\sffamily
\caption{Example}
\label{Table 1}
\begin{tabular}{p{2cm}p{3cm}p{5cm}}
\toprule
\multicolumn{1}{c}{References} & \multicolumn{1}{c}{Methods} & \multicolumn{1}{c}{Objects} \\
\hline
S1& Example&Example\bigstrut[t] \\
S2& Example&Example Example Example Example Example Example Example Example Example Example Example Example Example Example\bigstrut[t] \\
\bottomrule
\end{tabular}
\end{table}
  • 直接使用\begin{tabular}
\begin{spacing}{1.2} %控制表格的行距,否则行距与文本设置行距保持一致
\vspace{10pt}
\noindent Table 1. Example\\ %作为表头 
\begin{tabular}{llp{5cm}}    %设置表格列数及位置,{11p{5cm}}也可以全部采用p{}进行定义{p{5cm}p{5cm}p{5cm}},采用p{}定义的列数宽度,文字长度过长时会自动换行。
\toprule
\multicolumn{1}{c}{References} & \multicolumn{1}{c}{Methods} & \multicolumn{1}{c}{Objects} \\ 
\hline
S1& Example&Example \\
S2& Example&Example Example Example Example Example Example Example Example Example Example Example Example Example Example \\
\bottomrule
\end{tabular}
\end{spacing}

注:利用\multirow & multicolum & cline ,通过定义每一个单元格,可以满足所有的表格形式。,只是相对会比较麻烦。但不失为一个有效的“笨”办法。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值