Skip to content

Commit

Permalink
refactor(templates): Specifically call our float variant
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 26, 2021
1 parent 9474307 commit b2334f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion casile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ end

SILE.registerCommand("dropcap", function (_, content)
local h = SILE.measurement("2em"):absolute() + SILE.measurement("1bs"):absolute()
SILE.call("float", { bottomboundary = "1.2ex", rightboundary = "1spc" }, function ()
SILE.call("refloat", { bottomboundary = "1.2ex", rightboundary = "1spc" }, function ()
SILE.call("cabook:font:chaptertitle", { size = h, weight = 800 }, content)
end)
end)
Expand Down
2 changes: 1 addition & 1 deletion refloat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ local splitFrame = function (used, width, height)
current.next = wrap.id
end

SILE.registerCommand("float", function (options, content)
SILE.registerCommand("refloat", function (options, content)
local used = lockAdvance()
if #SILE.typesetter.state.nodes > 0 then
SU.error("Node queue not empty")
Expand Down

0 comments on commit b2334f6

Please sign in to comment.