Skip to content

Commit

Permalink
fix(math): Math font size must follow the document font size
Browse files Browse the repository at this point in the history
Math formula in block quotes, footnotes, and even headers
shall use the current document font size, not some hard-coded
10pt default.
  • Loading branch information
Omikhleia authored and Didier Willis committed Oct 23, 2024
1 parent 3a0ef46 commit 4c1bd3b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/math/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ function package.declareSettings (_)
})
SILE.settings:declare({
parameter = "math.font.size",
type = "integer",
default = 10,
type = "number or integer",
default = SILE.settings:get("font.size"),
})
SILE.settings:registerHook ("font.size", function (size)
-- Follow document font size changes
SILE.settings:set("math.font.size", size)
end)
-- Whether to show debug boxes around mboxes
SILE.settings:declare({
parameter = "math.debug.boxes",
Expand Down

0 comments on commit 4c1bd3b

Please sign in to comment.