mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Add missing .op
modifiers
This commit is contained in:
parent
149e2b055b
commit
ef44c3848a
@ -34,13 +34,13 @@ math: |
|
|||||||
|
|
||||||
```example
|
```example
|
||||||
$ A = pi r^2 $
|
$ A = pi r^2 $
|
||||||
$ "area" = pi dot "radius"^2 $
|
$ "area" = pi dot.op "radius"^2 $
|
||||||
$ cal(A) :=
|
$ cal(A) :=
|
||||||
{ x in RR | x "is natural" } $
|
{ x in RR | x "is natural" } $
|
||||||
```
|
```
|
||||||
|
|
||||||
Math mode makes a wide selection of [symbols]($category/math/symbols) like
|
Math mode makes a wide selection of [symbols]($category/math/symbols) like
|
||||||
`pi`, `dot`, or `RR` available. Many mathematical symbols are available in
|
`pi`, `dot.op`, or `RR` available. Many mathematical symbols are available in
|
||||||
different variants. You can select between different variants by applying
|
different variants. You can select between different variants by applying
|
||||||
[modifiers]($type/symbol) to the symbol. Typst further recognizes a number of
|
[modifiers]($type/symbol) to the symbol. Typst further recognizes a number of
|
||||||
shorthand sequences like `=>` that approximate a symbol. When such a shorthand
|
shorthand sequences like `=>` that approximate a symbol. When such a shorthand
|
||||||
|
@ -11,7 +11,7 @@ const VERTICAL_PADDING: Ratio = Ratio::new(0.1);
|
|||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
/// ```example
|
/// ```example
|
||||||
/// $ vec(a, b, c) dot vec(1, 2, 3)
|
/// $ vec(a, b, c) dot.op vec(1, 2, 3)
|
||||||
/// = a + 2b + 3c $
|
/// = a + 2b + 3c $
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
@ -139,7 +139,7 @@ impl LayoutMath for MatNode {
|
|||||||
/// ## Example
|
/// ## Example
|
||||||
/// ```example
|
/// ```example
|
||||||
/// $ f(x, y) := cases(
|
/// $ f(x, y) := cases(
|
||||||
/// 1 "if" (x dot y)/2 <= 0,
|
/// 1 "if" (x dot.op y)/2 <= 0,
|
||||||
/// 2 "if" x "is even",
|
/// 2 "if" x "is even",
|
||||||
/// 3 "if" x in NN,
|
/// 3 "if" x in NN,
|
||||||
/// 4 "else",
|
/// 4 "else",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user