Automatic citation numbering when rendering a quarto document to word #6131
-
DescriptionHello, I am working with a quarto book rendering rendering .qmd files into word. I have a .bib reference file and I'm adding citations using: "@citation1". When rendering to html this adds a hyperlink to the refererence, however when rendering to word the citation is only plain text, e.g.: "Knuth (1984)" - there is no citation or numbering. A reference list is generated at the end. Is there a way to add automatic numbering and hyperlinks to the references to the citations in word, similar as when generating a pdf from a latex document? Carlos |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
I've also noticed that when rendering to pdf there is not an automatic numbering/hyperlink generated. I have written documents in latex and this is done automatically, which I think is very powerful. It would be nice to have option for quarto documents specially for word/pdf documents as most people I collaborate with are used to those formats... |
Beta Was this translation helpful? Give feedback.
-
Even if Word is supported, its support by Pandoc, thus Quarto is not the best. Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
The end.
```` |
Beta Was this translation helpful? Give feedback.
-
Did you specify
|
Beta Was this translation helpful? Give feedback.
-
Thank you, this last suggestion adds hyperlinks in word. If I have a book reference: @book{test, When adding "See @test " to the .qmd file the output will be: See author1, author2, and author3 (2016) - hyperlink under 2016, |
Beta Was this translation helpful? Give feedback.
Did you specify
link-citations: true
? See: https://quarto.org/docs/reference/formats/docx.html#references