Skip to content

Commit

Permalink
fix(layouts): Fixup octavo and royaloctavo framesets in new class design
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 31, 2024
1 parent a6ac22d commit 63a0098
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 56 deletions.
44 changes: 19 additions & 25 deletions layouts/octavo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,25 @@ return function (class)
class.options.papersize = "432pt x 648pt"

if class._name == "cabook" then
class:loadPackage("masters", {
{
id = "right",
firstContentFrame = "content",
frames = {
content = {
left = "left(page) + 22.5mm",
right = "right(page) - 15mm",
top = "top(page) + 20mm",
bottom = "top(footnotes)",
},
runningHead = {
left = "left(content)",
right = "right(content)",
top = "top(content) - 8mm",
bottom = "top(content) - 2mm",
},
footnotes = {
left = "left(content)",
right = "right(content)",
height = "0",
bottom = "bottom(page) - 15mm",
},
},
class.defaultFrameset = {
content = {
left = "left(page) + 22.5mm",
right = "right(page) - 15mm",
top = "top(page) + 20mm",
bottom = "top(footnotes)",
},
})
runningHead = {
left = "left(content)",
right = "right(content)",
top = "top(content) - 8mm",
bottom = "top(content) - 2mm",
},
footnotes = {
left = "left(content)",
right = "right(content)",
height = "0",
bottom = "bottom(page) - 15mm",
},
}
end
end
56 changes: 25 additions & 31 deletions layouts/royaloctavo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,31 @@ return function (class)
class.options.papersize = "165mm x 250mm"

if class._name == "cabook" then
class:loadPackage("masters", {
{
id = "right",
firstContentFrame = "content",
frames = {
content = {
left = "left(page) + 22.5mm",
right = "right(page) - 15mm",
top = "22mm",
bottom = "top(footnotes)",
},
runningHead = {
left = "left(content)",
right = "right(content)",
top = "top(content) - 10mm",
bottom = "top(content) - 4mm",
},
footnotes = {
left = "left(content)",
right = "right(content)",
height = "0",
bottom = "top(folio) - 5mm",
},
folio = {
left = "left(content)",
right = "right(content)",
height = "5mm",
bottom = "bottom(page) - 12.5mm",
},
},
class.defaultFrameset = {
content = {
left = "left(page) + 22.5mm",
right = "right(page) - 15mm",
top = "22mm",
bottom = "top(footnotes)",
},
})
runningHead = {
left = "left(content)",
right = "right(content)",
top = "top(content) - 10mm",
bottom = "top(content) - 4mm",
},
footnotes = {
left = "left(content)",
right = "right(content)",
height = "0",
bottom = "top(folio) - 5mm",
},
folio = {
left = "left(content)",
right = "right(content)",
height = "5mm",
bottom = "bottom(page) - 12.5mm",
},
}
end
end

0 comments on commit 63a0098

Please sign in to comment.