You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ability to wrap every page in a custom frame #1412
I don't know how to put that in the words, but here is an example of a document:
This is the outline page for a semester project report in my Uni. As you can see, the page content is wrapped in a frame, in this case with additional tables. Almost every page of the report (except the title page and some pages in the end) must be put in such a frame. The frame contains page number and a lot of cells for some additional info.
If I had to guess, the possible API might look like what we have with figures. We can modify the way the figures are presented using a show rule. Show argument contains properties such as kind, body, supplement, counter, and you can use them however you like.
With page, it could be something like this (simplest example with pages inside a rectangle):
show page: it => {
place(
bottom + center,
it.counter.display(it.numbering),
)
rect(
width: 100%,
height: 95%,
it.body
)
}
However, there's also a problem that right now you can't pagebreak() inside other elements, which needs to be addressed.
Use Case
In my case, it's required to generate a university report.
I didn't think of that. Perhaps it's possible to do it using the page background, but still it looks like a hack, since we would need to adjust the borders of the page to not touch the background frame. Do I get it right?
I didn't think of that. Perhaps it's possible to do it using the page background, but still it looks like a hack, since we would need to adjust the borders of the page to not touch the background frame. Do I get it right?
I wouldn't go as far as calling it a hack, but you would have to take into account a few things, yes.
Activity
Enivex commentedon Jun 5, 2023
You can do this by putting it in the page background
teenjuna commentedon Jun 5, 2023
I didn't think of that. Perhaps it's possible to do it using the page background, but still it looks like a hack, since we would need to adjust the borders of the page to not touch the background frame. Do I get it right?
Enivex commentedon Jun 5, 2023
I wouldn't go as far as calling it a hack, but you would have to take into account a few things, yes.