mirror of
https://github.com/typst/typst
synced 2025-05-18 19:15:29 +08:00
Change default value to 1em
This commit is contained in:
parent
8e13d1ecb8
commit
f7bb5f72c5
@ -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.
|
||||||
///
|
///
|
||||||
|
@ -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 |
Loading…
x
Reference in New Issue
Block a user