ntjess / typst-drafting

Some common drafting utilities for the `typst` document typesetter
The Unlicense
52 stars 2 forks source link

Using `set-page-properties` adds paragraph break #12

Open Alex-Muirhead opened 2 months ago

Alex-Muirhead commented 2 months ago

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)

ntjess commented 2 months ago

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())