typst-drafting
typst-drafting copied to clipboard
fix position.side
Hacky way to fix position.side. It is assuming a specific biding. Probably won't work in right-to-left languages.
Thanks for the PR! However, I would avoid merging for a few reasons:
- As you noted, binding will change what this default should be, so I wouldn't want unexpected behavior as a result of swapping l/r on an odd page. Moreover, the margins are only swapped if
bindingis specified in the first place, otherwise they stay on their respective sides. Therefore, it makes the most sense to wait untilgetrules are implemented to detect these cases. - It is possible to use
margin-notein a smaller container -- it's how the minipages in the manual are generated:In this case, it wouldn't be ideal to artificially swap left- and right-margin values based on the current page.