summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-12 23:12:22 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-12 23:12:22 +0100
commitdca478182b99b43e1af697d35820a22135bc16ff (patch)
tree6b409feedb21ca91a311dc2d38c15fc879c3f1c5 /library
parenta8f2e85f96ae5f9438847a64d9b66b3d6c18ec7f (diff)
Update changelog
Diffstat (limited to 'library')
-rw-r--r--library/src/layout/container.rs7
-rw-r--r--library/src/math/op.rs7
2 files changed, 14 insertions, 0 deletions
diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs
index 49ce0372..a77c0df9 100644
--- a/library/src/layout/container.rs
+++ b/library/src/layout/container.rs
@@ -41,6 +41,13 @@ use crate::prelude::*;
/// - height: `Rel<Length>` (named)
/// The height of the box.
///
+/// - baseline: `Rel<Length>` (named)
+/// An amount to shift the box's baseline by.
+///
+/// ```example
+/// Image: #box(baseline: 40%, image("tiger.jpg", width: 2cm)).
+/// ```
+///
/// ## Category
/// layout
#[func]
diff --git a/library/src/math/op.rs b/library/src/math/op.rs
index d9965db1..772013bd 100644
--- a/library/src/math/op.rs
+++ b/library/src/math/op.rs
@@ -5,6 +5,13 @@ use super::*;
/// # Text Operator
/// A text operator in a math formula.
///
+/// ## Example
+/// ```example
+/// $ tan x = (sin x)/(cos x) $
+/// $ op("custom",
+/// limits: #true)_(n->oo) n $
+/// ```
+///
/// ## Predefined Operators
/// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`,
/// `cos`, `cosh`, `cot`, `ctg`, `coth`, `csc`, `deg`, `det`, `dim`,