You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b3eb5f5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(typst): add rendering for proof, remark, and solution environments (#14312)
In Typst output, proof, remark and solution blocks fell through to the
generic renderer as plain blocks, so references to them failed with
"cannot reference block". They now use theorion frames like theorems,
with a label when the block has a crossref id.
The shared frame setup lives in modules/theorems.lua, used by both
theorem and proof rendering. Unnumbered blocks pass number "" and keep
their own prefix, so they no longer step the frame counter. A block
holding only a title keeps its frame and label. Frame titles from the
language files are written as Typst strings, so markup characters no
longer break compilation.
In the simple appearance, proof, remark and solution headers are
italic with an upright body, matching LaTeX and HTML. Theorems keep
bold headers. Block attributes such as style are kept on a wrapper
div around the frame, for theorems and proofs alike.
See #15113 for a crash on blocks whose id is not a crossref id, which
also occurs on main in every format.
Fixes#14290
Copy file name to clipboardExpand all lines: news/changelog-1.11.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,7 @@ All changes included in 1.11:
82
82
83
83
- ([#11683](https://github.com/quarto-dev/quarto-cli/issues/11683)): Fix `unknown font family` warnings, and wrong fonts, when a `font-family` list or brand typography uses a CSS generic family (`serif`, `sans-serif`, `monospace`, `cursive`, `fantasy`, `math`, `system-ui`, `ui-*`). Typst has no generic families, so each one is now replaced by the first installed font from a list of well-known candidates, and the keyword is no longer passed to Typst. No fonts are bundled.
84
84
- ([#14081](https://github.com/quarto-dev/quarto-cli/issues/14081)): Support `lof` and `lot` in Typst documents, which previously had no effect. The list titles follow `lang` and can be set with `crossref: lof-title` and `lot-title`.
85
+
- ([#14290](https://github.com/quarto-dev/quarto-cli/issues/14290)): Fix `proof`, `remark` and `solution` blocks in Typst output, which rendered as plain text and could not be cross-referenced. They now use the same frames as theorems. Theorem and proof titles set in the language files may now contain Typst markup characters, and a `style` attribute on a theorem or proof now applies in Typst too. (author: @mcanouil)
85
86
- ([#14847](https://github.com/quarto-dev/quarto-cli/pull/14847)): Fix `toc_title` auto-fallback in typst outline template that was ignoring the computed fallback value when `toc_title` is `none`.
86
87
- ([#14947](https://github.com/quarto-dev/quarto-cli/issues/14947)): Fix Typst compilation failing with `invalid number suffix: px` when an image with alt text (`fig-alt`, `alt`, or an inline image caption) has its `width` or `height` in pixels. These images are now written by Pandoc's Typst writer like other images, which also fixes URL-encoded image paths and unsupported size units for them.
0 commit comments