Typst: `margin: y` is ignored when the document has margin content
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 68/100
Rechercherichtung
Read src/resources/formats/typst/pandoc/quarto/page.typ around lines 29–30, where the issue says the marginalia setup reads margin.top and margin.bottom; compare that path with meta.lua, which maps margin.x. Reproduce using the provided Quarto document with a .column-margin block and inspect the generated .typ output. Done when margin: {x: 2cm, y: 2cm} produces top and bottom margins of 2cm with marginalia enabled.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
In Typst output, margin: {x, y} is applied as is when the document has no margin content.
Once there is a .column-margin block (or any content that turns on the marginalia layout), y is dropped and the top and bottom margins go back to 1.25in.
Only margin.top and margin.bottom are read for the marginalia setup:
margin.x takes a different path (meta.lua maps it to inner.sep and outer.far), covered by #14573.
Steps to reproduce
---
title: Margins
format:
typst:
keep-typ: true
papersize: a4
margin:
x: 2cm
y: 2cm
---
Text.
::: {.column-margin}
A note.
:::
Actual behavior
The .typ file has no margin: in set page, and:
#show: marginalia.setup.with(
inner: (far: 0.634in, width: 0.792in, sep: 0.787in),
outer: (far: 0.787in, width: 1.582in, sep: 0.316in),
top: 1.25in,
bottom: 1.25in,
Without the .column-margin block, the same document gets margin: (x: 2cm,y: 2cm,).
Expected behavior
top: 2cm and bottom: 2cm, the same as with margin: {top: 2cm, bottom: 2cm}.
Your environment
- IDE: none (terminal)
- OS: Windows 11
- Same values with Quarto 1.11.9, 1.12.3 and current
main(cda4102).
Quarto check output
Quarto 1.12.3
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.13.0: OK
Dart Sass version 1.107.1: OK
Deno version 2.9.8: OK
Typst version 0.15.1: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.12.3
[>] Checking tools....................OK
TinyTeX: v2026.11
VeraPDF: 1.30.3
Chrome Headless Shell: (not installed)
- Vorherrschende Sprache
- JavaScript
- Sterne
- 6.2k
- Forks
- 492
- Ø Merge
- 15 Std. 15 Min.
- Gemergte PRs (30 T.)
- 94
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus quarto-dev/quarto-cli
-
bootstrap enhancement themes
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
quarto-dev/quarto-cli#15421 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
quarto-dev/quarto-cli#15408 ·
Maintainer antworten meist innerhalb von 1 Tag
-
accessibility bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
quarto-dev/quarto-cli#15401 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug callouts docx regression
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 81/100
quarto-dev/quarto-cli#15394 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug lightbox
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
quarto-dev/quarto-cli#15393 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in quarto-dev/quarto-cli
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
testing-library/jest-dom#749 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
ernst:4-klein prio:3-wacht ui
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
NewspeedyNL/PidLane#767 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug for-agent ready
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
WenyuChiou/agent-board#1812 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug help wanted Should Have ui
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
hannahro15/Musical-Match-Saga#327 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag