Replies: 2 comments 3 replies
-
I am afraid that I don't understand the idea here (nor the hard-coded values in the example, regardless of the paper size). Is there something you can't achieve with the existing frame definition logic, or that can't be made with a (thin) layer on top of it? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation, I think I got it! As far as I know, it's quite unusual in page layout design to refer to the center of the page -- most page layouts I've heard of are usually defined by the text block's dimensions and the margins, often in some relative arithmetic proportions (for instance, most page layouts mentioned by Bringhurst in his Elements of Typographic Styles are of that kind) -- so I am unsure, honestly, that extending frame syntax at its lowest level would be a good idea or not. I sincerely don't know if it's a "smarter" way or not -- page layout design is never simple (and Bringhurst remains quite general here1) --, but my own approach to the topic in my resilient module was to propose a few (more-or-less standard) "page layouts," so that (end-)users wouldn't always have to dabble into the details of constructing their own low-level framesets. Ideally, these layouts can be extended (and I actually reluctantly added a "geometry" layout at one point for users who think they know what their margins should be). Notwithstanding implementation details, it does eventually looks like your function above (i.e. it ends up returning framesets). Footnotes
|
Beta Was this translation helpful? Give feedback.
-
I know we can just do
But in this case (x, y) will always point to the top-left corner. Personally, I prefer that coordinates could point to the frame center as well.
I'm afraid about how naive my approach is, but I couldn't think how to handle
width
andheight
options and the centered coordinates at the same time:Beta Was this translation helpful? Give feedback.
All reactions