Skip to content

如何让 cases 里面的分数/公式显示成 display 形式?

如何让 cases 里面的分数/公式显示成 display 形式?

typst
#import "@preview/physica:0.9.8": *
#let dcases(..args) = math.cases(..args.pos().map(math.display), ..args.named())
$
  dcases(nabla dot vb(D) &= 4 pi rho_"f ",
  nabla dot vb(B) &= 0,
  nabla times vb(E) &= -  1/c pdv(,t) vb(B),
  nabla times vb(H) &= (4pi)/c vb(J)_"f " +1/c pdv(,t) vb(D))
$
其中 $rho_"f ",vb(J)_"f "$ 指自由电荷密度和自由电流密度,$vb(E),vb(B),vb(D),vb(H)$ 分别指电场强度、磁感应强度、极化位移矢量和磁场强度。
Typst compiled image

贡献者

The avatar of contributor named as Y.D.X. Y.D.X.
The avatar of contributor named as QuadnucYard QuadnucYard
The avatar of contributor named as Copilot Copilot
The avatar of contributor named as flaribbit flaribbit
The avatar of contributor named as sjfhsjfh sjfhsjfh

页面历史

Comments
  • Latest
  • Oldest
  • Hottest

基于 MIT 许可发布