diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-10-08 17:58:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-08 15:58:05 +0000 |
| commit | 9ee80762a55c0d173664d9ac33cb762b79341a96 (patch) | |
| tree | 2119100443568e8783554454a500ec34cbf0f5d5 /crates | |
| parent | b7725a7442a0d92ed6e1b4851e33979f9e340283 (diff) | |
Disable line numbers for block equations (#5163)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/math/equation.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst/src/math/equation.rs b/crates/typst/src/math/equation.rs index 963a35c5..babcbb8b 100644 --- a/crates/typst/src/math/equation.rs +++ b/crates/typst/src/math/equation.rs @@ -17,7 +17,7 @@ use crate::layout::{ use crate::math::{ scaled_font_size, MathContext, MathRunFrameBuilder, MathSize, MathVariant, }; -use crate::model::{Numbering, Outlinable, ParElem, Refable, Supplement}; +use crate::model::{Numbering, Outlinable, ParElem, ParLine, Refable, Supplement}; use crate::syntax::Span; use crate::text::{ families, variant, Font, FontFamily, FontList, FontWeight, LocalName, TextElem, @@ -180,6 +180,7 @@ impl ShowSet for Packed<EquationElem> { if self.block(styles) { out.set(AlignElem::set_alignment(Alignment::CENTER)); out.set(BlockElem::set_breakable(false)); + out.set(ParLine::set_numbering(None)); out.set(EquationElem::set_size(MathSize::Display)); } else { out.set(EquationElem::set_size(MathSize::Text)); |
