typst / typst/typst

Allow pagebreaks within containers (columns, lists, ...)

Open
#1,278 8 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request text
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

Description
+ A 
#pagebreak()
+ B

Should output "1. A" on the first page and "2. B" on the second page but instead outputs "1. A" and "1. B". They are treated as separate containers and the counter starts from one again.

Reproduction URL

No response

Operating system

No response

Typst version
  • I am using the latest version of Typst

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

Start by reproducing the issue's pagebreak snippet with the latest Typst and inspect how containers, lists, columns, and counters are handled during pagination. Done means a counter continues across a pagebreak inside a container, producing "1. A" on the first page and "2. B" on the second, with coverage for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.