数式したい(#math.equation

 1#set math.equation(numbering: "(1)")
 2#show math.equation: text.with(font: "Noto Sans Math")
 3
 4// インライン表示
 5$a^(2) + b^(2) = c^(2)$
 6
 7// ブロック表示
 8$ a^(2) + b^(2) = c^(2) $
 9
10// ブロック表示(オススメ)
11$
12a^(2) + b^(2) = c^(2)
13$

デフォルトで数式モジュールが使えます。 数式モード/ブロックを$記号で表現するのはLaTeXと同じです。 $のあとに空白を追加すると数式ブロックになります。

式番号したい(#math.equation.numbering

1#set math.equation(
2  numbering: "(1)",
3  number-align: end + horizon
4)
5
6#set math.equation(
7  numbering: "(1)",
8  number-align: left  + bottom
9  )

numberingオプションで、式番号を設定できます。 ブロック表示の#math.equationに数式番号が自動採番されます。

number-alignで数式番号を表示する位置を変更できます。 デフォルトはend + horizonです。 right | leftもしくはstart | end + top | horizon | bottomの組み合わせで指定します。

数式フォントしたい

1#show math.equation: text.with("Noto Sans Math")

せっかくなので数式に適したフォントに変更しましょう。

時間微分したい(dot / dot.double

1// 時間微分
2$dot(x)$
3
4// 2階の時間微分
5$dot.double(x)$

ラグランジアン密度したい(#math.cal)

1$cal(L)$

集合したい(#math.bb

1$bb(R)$ or $RR$  // 実数
2$bb(C)$ or $CC$  // 複素数
3$bb(N)$ or $NN$  // 自然数
4
5$x in RR$  // xは実数

数式モードでテキストしたい

1$N_("SK")^("obs")$

数式モードの中で、テキストを立体(ローマン体)で表示できます。

参考

LaTeXでは次のように書きます。 \textみたいなコマンドが不要なことがわかります。

$N_{\text{SK}}^{\text{obs}}$

リファレンス