长方程式的自动拆分

长方程式的自动拆分

有一个breqn可以自动拆分长数学公式的包。我用过它,但是遇到了三个问题。

  • 首先:如何实现包文档中描述的“Drop Ladder Layout” breqn
  • 第二:如何才能使等式中的右侧达到不规则的右对齐?
  • 第三:如何在其中实现分页符breqn

谢谢,彼得

以下是包含问题的代码:

\documentclass[10pt, a5paper]{article}
\usepackage{amsmath}
\usepackage[]{breqn}

\renewcommand\[{\begin{dmath}}
\renewcommand\]{\end{dmath}}

%\allowdisplaybreaks
%\interdisplaylinepenalty=0

\begin{document}

\[
P_{5 \text{,}\: avg\text{,}\: var1}\left(T_1\right) 
= \left( \lambda _{DU}+\lambda _{DD} \right) \lambda _{DR}\,T_{1}
+\left(  \left( -\frac{1}{2}\,\mu _{0}\,\lambda _{DD}-\frac{1}{3}\,{\lambda _{DD}}^{2}   -\lambda _{DU}\,\lambda _{DD}-\frac{1}{4}\,\lambda _{DD}\,\mu _{DR}
-\frac{1}{5}\,{\lambda _{DU}}^{2}-\frac{1}{6}\,\lambda _{DU}\,\mu _{DR}
-\frac{1}{7}\,\mu _{LT}\,\lambda _{DU} \right) \lambda _{DR}
-\left( \frac{1}{8}\,\lambda _{DU}+\frac{1}{9}\,\lambda _{DD} \right) {\lambda _{DR}}^{2} \right) {T_{1}}^{2}
 + \left(  \left( \frac{1}{10}\,\lambda _{DD}\,{\mu _{0}}^{2}+\frac{1}{20}\,\mu _{0}\,{\lambda _{DD}}^{2} 
 +\frac{1}{30}\,\mu _{0}\,\lambda _{DU}\,\lambda _{DD}+\frac{1}{40}\,{\lambda _{DD}}^{3}
 +\frac{1}{50}\,\lambda _{DU}\,{\lambda _{DD}}^{2}+\,\frac{1}{60}\,{\lambda _{DD}}^{2}\,\mu _{DR} 
 +\frac{1}{70}\,{\lambda _{DU}}^{2}\,\lambda _{DD}+\frac{1}{80}\,\lambda _{DU}\,\lambda _{DD}\,\mu _{DR}
 +\frac{1}{90}\,\lambda _{DD}\,\mu _{LT}\,\lambda _{DU}+\frac{1}{100}\,\lambda _{DD}\,{\mu _{DR}}^{2} 
 +\frac{1}{110}\,{\lambda _{DU}}^{3}+\frac{1}{120}\,{\lambda _{DU}}^{2}\,\mu _{DR} 
 +\frac{1}{130}\,\mu _{LT}\,{\lambda _{DU}}^{2}+\frac{1}{140}\,\lambda _{DU}\,{\mu _{DR}}^{2}  
 +\frac{1}{150}\,{\mu _{LT}}^{2}\,\lambda _{DU} \right) \lambda _{DR} 
 +\left( \frac{1}{160}\,\lambda _{DD}\,\mu _{0}+\frac{1}{170}\,{\lambda _{DD}}^{2}
 +\frac{1}{180}\,\lambda _{DU}\,\lambda _{DD}+\frac{1}{190}\,\lambda _{DD}\,\mu _{DR} 
 +\frac{1}{200}\,{\lambda _{DU}}^{2}+\frac{1}{210}\,\lambda _{DU}\,\mu _{DR} 
 +\frac{1}{220}\,\mu _{LT}\,\lambda _{DU} \right) {\lambda _{DR}}^{2} 
 +\left(\frac{1}{230}\, \lambda _{DU}+\frac{1}{240}\,\lambda _{DD}\right) {\lambda _{DR}}^{3} \right) {T_{1}}^{3} \text{.}
\]

\end{document}

答案1

我认为使用任何包都无法获得良好的结果。相反breqn,使用 几乎是不可能的。

\documentclass[10pt, a5paper]{article}
\usepackage{amsmath}

\begin{document}

\begin{flushleft}
\linespread{2.5}\selectfont
\leftskip=3em
\hspace*{-3em}$\displaystyle
P^{}_{5,\,\mathrm{avg},\, \mathrm{var}1}(T_1) 
= ( \lambda _{DU}+\lambda _{DD} ) \lambda _{DR}T_{1}
+\biggl(  \biggl( -\frac{1}{2}\mu _{0}\lambda _{DD}-\frac{1}{3}{\lambda _{DD}}^{2}
-\lambda _{DU}\lambda _{DD}-\frac{1}{4}\lambda _{DD}\mu _{DR}
-\frac{1}{5}{\lambda _{DU}}^{2}-\frac{1}{6}\lambda _{DU}\mu _{DR}
-\frac{1}{7}\mu _{LT}\lambda _{DU} \biggr) \lambda _{DR}
-\biggl( \frac{1}{8}\lambda _{DU}+\frac{1}{9}\lambda _{DD} \biggr)
  {\lambda _{DR}}^{2} \biggr) {T_{1}}^{2}
+ \biggl(  \biggl( \frac{1}{10}\lambda _{DD}{\mu _{0}}^{2}
+\frac{1}{20}\mu _{0}{\lambda _{DD}}^{2} 
+\frac{1}{30}\mu _{0}\lambda _{DU}\lambda _{DD}+\frac{1}{40}{\lambda _{DD}}^{3}
+\frac{1}{50}\lambda _{DU}{\lambda _{DD}}^{2}+\frac{1}{60}{\lambda _{DD}}^{2}\mu _{DR} 
+\frac{1}{70}{\lambda _{DU}}^{2}\lambda _{DD}+\frac{1}{80}\lambda _{DU}\lambda _{DD}\mu _{DR}
+\frac{1}{90}\lambda _{DD}\mu _{LT}\lambda _{DU}+\frac{1}{100}\lambda _{DD}{\mu _{DR}}^{2} 
+\frac{1}{110}{\lambda _{DU}}^{3}+\frac{1}{120}{\lambda _{DU}}^{2}\mu _{DR} 
+\frac{1}{130}\mu _{LT}{\lambda _{DU}}^{2}+\frac{1}{140}\lambda _{DU}{\mu _{DR}}^{2}  
+\frac{1}{150}{\mu _{LT}}^{2}\lambda _{DU} \biggr) \lambda _{DR} 
+\biggl( \frac{1}{160}\lambda _{DD}\mu _{0}+\frac{1}{170}{\lambda _{DD}}^{2}
+\frac{1}{180}\lambda _{DU}\lambda _{DD}+\frac{1}{190}\lambda _{DD}\mu _{DR} 
+\frac{1}{200}{\lambda _{DU}}^{2}+\frac{1}{210}\lambda _{DU}\mu _{DR} 
+\frac{1}{220}\mu _{LT}\lambda _{DU} \biggr) {\lambda _{DR}}^{2} 
+\biggl(\frac{1}{230} \lambda _{DU}+\frac{1}{240}\lambda _{DD}\biggr)
  {\lambda _{DR}}^{3} \biggr) {T_{1}}^{3}.
$
\end{flushleft}

\end{document}

它也很丑,但比 的要好一些breqn。而且它跨页显示。

在此处输入图片描述

注意。我删除了所有\,无用的东西;不清楚为什么输入{T_{1}}^{2}而不是惯用的T_{1}^{2}。特别是{\lambda_{DD}}^{2}会导致非常不清楚的输出,因为上标看起来更像是DD而不是\lambda_{DD}

相关内容