Is there a way to handle horizontal block offsets over pagebreaks when using inside/outside margins?

So I have a margin style document and most things are working quite well. However, I want to be able to use the full-width for various things. I attached a sample of the document,

  • pink is the text area,
  • blue is the margin area,

To use the full width as text area I have a function which adds a block to the text area with an extended x range. This however places the text incorrectly when the full width text area is broken across pages.

Since one block is broken across alternate pages it causes the same block configuration to be used across both pages.

For right now I think just making the block unbreakable is probably the best. But it would be nice if there was a show rule that would just work on each of the broken instances of a block.

I also noticed that the author of marginilla had a similar not in the manual:

Note: when using an asyymetric page layout with setup.book: true, wideblocks which span across
pagebreaks are messy, because there is no way for the wideblock to detect the pagebreak and adjust ist
position after it.

Which probably means there is not a practical way to handle this quite yet.

1 Like

Hi @Taylorh140, could you maybe try to revise your post’s title to be a complete question as per the question guidelines:

Good titles are questions you would ask your friend about Typst.

A good title makes the topic easier to grasp, increasing your chances of getting a good answer quickly. We also hope by adhering to this, we make the information in this forum easy to find in the future. Thanks!

Yes, sorry for bad form, hope this is sufficient.

1 Like