Skip to content

Inconsistent behaviour between html and pdf for lists with (@) #11836

@kandolfp

Description

@kandolfp

Bug description

For a book, the numbering for lists when using (@) is not consistent over various formats. For html it will always start at zero for each new file (chapter) but in pdf it continuous for the entire document.

I would prefer the html behaviour for pdf but an option like continuous-numbering would be perfect.

Steps to reproduce

You can reproduce the example with the following files:

  • index.qmd
# Index

(@) one
(@) two
  • file.qmd
# First Chapter

(@) one
(@) two
  • _quarto.yml
project:
  type: book

book:
  title: "Debugging"
  date: last-modified
  chapters:
    - index.qmd
    - file.qmd

format:
  html:
  pdf:
    documentclass: scrreprt
    keep-tex: true

Expected behavior

pdf and html have the same numbering, i.e. in the index

  1. first
  2. second

and in the first chapter

  1. first
  2. second

To generate the pdf I use

pdm run quarto render --to pdf

Actual behavior

The pdf has the numbering (over multiple pages)

  1. first
  2. second

and in the first chapter

  1. first
  2. second

Your environment

Ubuntu 24.04
Quarto > 1.6.40 (tested also with latest build on github)

Quarto check output

quarto check
Quarto 1.6.40
[✓] Checking environment information...
      Quarto cache location: ~/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.4.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.46.3: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.6.40
      Path: /tmp/quartobug/.venv/lib/python3.12/site-packages/quarto_cli/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/bin
      Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.12.3
      Path: /tmp/quartobug/.venv/bin/python
      Jupyter: 5.7.2
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions