翻訳済み
このページは日本語に翻訳済みです。
equation
ElementElement functions can be customized with set
and show
rules.
Element functions can be customized with
set
and show
rules.数式。
数式は、テキスト内にインラインで表示することも、独立したブロックとして表示することもできます。 数式をブロックレベルにするには、 開始ドル記号の直後と終了ドル記号の直前に少なくとも1つのスペースを挿入してください。
例
#set text(font: "New Computer Modern")
Let $a$, $b$, and $c$ be the side
lengths of right-angled triangle.
Then, we know that:
$ a^2 + b^2 = c^2 $
Prove by induction:
$ sum_(k=1)^n k = (n(n+1)) / 2 $

デフォルトでは、ブロックレベルの数式はページをまたいで分割されません。
これはshow math.equation: set block(breakable: true)
を使用して変更できます。
構文
この関数には専用の構文もあります。 数式のマークアップをドル記号で囲むことで、数式を作成します。 式の先頭と末尾にそれぞれ少なくとも1つのスペースを挿入すると、 数式は独立したブロックとして扱われ、水平中央に配置されます。 数式の構文の詳細については、数式のメインページを参照してください。
引数Parameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
block
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.数式が独立したブロックとして表示されるかどうか。
デフォルト値: false
numbering
ブロックレベル数式への番号付け方法。
デフォルト値: none
例を表示
#set math.equation(numbering: "(1)")
We define:
$ phi.alt := (1 + sqrt(5)) / 2 $ <ratio>
With @ratio, we get:
$ F_n = floor(1 / sqrt(5) phi.alt^n) $

number-align
SettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable
Settable parameters can be customized for all following uses of the function with a
set
rule.数式番号の配置。
デフォルトでは、数式の配置はend + horizon
です。
水平方向の成分にはright
、left
、
またはテキスト方向のstart
とend
を使用できます。
垂直方向の成分には、top
、horizon
、またはbottom
を使用できます。
デフォルト値: end + horizon
例を表示
#set math.equation(numbering: "(1)", number-align: bottom)
We can calculate:
$ E &= sqrt(m_0^2 + p^2) \
&approx 125 "GeV" $

supplement
数式に用いる補足語。
見出しを参照する際、補足語が参照番号の前に追加されます。
関数を指定した場合、参照された数式が引数として渡され、 その関数は表示されるコンテンツを返す必要があります。
デフォルト値: auto
例を表示
#set math.equation(numbering: "(1)", supplement: [Eq.])
We define:
$ phi.alt := (1 + sqrt(5)) / 2 $ <ratio>
With @ratio, we get:
$ F_n = floor(1 / sqrt(5) phi.alt^n) $

body
RequiredRequired parameters must be specified when calling the function.PositionalPositional parameters are specified in order, without names.
Required
Required parameters must be specified when calling the function.
Positional
Positional parameters are specified in order, without names.
数式の内容。