quarto-dev / quarto-dev/quarto-cli
Typst: Use `margin-xxx` instead of `margin`?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Currently format: typst uses the margin option to set page margins, whereas most of our other formats (e.g. HTML, PDF) use the margin-left, margin-right, etc. options. From what I can tell RevealJS is the only other format to use margin.
I see that Typst can be a bit more flexible in setting margins than just left, right, top and bottom, but it feels like being more flexible here, makes it harder for users to translate between formats.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the format: typst margin behavior and compare the linked HTML and PDF layout options with Typst’s documented page margins. Determine the supported option names and compatibility expectations, then verify the resulting configuration across the affected formats. Done means the naming decision and user-facing behavior are explicit and consistent.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100