quarto-dev / quarto-dev/quarto-cli
Numbered appendix causes extra dot in captions when replacing template partials
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
#247 reported an extra dot was added to section, figure and table captions when using a numbered appendix. This was fixed in fd73f4ee8f5e85e79b92ee17741f2c43421ff2a0. However, I noticed the dot is still added when replacing any of the template partials, even when template-partials is just an empty list.
Steps to reproduce
---
format:
pdf:
documentclass: scrreprt
template-partials: []
number-sections: true
---
# Introduction
|a|b|
|-|-|
|1|2|
: Some table.
\appendix
# Some appendix
Expected behavior
Actual behavior
Your environment
- IDE: RStudio 2024.09.0+375
- OS: Microsoft Windows 11 Home
Quarto check output
$ quarto check
Quarto 1.6.39
[>] Checking environment information...
Quarto cache location: C:\Users\niels\AppData\Local\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.39
Path: C:\Users\niels\AppData\Local\Programs\Quarto\bin
CodePage: 1252
[>] Checking tools....................OK
TinyTeX: v2024.10
Chromium: (not installed)
[>] Checking LaTeX....................OK
Using: TinyTex
Path: C:\Users\niels\AppData\Roaming\TinyTeX\bin\windows\
Version: 2024
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....OK
Version: 3.10.6
Path: C:/Users/niels/AppData/Local/Programs/Python/Python310/python.exe
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with py -m pip install jupyter
[>] Checking R installation...........OK
Version: 4.4.1
Path: C:/PROGRA~1/R/R-44~1.1
LibPaths:
- C:/Users/niels/Documents/quarto-bug/renv/library/windows/R-4.4/x86_64-w64-mingw32
- C:/Users/niels/AppData/Local/R/cache/R/renv/sandbox/windows/R-4.4/x86_64-w64-mingw32/e0da0d43
knitr: 1.49
rmarkdown: 2.29
[>] Checking Knitr engine render......OK
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
Start with the supplied .qmd reproduction and inspect how PDF template-partials are handled when numbering sections and entering an appendix. Compare the generated captions with the expected behavior, then add a regression test if the repository has coverage for this rendering path; done means no extra dot appears with an empty template-partials list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100