3.表格的插入
引用文献中原始图片
\usepackage{booktabs}
\usepackage{flushend}
\begin{table}[htbp]
\begin{center}
\caption{ Accuracy analyze based on changing coefcients}\label{table.1}
\begin{tabular*}{\hsize}{@{}@{\extracolsep{\fill}}cc@{}}
\midrule
$R$ coefficient & $MSE$ value\\
\toprule
(a)$D$= 2.7$\times 10^{-9}$ & \\
2.25$\times 10^{-2}$& 0.587\\
2.25$\times 10^{-5}$& 0.495\\
2.25$\times 10^{-7}$& 0.623\\
2.25$\times 10^{-10}$& 0.341\\
\midrule
$D$ coefficient& $MSE$ value\\
\toprule
(b)$R$= 2.25$\times 10^{-7}$ & \\
2.7$\times 10^{-2}$ & 0.305\\
2.7$\times 10^{-7}$& 0.576\\
2.7$\times 10^{-8}$& 0.588\\
2.7$\times 10^{-10}$& 0.534\\
\midrule
\end{tabular*}
\end{center}
\end{table}
\begin{table}[htbp]
\begin{center}
\caption{ Accuracy analyze based on changing coefcients}\label{table.1}
\begin{tabular*}{\hsize}{@{}@{\extracolsep{\fill}}cc@{}}
\midrule
$R$ coefficient & $MSE$ value\\
\toprule
(a)$D$= 2.7$\times 10^{-9}$ & \\
2.25$\times 10^{-2}$& 0.587\\
2.25$\times 10^{-5}$& 0.495\\
2.25$\times 10^{-7}$& 0.623\\
2.25$\times 10^{-10}$& 0.341\\
\midrule
$D$ coefficient& $MSE$ value\\
\toprule
(b)$R$= 2.25$\times 10^{-7}$ & \\
2.7$\times 10^{-2}$ & 0.305\\
2.7$\times 10^{-7}$& 0.576\\
2.7$\times 10^{-8}$& 0.588\\
2.7$\times 10^{-10}$& 0.534\\
\midrule
\end{tabular*}
\end{center}
\end{table}
① 根据所投期刊的模版,在里边画图,做表,字体大小样式不容易出错
绘制Latex表格需要用到 table 和 tabular 环境。其中 table 环境里写表格的标题(caption)、表格的偏移之类的。 tabular 环境则是绘制表格的内容。一个简单的表格绘制代码如下所示:
非常值得看的链接latex表格手把手超详细教程(table, tabular, multirow, multicolumn)_latex tabular-CSDN博客
latex表格手把手超详细教程(table, tabular, multirow, multicolumn)_latex tabular-CSDN博客
②使用booktabs宏包
\usepackage{booktabs}
将横线\hline替换为:
\toprule (细) \midrule (粗) \bottomrule(粗+) 必须导入宏包(usepackage{booktabs})
③
在latex进行排版时,出现了这样一个需求。一个普通的表格,需要将两边拉长,等于论文单栏的长度(双栏排版)。
然后试了下resizebox,确实拉长了,但是表格的字体变大了。如下
且使用调整字体的命令,也不好使,如下
④
在tabular*环境中。必须使用@{\extracolsep\fill}命令,使后面所有列间距可以伸展到预定义的表格宽度。
搜了半天,发现可以用\begin{tabular*}{\hsize}{@{}@{\extracolsep{\fill}}|c|c|c|c|c|c|@{}},确实达到了想要的效果,但是对齐有点问题。并不是标准的居然,而是前面多一块空白,然后再居中。
原文链接: Latex表格拓宽至文本宽度_latex 表格拉宽-CSDN博客
双栏与单栏不同的是将tabular改为tabular*
|c|c|c|c|c|c|是看图片有几列,要不要左右竖线,c表示居中
注意:在tabular*中,三线表的列数根据c的个数来确定,cccc表示四列居中,l, r 分别表示左右对齐
$\times 10^{-2}$必须写在公式里,\times表示×
$D$表示这个单词要斜体
$7$和7不一样
一个&表示2列
上文在我的收藏里
The Short Introduction to LaTeX2e (Chinese Simplified) (iastate.edu)
4.硕士毕业论文可能会用到
(46 封私信 / 82 条消息) LaTeX 如何让两张图并排显示? - 知乎 (zhihu.com)
5.LaTex中引用的公式和图片,实现超链接自动跳转
来自 <CSDN>