MYaseen208
MYaseen208

Reputation: 23938

How to list all bibliography entries in Bookdown without citing and changing title in HTML version?

I am using bookdown A Minimal Book Example. I want to make some changes in this according to my requirements. I wonder how to list all bibliography entries without citing them.

I tried \nocite{*} in preamble.tex (comes with A Minimal Book Example) but no effect. I could not also not figured out how to change top left title A Minimal Book Example in html version.

Upvotes: 5

Views: 2020

Answers (3)

Floris Padt
Floris Padt

Reputation: 906

I used nocite: '@*' in the YAML of the index.Rmd in bookdown and it works as a charm. Please make sure you have .bib file which has the references.

I used in the last chapter # References the following code chunk in order to cite all packages which are attached

```{r create_reference_list, include=FALSE}
write_bib(x = .packages()), file = 'packages.bib')
```

Details can be found here:

Upvotes: 2

Pascal
Pascal

Reputation: 151

The header of the menu (Book Title) is in "_output.yml"

Upvotes: 3

Keith Hughitt
Keith Hughitt

Reputation: 4970

To include references without citing them in-text, you can use the nocite parameter in the YAML header block in index.Rmd.

nocite: | 
  @R-bookdown, @xie2015

The YAML header block is also where you can adjust the book title, e.g.:

title: "Some new title here"
author: "Yihui Xie"
...
nocite: | 
  @R-bookdown, @xie2015

Upvotes: 5

Related Questions