本文主要是介绍Latex跨栏显示公式和表格(以及合并单元格),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
以下情况适用于公式和表格特别长,需要跨栏显示。
对于APS期刊(PR系列),跨栏公式仅需要\begin{widetext}就可以解决(具体在之前的博文中已经写过http://t.csdn.cn/qpj8s)。
\begin{widetext}\begin{gather} \label{1dd}\begin{aligned} &D=\\&\frac{1}{4}\begin{pmatrix}\begin{array}{llllll}x_1+y_1&x_1+y_2&x_1+y_3&x_1+y_4&x_1+y_5&x_1+y_6\\x_2+y_1&x_2+y_2&x_2+y_3&x_2+y_4&x_2+y_5&x_2+y_6\\x_3+y_1&x_3+y_2&x_3+y_3&x_3+y_4&x_3+y_5&x_3+y_6\\x_4+y_1&x_4+y_2&x_4+y_3&x_4+y_4&x_4+y_5&x_4+y_6\\x_5+y_1&x_5+y_2&x_5+y_3&x_5+y_4&x_5+y_5&x_5+y_6\\x_6+y_1&x_6+y_2&x_6+y_3&x_6+y_4&x_6+y_5&x_6+y_6\\\end{array}\end{pmatrix} \end{aligned}\end{gather}
\end{widetext}.
\begin{widetext}\begin{ruledtabular}\begin{table*}\caption{A summary of the phase transition . }\label{table2}\centering\begin{tabular}{ c c c c c c c c}\multicolumn{2}{c}{\multirow{2}{*}{Model}} & \multirow{2}{*}{\shortstack{The value\\ of $X$}} &\multirow{2}{*}{\shortstack{Order of the\\ phase transition}} &\multicolumn{4}{c}{The critical exponent of}\\\cmidrule{5-8}& & & & $Y_1$ &$Y_2$ & $Y_3$& $Y_4$ \\\midrule\multicolumn{2}{c}{$Z_1$ model} & $h_1$ &Second-order &$\alpha_1=1$ &$\beta_1=1$ &$\gamma_1=1$ &$\delta_1=1$ \\\multirow{2}{*}{ $Z_2$ model}& case1 & $h_2$ &Second-order &$\alpha_2=1$ &$\beta_2=1$ &$\gamma_2=1$ &$\delta_2=1$ \\& case2 & $h_3$ &Second-order &$\alpha_3=1$ &$\beta_3=1$ &$\gamma_3=1$ &$\delta_3=1$ \\\multicolumn{2}{c}{$Z_3$ model} & $h_4$ &First-order &$\alpha_4=1$ &$\beta_4=1$ &$\gamma_4=1$ &$\delta_4=1$ \\\end{tabular}\end{table*}\end{ruledtabular}
\end{widetext}
Latex表格中的合并单元格:
1、纵向合并:
\multirow{2}{*}{ $Z_2$ model}& case1 \\& case2
2、横向合并:将第五至第八列“Y1,Y2,Y3,Y4”合并在“The critical exponent of” 标题之下
\multicolumn{4}{c}{The critical exponent of} \\\cmidrule{5-8}
& & & & $Y_1$ &$Y_2$ & $Y_3$& $Y_4$ \\
具体图像见上面的表格。
这篇关于Latex跨栏显示公式和表格(以及合并单元格)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!