-
DescriptionI have been writing a Quarto book project, that currently gets rendered in HTML format. The HTML version is here: https://www.spaam-community.org/intro-to-ancient-metagenomics-book/ I've been trying to use the bibliography system on a one- However, these never get displayed/rendered on the HTML version (both when running However, today I realised I had never checked the actual rendered HTML. I have found out that actually the https://www.spaam-community.org/intro-to-ancient-metagenomics-book/denovo-assembly.html (QMD: https://github.com/SPAAM-community/intro-to-ancient-metagenomics-book/blob/main/denovo-assembly.qmd) that the HTML code for the auto-generated end-page bibliography is actually present, however for some reason the And indeed manually changing that variable in the inspect mode to e.g. However I cannot find ANY reference in the repository to this option being set anywhere, nor why this would be the default behaviour on this book project, particularly given the Quarto documentation implies it should always be rendered by default. Can anyone give any pointers/suggestions where to look/how to fix? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
That's not how references works in books. The documentation states to use the "ref fenced div" to explicitly place the bibliography. Ref:
A good starting points is to use the "bibliography" label: https://github.com/quarto-dev/quarto-cli/discussions?discussions_q=label%3Abibliography |
Beta Was this translation helpful? Give feedback.
-
Hi @mcanouil Thank you for the fast response (and slow reply from mine, I'm on half-time parental leave), and detailed reply. Maybe my post was not so clear. My question specifically is about the HTML and I would like to learn more about the underlying mechanism here - something that my previous search in that category did not find a good result You say that 'that's not how references works in books', but could you explain more why? By 'that's not how it works' do you mean conceptually Quarto blocks or hides such a mechanism, rather than it has not been implemented in a way that's possible (which is semi contested by my demonstrated above)? Is this something to do with trying to get parity between HTML and PDF versions and the underlying rendering engines? Also as a general aside (for future readers), I plan to make a PR to the website docs as I find the bibliography behaviour for books is rather unclear in that it is all 'implicit' - the only indication that it maybe that there is only a single bibliography for a book project is here but only because it says 'the bibliography' but depending on how you read it could easily be interpreted of that as 'the bibliography of that page'. |
Beta Was this translation helpful? Give feedback.
-
I discovered the issue in the end (thank you to @mcanouil for helping me break down the problem and understanding better the expected behaviour). So actually by default references will be rendered on a per-file basis at the end of each file. However if you specify In my case I had a a Note this is my understanding now, and may not be 'technically correct'. However, I have opened a PR to tweak the docs phrasing here |
Beta Was this translation helpful? Give feedback.
I discovered the issue in the end (thank you to @mcanouil for helping me break down the problem and understanding better the expected behaviour).
So actually by default references will be rendered on a per-file basis at the end of each file.
However if you specify
::: {refs}
anywhere any.qmd
file in the project, it appears this will force the bibliography to be rendered in that specific place, and force the per-page bibliographies to be 'hidden'.In my case I had a a
.qmd
file I thought I wasn't using (as I hadn't got it listed in my side bar) that still had the::: {refs}
'div' in it (as I understand it is now called). This caused all the other bibliographies to be hidden.Note this is …