quarto-dev / quarto-dev/quarto-cli

Duplicated number section when not using latex in PDF from ipynb

Open
#3,243 5 comments 1 reaction 0 assignees View on GitHub

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

image

Quarto version: 1.1.251
Ubuntu 22.10

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.