How to get a second bibliography?

In rmarkdown PDF and HTML, I want two bibliographies , one for documents / books and one for software that I used in my research. I found this related problem , but it does not answer my question, since it concerns the combination of two * .bib files into one bibliography.

I use to post my bibliography using <div id="refs"></div> , as described here . Perhaps the second can be placed in the same way as <div id="refs_2"></div> , but I could not figure out how to do this, because this "refs" seems to be nowhere defined.

I usually define software in the YAML header as follows

 nocite: | @xie_knitr:_2018, @allaire_rmarkdown:_2018, @rstudio_team_rstudio:_2016, @r_development_core_team_r:_2018 

so I don’t need to constantly copy it to a * .bib file every time (which works well with one bibliography). Ideally, this nocite: -list will appear as a new bibliography called "Software" below the other, but I would also be pleased with the two solutions for * .bib files.

Expected Result would be something like this:

enter image description here

Has anyone done this before and could explain how to do this?

+5
source share

Source: https://habr.com/ru/post/1276292/


All Articles