Search code examples
rknitrr-markdownbibtexbookdown

How can I force R markdown / LaTeX to display 'note' field in bibliography (display additional information)?


I use bibliography in my .Rmd file:

bibliography: bibliography.bib

My sample .bib entry looks as follows:

@misc{XYZ,
    author = "Somebody",
    note = "Accessed: 2017-01-10",
    title = "{Global database of LaTeX}",
    url = "http://writeInLatex.com",
    year = "2016"
}

I must display "notes" fields within the bibliography. In case of the example above (web page) - information about access date, in case of the articles - language of the articles.

In case of the example above, I would like to have in the PDF file following entry:

Somebody, 2016. Global database of LaTeX. Accessed: 2017-01-10

How can I do that?


Solution

    1. I downloaded 'elsevier-harvard.csl' citation style from http://www.zotero.org/styles
    2. I opened http://editor.citationstyles.org/visualEditor/ and loaded mentioned style
    3. Under bibliography layout I added node 'Text', set type: 'variable' and selected variable 'note'
    4. I changed name of the style and then downloaded it (elsevier-harvard-with-titles-with-notes.csl)
    5. Within the header of my .Rmd file I added following line: csl: elsevier-harvard-with-titles-with-notes.csl

    It works now!