Skip to content

How to adjust margins in book class #1601

Answered by alerque
CatholicPenguin asked this question in Q&A
Discussion options

You must be logged in to vote

Pulling together previous comments with modern SILE APIs, define a new class for your project like this. Write a Lua file called clasases/mybook.lua with contents like this:

local book = require("classes.book")

local class = pl.class(book)
class._name = "mybook"

class.defaultFrameset = {
   content = {
      left = "8.3%pw",
      right = "86%pw",
      top = "11.6%ph",
      bottom = "top(footnotes)",
   },
   folio = {
      left = "left(content)",
      right = "right(content)",
      top = "bottom(footnotes)+3%ph",
      bottom = "bottom(footnotes)+5%ph",
   },
   runningHead = {
      left = "left(content)",
      right = "right(content)",
      top = "top(content)-8%ph",
      bottom

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Omikhleia
Comment options

Answer selected by Omikhleia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Ask for advice or investigate solutions documentation Documentation bug or improvement issue
4 participants
Converted from issue

This discussion was converted from issue #989 on November 09, 2022 12:46.