quarto-dev / quarto-dev/quarto-cli

Typst: Use `margin-xxx` instead of `margin`?

Open
#7,837 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement typst
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.