Latex 中的多線方程

Latex 中的多線方程

無論如何,是否可以在乳膠中自動編寫多行方程,我的意思是不使用換行符或其他手動換行符。當第一行到達頁面右邊距的邊緣時,是否可以告訴乳膠從下一行開始?

答案1

你可以使用這個breqn包,但是......

  • 閱讀手動的在使用它之前(否則你不會明白,為什麼沒有任何東西可以按預期工作)。
  • 許多 TeX.SX 用戶(包括我自己)相信,breqn造成更多問題比它解決的。

以下範例摘自breqn手冊:

\documentclass{article}
\pagestyle{empty}% for cropping
\usepackage{breqn}
\begin{document}
Replace $j$ by $h-j$ and by $k-j$ in these sums to get [cf.~(26)]
\begin{dmath}[label={sna74}]
  \frac{1}{6} \left(\sigma(k,h,0) +\frac{3(h-1)}{h}\right)
  +\frac{1}{6} \left(\sigma(h,k,0) +\frac{3(k-1)}{k}\right)
  =\frac{1}{6} \left(\frac{h}{k} +\frac{k}{h} +\frac{1}{hk}\right)
  +\frac{1}{2} -\frac{1}{2h} -\frac{1}{2k},
\end{dmath}
which is equivalent to the desired result.
\end{document}

在此輸入影像描述

相關內容