#cover page having border
19 messages · Page 1 of 1 (latest)
using rect perhaps
try this:
?render pagesize=default theme=light
#place(top+left, rect(width: 100%, height: 100%))
#lorem(200)
well
that looks bad
better option:
?render pagesize=default theme=light
#show: block.with(stroke: 0.5pt, width: 100%, height: 100%, inset: 10pt)
#lorem(200)
that might be more desirable
you can also change the stroke there to change the line width
so nice. thank you very much all
Adding the outset on the rect makes it good thanks to @undone ermine
?render pagesize=default theme=light
#place(top+left, rect(width: 100%, height: 100%,outset:1cm))
#lorem(200)
The code has to be a separate message to render
?render pagesize=default theme=light
#place(top+left, rect(width: 100%, height: 100%,outset:1cm))
#lorem(200)
perhaps is there a way to get double stroke as border?
I dont want a fancy border, just as sides look, inner one thick and outer to be thin.
Can you please let me know if there a way. Also for all pages, we can use page background (referred from Gh discussions)
?render pagesize=default theme=light
#set page(
paper: "us-letter",
margin: 1in,
background: rect(
width: 100% - 1in,
height: 100% - 1in,
stroke: 2pt + orange,
),
)
#lorem(200)