summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/src/general/changelog.md30
-rw-r--r--library/src/layout/container.rs7
-rw-r--r--library/src/math/op.rs7
3 files changed, 43 insertions, 1 deletions
diff --git a/docs/src/general/changelog.md b/docs/src/general/changelog.md
index 30608024..622fa583 100644
--- a/docs/src/general/changelog.md
+++ b/docs/src/general/changelog.md
@@ -5,6 +5,34 @@ description: |
---
# Changelog
+## February 12, 2023
+- Shapes, images, and transformations (move/rotate/scale/repeat) are now
+ block-level. To integrate them into a paragraph, use a [`box`]($func/box) as
+ with other elements.
+- A colon is now required in an "everything" show rule: Write `{show: it => ..}`
+ instead of `{show it => ..}`. This prevents intermediate states that ruin
+ your whole document.
+- Non-math content like a shape or table in a math formula is now centered
+ vertically
+- Support for widow and orphan prevention within containers
+- Support for [RTL]($func/text.dir) in lists, grids, and tables
+- Support for explicit `{auto}` sizing for boxes and shapes
+- Support for fractional (i.e. `{1fr}`) widths for boxes
+- Fixed bug where columns jump to next page
+- Fixed bug where list items have no leading
+- Fixed relative sizing in lists, squares and grid auto columns
+- Fixed relative displacement in [`place`]($func/place) function
+- Fixed that lines don't have a size
+- Fixed bug where `{set document(..)}` complains about being after content
+- Fixed parsing of `{not in}` operation
+- Fixed hover tooltips in math
+- Fixed bug where a heading show rule may not contain a pagebreak when an
+ outline is present
+- Added [`baseline`]($func/box.baseline) property on [`box`]($func/box)
+- Added [`tg`]($func/op) and [`ctg`]($func/op) operators in math
+- Added delimiter setting for [`cases`]($func/cases) function
+- Parentheses are now included when accepting a function autocompletion
+
## February 2, 2023
- Merged text and math symbols, renamed a few symbols
(including `infty` to `infinity` with the alias `oo`)
@@ -103,7 +131,7 @@ description: |
- Tooltips for all buttons
- Improved account protection
- Moved Status indicator into the error list button
-- Fixes
+- Further fixes
- Multiple bug fixes for incremental parser
- Fixed closure parameter capturing
- Fixed tons of math bugs
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`,