Latex表格

认识Latex也快两年了,不过平常用的少,还是很生疏,用起来挺费劲的。晚上做了个表格,上网查的该怎么设置格式,这里记下,以备不时之需。

\begin{table}[h]  %table 里面也可以嵌套tabular,只有tabular是不能加标题的
\centering  %表格居中
\caption{模拟实验}  %表格标题
 \begin{tabular}{rrrr}  %右对齐
     \hline
     \hline
       & $\mu_{i}$ & $MSE_{i}^{(MLE)}$ & $MSE_{i}^{(JS)}$ \\ [0.5ex]  %增加行宽
       \hline
       1 & -0.81 & 0.95 &  0.61 \\
       2 & -0.39 & 1.04 & 0.62 \\
       3 & -0.39 & 1.03 & 0.62 \\
       4 & -0.08 & 0.99 & 0.58 \\
       5 & 0.69 & 1.06 & 0.67 \\
       6 & 0.71 & 0.98 & 0.63 \\
       7 & 1.28 & 0.95 & 0.71 \\
       8 & 1.32 & 1.04 & 0.77 \\
       9 & 1.89 & 1.00 & 0.88 \\
       10 & 4.00 & 1.08 & 2.04!! \\
       \hline
       \multicolumn{2}{c}{Total Sqerr} & 10.12 & 8.13 \\  %横向合并两个单元格
       \hline
       \hline
   \end{tabular}
\end{table}
Reference:https://zh.wikibooks.org/zh-cn/LaTeX/%E8%A1%A8%E6%A0%BC
http://gaolei786.github.io/latex/latexbiaoge.html
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值