Square brackets around citations in text
richardtc opened this issue · comments
When I build the bookdown PDF, the in-text references in the output PDF are surrounded by square brackets, not round brackets as expected.
For example:
example.Rmd
This is a reference in text [@xie2015].
example.pdf
This is a reference in text [Xie,2015].
Here is the bib entry:
@Book{xie2015,
title = {Dynamic Documents with {R} and knitr},
author = {Yihui Xie},
publisher = {Chapman and Hall/CRC},
address = {Boca Raton, Florida},
year = {2015},
edition = {2nd},
note = {ISBN 978-1498716963},
url = {http://yihui.org/knitr/},
}
The bookdown version: 0.35.1
RStudio Server 2023.06.1 Build 524
I've looked online extensively but not found a solution yet.
This was resolved by adding biblio-style: "apalike":
bibliography:
- book.bib
- packages.bib
- articles.bib
biblio-style: "apalike"
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.