typst-drafting icon indicating copy to clipboard operation
typst-drafting copied to clipboard

Using `set-page-properties` adds paragraph break

Open Alex-Muirhead opened this issue 1 year ago • 1 comments

When calling set-page-properties, an extra paragraph break is added after the function call. This becomes a problem frequently when rotating pages using page(flipped: true), as the page properties for drafting need to be updated to work properly. However the extra paragraph break added will mess with my formating (reducing available vertical space, etc). Is there any way to fix this or avoid this problem in the meantime? Thank you!

Simple example without calling

#import "@preview/drafting:0.2.0" : *
#set page(paper: "a6")

// #set-page-properties()

= An example heading

#lorem(100)

Bug Testing

Simple example with call

#import "@preview/drafting:0.2.0" : *
#set page(paper: "a6")

#set-page-properties()

= An example heading

#lorem(100)

Bug Testing(1)

Alex-Muirhead avatar May 05 '24 01:05 Alex-Muirhead

Thanks for reporting -- this is a known issue but I haven't had time to create a release. In the meantime, you can work around it with place:

#place(set-page-properties())

ntjess avatar May 06 '24 12:05 ntjess

Fixed in 769fbbc2909ad28f346ef8ce4d5c75afd11d4739

ntjess avatar Nov 11 '24 10:11 ntjess