Change default value to 1em

This commit is contained in:
mkorje 2024-12-18 00:20:05 +11:00 committed by mkorje
parent 8e13d1ecb8
commit f7bb5f72c5
No known key found for this signature in database
5 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ use crate::math::{MathSize, MathVariant};
use crate::model::{Numbering, Outlinable, ParLine, Refable, Supplement}; use crate::model::{Numbering, Outlinable, ParLine, Refable, Supplement};
use crate::text::{FontFamily, FontList, FontWeight, LocalName, TextElem}; 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. /// A mathematical equation.
/// ///

View File

@ -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. Meanwhile, "multiply by 7" is right-aligned because just one `&` precedes it.
Each alignment point simply alternates between right-aligned/left-aligned. 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. with the [`column-gap`]($math.equation.column-gap) parameter.
```example ```example

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 B

After

Width:  |  Height:  |  Size: 459 B