From c2ca3615d72ab6e7f2c29018f4a1e525b898e11d Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 14 Mar 2024 09:44:03 +0100 Subject: Fix sizing of nested equations (#3664) --- crates/typst/src/math/equation.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates') diff --git a/crates/typst/src/math/equation.rs b/crates/typst/src/math/equation.rs index eb8f8f66..c5cb9132 100644 --- a/crates/typst/src/math/equation.rs +++ b/crates/typst/src/math/equation.rs @@ -176,6 +176,8 @@ impl ShowSet for Packed { if self.block(styles) { out.set(AlignElem::set_alignment(Alignment::CENTER)); out.set(EquationElem::set_size(MathSize::Display)); + } else { + out.set(EquationElem::set_size(MathSize::Text)); } out.set(TextElem::set_weight(FontWeight::from_number(450))); out.set(TextElem::set_font(FontList(vec![FontFamily::new( -- cgit v1.2.3