quarto-dev / quarto-dev/quarto-cli
Per-chapter bibliography for PDF book
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/712
Originally posted by bbartholdy April 22, 2022
Hi all,
I would like to be able to have my references at the end of each chapter, and only the references that were used in the chapter.
It's possible to do this for the HTML output with the reference-location: section yaml option, but this doesn't seem to carry over to the PDF output. I have also tried using ::: {#refs} ::: at the end of each chapter, but that prints the whole bibliography for the entire book.
Is there an easy option to do this that I missed in the documentation? If not, I can also submit an issue for a feature request.
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 by reviewing the linked discussion and reproducing the difference between HTML and PDF output described there. Investigate how reference-location: section and chapter-level ::: {#refs} ::: behave in a Quarto PDF book. Done means each chapter shows only the references cited in that chapter.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100