docx: the `#refs` div is ignored; the bibliography moves to the end under an extra "References" heading

Aperta
#1,314 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
40/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
tooling

Direzione di ricerca

Start by rendering the repro (refs.qmd with a ::: {#refs} div under a Bibliography heading) to docx and comparing it with the HTML output. PR #1299 fixed the HTML path for issue #1221, so read it to see how the #refs div and reference-section-title were handled there. Done when the entries appear inside the Bibliography section with no extra heading, and reference-section-title applies in docx with and without the div.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Tested with q2 0.47.0 and pandoc 3.14 (via QUARTO_PANDOC) on Windows 11, compared with Quarto 1.11.9 and plain pandoc 3.14.

In docx output, a ::: {#refs} div doesn't control where the bibliography goes. The bibliography is moved to the end of the document, under a level-2 heading "References" (the language term) that the author didn't write, so it lands inside whatever section comes last. reference-section-title is ignored in docx, both with and without a #refs div. Without a #refs div, there is no heading at all.

Repro

---
bibliography: refs.bib
---

# Introduction

Text [@doe2020].

# Bibliography

::: {#refs}
:::

# Appendix

More text.

q2 render refs.qmd --to docx

Actual:

# Introduction
Text (Doe 2020).
# Bibliography
# Appendix
More text.
## References
Doe, Jane. 2020. A Book. Press.

Expected (Quarto 1 and pandoc): the entries inside "Bibliography", with no extra heading. With reference-section-title: Sources and no #refs div, a heading "Sources" before the bibliography.

Related: #1105 (the same placement problem in Typst). #1221 (PR #1299) fixed this for HTML and leaves docx unchanged.

Lingua principale
Rust
Stelle
316
Fork
23
Merge medio
11h 49m
PR unite (30g)
245

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/q2

Tutte le issue di quarto-dev/q2

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.