如何在乳胶表中拟合长方程

如何在乳胶表中拟合长方程

这是我写的表格的代码

\begin{table}[H]

\centering
\begin{tabular}{|c|c|}
\hline
{Case}&{Analytical Expressions}\\
\hline

\hline
$C_{11}$ & $\begin{multlined} 
\rho_{+}=\frac{\begin{multlined}(sin^2{2\theta_{12}}c_{12}^2c_{23}^4-s_{13}^2s_{23}^2c_{12}^2c_{23}^2cos^2{\delta}(2(1+s_{12}^2)-cos{2\theta_{12}})^2-c_{12}^2c_{23}^2s_{23}^2s_{13}^2(4c_{23}sin{2\theta_{12}}cos{\delta}(1+s_{12}^2)\\-2s_{23}^2s_{13}-2c_{23}cos{2\theta_{12}}cos{\delta}-s_{23}s_{13}cos{2\delta}+s_{23}s_{13}cos^2{2\theta_{12}}cos{2\delta}-8s_{23}s_{13}s_{12}^2cos^2{\delta}\\+4s_{12}^2s_{23}s_{13}cos{2\theta_{12}})+s_{23}^2s_{13}^2s_{12}(2c_{12}s_{12}^2c_{23}sin{\delta}+c_{23}c_{12}cos{2\theta_{12}}sin{2\delta})^2\\-4c_{12}c_{23}s_{23}s_{13}s_{12}sin{2\delta}sin{\delta}(s_{12}^2+2cos{2\theta_{12}})(2+c_{12}^2))^\frac{1}{2}\end{multlined}}{2s_{12}((-c_{12}s_{12}c_{23}+s_{12}s_{23}s_{13}cos{\delta})^2+s_{12}^2s_{23}^2s_{13}^2sin^2{\delta})}
\end{multlined} $\\ 
\hline
{} & $\begin{multlined}
\rho_{-}=\frac{\begin{multlined}(sin^2{2\theta_{12}}c_{12}^2c_{23}^4+c_{12}^2c_{23}^2s_{23}s_{13}(4c_{23}sin{2\theta_{12}}cos{\delta}+2s_{23}s_{13}+s_{23}s_{13}cos{2\delta}(1+cos^2{\theta_{12}})\\+2c_{23}sin{2\theta_{12}}cos{2\theta_{12}}cos{\delta}-8s_{23}s_{13}s_{12}^2cos{\delta}-4s_{12}^2c_{23}sin{2\theta_{12}}cos{\delta}-4s_{12}^2cos{2\theta_{12}})\\+s_{23}s_{13}^2(2c_{12}c_{23}cos{\delta}+c_{12}c_{23}cos{2\theta_{12}}cos{\delta}-s_{12}c_{23}sin{2\theta_{12}}cos{\delta}-s_{12}cos{2\theta_{12}})^2\\+s_{23}^2s_{13}^2((s_{12}c_{23}sin{2\theta_{12}}sin{\delta}+c_{12}c_{23}cos{2\theta_{12}}sin{\delta})^2+2s_{23}s_{13}s_{12}^3sin{2\delta}\\(c_{23}s_{12}sin{2\theta_{12}}sin{\delta}+c_{12}c_{23}cos{2\theta_{12}}sin{\delta})))^\frac{1}{2}\end{multlined}}{2s_{12}((-c_{12}s_{12}c_{23}+s_{12}^2s_{23}s_{13}cos{\delta})^2+s_{12}^2s_{23}^2s_{13}^2sin^2{\delta})}
\end{multlined}$


\end{tabular}
\end{table}

桌子是这样的 表格超出页面范围。如何调整

答案1

  • 你应该提供 MWE(最小工作示例),这是一份小而完整的文档,以以下内容开头\documentclass{...}和结尾:\end{document}
  • 如果没有 MWE,您的文档布局是未知的,所以我们不知道您的表格可以有多宽
  • 基于假设,您使用 A4 纸张大小,并且文本边框为 1 英寸,multline重新排列时可能会出现断点,因此表格不会溢出文档的文本区域:
\documentclass{article}
\usepackage{geometry}
\usepackage{mathtools}
\usepackage{makecell, tabularx}

\begin{document}
    \begin{table}[ht]
    \centering
    \setcellgapes{5pt}
    \makegapedcells
\begin{tabularx}{\linewidth}{|>{$}c<{$}|>{\small $\displaystyle}X<{$}|}
    \hline
\text{Case} & \text{Analytical Expressions}   \\
    \hline\hline
C_{11}      & 
\rho_{+}=\frac{\left[\begin{multlined}[0.9\linewidth]
    (\sin^2{2\theta_{12}}c_{12}^2c_{23}^4-s_{13}^2s_{23}^2c_{12}^2c_{23}^2\cos^2{\delta}(2(1+s_{12}^2)-\cos{2\theta_{12}})^2\\
    -c_{12}^2c_{23}^2s_{23}^2s_{13}^2(4c_{23}\sin{2\theta_{12}}\cos{\delta}(1+s_{12}^2)-2s_{23}^2s_{13}\\
    -2c_{23}\cos{2\theta_{12}}\cos{\delta}-s_{23}s_{13}\cos{2\delta}+s_{23}s_{13}\cos^2{2\theta_{12}}\cos{2\delta}-8s_{23}s_{13}s_{12}^2\cos^2{\delta}\\
    +4s_{12}^2s_{23}s_{13}\cos{2\theta_{12}})+s_{23}^2s_{13}^2s_{12}(2c_{12}s_{12}^2c_{23}\sin{\delta}+c_{23}c_{12}\cos{2\theta_{12}}\sin{2\delta})^2\\
    -4c_{12}c_{23}s_{23}s_{13}s_{12}\sin{2\delta}\sin{\delta}(s_{12}^2+2\cos{2\theta_{12}})(2+c_{12}^2))^\frac{1}{2}
    \end{multlined}\right]}
    {2s_{12}((-c_{12}s_{12}c_{23}+s_{12}s_{23}s_{13}\cos{\delta})^2+s_{12}^2s_{23}^2s_{13}^2\sin^2{\delta})} \\
\hline
            & 
\rho_{-}=\frac{\left[\begin{multlined}[0.9\linewidth]
    (\sin^2{2\theta_{12}}c_{12}^2c_{23}^4+c_{12}^2c_{23}^2s_{23}s_{13}(4c_{23}\sin{2\theta_{12}}\cos{\delta} \\
     + 2s_{23}s_{13}+s_{23}s_{13}\cos{2\delta}(1+\cos^2{\theta_{12}})
            +2c_{23}\sin{2\theta_{12}}\cos{2\theta_{12}}\cos{\delta} \\
     - 8s_{23}s_{13}s_{12}^2\cos{\delta}
            -4s_{12}^2c_{23}\sin{2\theta_{12}}\cos{\delta}-4s_{12}^2\cos{2\theta_{12}}) \\
     + s_{23}s_{13}^2(2c_{12}c_{23}\cos{\delta}+c_{12}c_{23}\cos{2\theta_{12}}\cos{\delta}-s_{12}c_{23}\sin{2\theta_{12}}\cos{\delta}-s_{12}\cos{2\theta_{12}})^2\\
     + s_{23}^2s_{13}^2((s_{12}c_{23}\sin{2\theta_{12}}\sin{\delta}+c_{12}c_{23}\cos{2\theta_{12}}\sin{\delta})^2\\
     + 2s_{23}s_{13}s_{12}^3\sin{2\delta}(c_{23}s_{12}\sin{2\theta_{12}}\sin{\delta}+c_{12}c_{23}\cos{2\theta_{12}}\sin{\delta})))^\frac{1}{2}
       \end{multlined}\right]}
    {2s_{12}((-c_{12}s_{12}c_{23}+s_{12}^2s_{23}s_{13}\cos{\delta})^2+s_{12}^2s_{23}^2s_{13}^2\sin^2{\delta})} \\
    \hline
\end{tabularx}
\end{table}
\end{document}

无关:

  • 在您的表格代码中添加了`\setcellgapes{5pt}\makegapedcells``,它在方程式上方和下方插入小的垂直空间
  • cossin是运算符,因此写为\cos\sin
  • 分子用括号括起来,这样更明显地表明它们是分子

在此处输入图片描述

埃迪德: 现在被视为@egreg 评论。

相关内容