Skip to content

How do I suppress redundant lot (list of table) entries in quarto book pdf output? #11890

Open
@cderv

Description

@cderv

Discussed in #11865

Originally posted by bergsmat January 15, 2025

Description

I'm using Quarto 1.6.39 with RStudio 2024.12.0 and R 4.4.2.

I created an instance of the quarto book template, then edited _quarto.yml like this:

pdf:
    documentclass: scrreprt
    toc: false
    lot: true

In intro.qmd I appended this:

```{r}
#| label: tbl-longtable
#| tbl-cap: A Long Table
set.seed(0)
knitr::kable(
  data.frame(
    index = 1:20, 
    letter = sample(letters, 20, replace = TRUE)
  )
)
```

Then I executed quarto render at the terminal prompt.

By design, my table spans multiple pages. What I notice is that by default I get a repeated table caption on each page: Table 1.1: A Long Table and each of these is included in the list of tables with correct page numbers, but the hyperlinks in the list of tables all point to the first page.

I have no objection to the repeated table captions, but I do not find the repetition in the lot to be helpful. How can I suppress the redundant (and possibly incorrectly-linked) entries in the list of tables? (I could not find an existing issue or discussion on this topic.)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcrossreflatexLaTeX engines related libraries and technologiesneeds-discussionIssues that require a team-wide discussion before proceeding furthertablesIssues with Tables including the gt integration

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions