summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-03-14 09:44:03 +0100
committerGitHub <noreply@github.com>2024-03-14 08:44:03 +0000
commitc2ca3615d72ab6e7f2c29018f4a1e525b898e11d (patch)
tree35414089075641b20233c79614d12575d870a240 /crates
parent7c61ccac71fbdc4fd6fe905f86703b48a53c8d06 (diff)
Fix sizing of nested equations (#3664)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/math/equation.rs2
1 files changed, 2 insertions, 0 deletions
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<EquationElem> {
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(