diff --git a/crates/typst-library/src/math/equation.rs b/crates/typst-library/src/math/equation.rs index 137ebb9b7..e60c055ad 100644 --- a/crates/typst-library/src/math/equation.rs +++ b/crates/typst-library/src/math/equation.rs @@ -18,7 +18,7 @@ use crate::math::{MathSize, MathVariant}; use crate::model::{Numbering, Outlinable, ParLine, Refable, Supplement}; use crate::text::{FontFamily, FontList, FontWeight, LocalName, TextElem}; -const DEFAULT_COL_GAP: Em = Em::new(1.5); +const DEFAULT_COL_GAP: Em = Em::new(1.0); /// A mathematical equation. /// diff --git a/docs/reference/library/math.md b/docs/reference/library/math.md index ac9c03ddb..c632b286f 100644 --- a/docs/reference/library/math.md +++ b/docs/reference/library/math.md @@ -78,7 +78,7 @@ alternating the alignment twice. `& &` and `&&` behave exactly the same way. Meanwhile, "multiply by 7" is right-aligned because just one `&` precedes it. Each alignment point simply alternates between right-aligned/left-aligned. -By default, there is a gap of `1.5em` added between columns. You can modify this +By default, there is a gap of `1em` added between columns. You can modify this with the [`column-gap`]($math.equation.column-gap) parameter. ```example diff --git a/tests/ref/math-align-columns.png b/tests/ref/math-align-columns.png index 8420ae315..fabfba8a5 100644 Binary files a/tests/ref/math-align-columns.png and b/tests/ref/math-align-columns.png differ diff --git a/tests/ref/math-equation-align-columns-1.png b/tests/ref/math-equation-align-columns-1.png index c5320ed23..c9d211796 100644 Binary files a/tests/ref/math-equation-align-columns-1.png and b/tests/ref/math-equation-align-columns-1.png differ diff --git a/tests/ref/math-multiline-line-spacing.png b/tests/ref/math-multiline-line-spacing.png index 468e92f2b..7d4447893 100644 Binary files a/tests/ref/math-multiline-line-spacing.png and b/tests/ref/math-multiline-line-spacing.png differ