表格中方程式的悬挂缩进

表格中方程式的悬挂缩进

我目前有以下代码

\begin{center}
\begin{tabular}{l|p{5in}}
Differential Equation & $(1273628x^{4} + 1237129387x^{3} + 12831729x^{2})f'''(x)
   + (9x^{3} + 12392183012938120x^{2} + x)f'(x) + 120938120xf(x) = 0$\\\hline
Notes & Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam imperdiet, 
nunc ac euismod adipiscing, arcu erat pellentesque turpis, a tincidunt velit 
est sed sem. Proin dolor purus, eleifend vel pellentesque sit amet, lobortis 
non nibh. Duis in lacus eget odio varius interdum. Fusce pretium lectus sit 
amet metus molestie sit amet mollis ante viverra. Fusce eget augue vitae elit 
blandit facilisis. Nullam ultrices felis quis magna dignissim auctor. Cras 
dignissim porttitor nisl, id viverra sapien ornare ac. Proin adipiscing, dui 
at tempor faucibus, purus lacus aliquet nulla, ac dictum arcu erat nec felis. 
Aliquam rutrum nunc nec ligula euismod scelerisque. Nam interdum tincidunt 
tellus id malesuada. Pellentesque id elit nibh, vel scelerisque turpis. Proin 
\end{tabular}
\end{center}

如何使注释相对于 Lorem ipsum 段落的高度居中,以及如何在微分方程行中的方程上进行悬挂缩进?

答案1

  • 对于垂直居中,请使用array包和m列。

  • 对于方程式,如果您希望避免周围的垂直空间,我建议使用多行环境amsmath,例如multline*或或内联数学模式中的对齐公式块。\align*

以下是一个使用alignedatfrom 的示例amsmath

\documentclass[10pt]{article}
\usepackage{array}
\usepackage{amsmath}
\begin{document}
\begin{center}
\begin{tabular}{l|m{4in}}
Differential Equation & $\begin{alignedat}{1}
  (1273628x^{4} + 1237129387x^{3} + 12831729x^{2})f'''(x)& \\
   + (9x^{3} + 12392183012938120x^{2} + x)f'(x)&\\
   + 120938120xf(x) &= 0
  \end{alignedat}$\\\hline
Notes & Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam imperdiet, 
nunc ac euismod adipiscing, arcu erat pellentesque turpis, a tincidunt velit 
est sed sem. Proin dolor purus, eleifend vel pellentesque sit amet, lobortis 
non nibh. Duis in lacus eget odio varius interdum. Fusce pretium lectus sit 
amet metus molestie sit amet mollis ante viverra. Fusce eget augue vitae elit 
blandit facilisis. Nullam ultrices felis quis magna dignissim auctor. Cras 
dignissim porttitor nisl, id viverra sapien ornare ac. Proin adipiscing, dui 
at tempor faucibus, purus lacus aliquet nulla, ac dictum arcu erat nec felis. 
Aliquam rutrum nunc nec ligula euismod scelerisque. Nam interdum tincidunt 
tellus id malesuada. Pellentesque id elit nibh, vel scelerisque turpis. Proin 
\end{tabular}
\end{center}
\end{document}

带方程的表格

相关内容