quarto-dev / quarto-dev/quarto-cli
Duplicated number section when not using latex in PDF from ipynb
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
The number of the section is duplicated both in the table of contents and in the body.
Tested pdf engines: wkhtmltopdf, weasyprint, paged.js.
The following ipynb file
---
format: pdf
pdf-engine: wkhtmltopdf
number-sections: true
---
# H1
## H2
Will produce this PDF file

Quarto version: 1.1.251
Ubuntu 22.10
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
Reproduce the issue from the embedded notebook front matter with number-sections enabled, using the listed PDF engines: wkhtmltopdf, weasyprint, and paged.js. Compare the table of contents and document body; the work is done when each section number appears only once in both outputs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100