Skip to content

Commit

Permalink
fix(layouts): Revamp pocket book layout matching a5trim usage
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Apr 19, 2024
1 parent ffae92e commit c9b551f
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions layouts/cep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,39 @@ return function (class)

if class._name == "cabook" then

class:loadPackage("masters", {{
id = "right",
firstContentFrame = "content",
frames = {
content = {
class.defaultFrameset = {
content = {
left = "left(page) + 20mm",
right = "right(page) - 10mm",
top = "top(page) + 20mm",
bottom = "top(footnotes)"
},
runningHead = {
},
runningHead = {
left = "left(content)",
right = "right(content)",
top = "top(content) - 10mm",
bottom = "top(content) - 2mm"
},
footnotes = {
},
footnotes = {
left = "left(content)",
right = "right(content)",
height = "0",
bottom = "bottom(page) - 15mm"
}
}
}})
},
}

SILE.setCommandDefaults("imprint:font", { size = "7pt" })
class:registerPostinit(function (_)
SILE.setCommandDefaults("imprint:font", { size = "7pt" })
end)

-- Hack to avoid SILE bug in print editions
-- See https://github.com/simoncozens/sile/issues/355
class:registerCommand("href", function (options, content)
if class.options.verseindex then
SILE.call("markverse", options, content)
end
SILE.process(content)
end)

end

Expand Down

0 comments on commit c9b551f

Please sign in to comment.