5

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.

halfer
  • 19,824
  • 17
  • 99
  • 186
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
  • Did you try adding `\nocite{*}` at the end of the document, not in the preamble. It seem to work for me - I get all the entry from the minimal example – cderv Aug 16 '19 at 09:53

3 Answers3

5

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
Keith Hughitt
  • 4,860
  • 5
  • 49
  • 54
  • 2
    Thanks @Keith for your answer. I tried `nocite: | @R-bookdown, @xie2015`, but is not working. I know how to change the title of document and also tried to given code. But still it gives the same title "A Minimal Book Example" on the top left above the toc bookmars in html version. Any thoughts. Thanks – MYaseen208 Dec 11 '16 at 14:09
  • Did you try deleting the output folder (in my case, `_book/`) to make sure that the book is re-rendered? – Keith Hughitt Dec 11 '16 at 15:29
  • This works for me in rmarkdown but **not** in bookdown – lowndrul May 02 '19 at 18:39
  • 1
    @lowndrul thanks for this discussion, I used nocite: '@*' in teh YAML of teh index.Rmd i 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: so all packages loaded are cited ```{r create_reference_list, include=FALSE} write_bib(x = .packages()), file = 'packages.bib') ``` – Floris Padt Jun 05 '20 at 08:58
3

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

Pascal
  • 151
  • 4
  • Thanks @Pascal for helpful answer. Do you have idea how to list all bibliography entries without citing them? Thanks – MYaseen208 Dec 12 '16 at 15:28
1

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:

Floris Padt
  • 796
  • 5
  • 10