Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 409
matandked Avatar asked Nov 16 '25 10:11

matandked


1 Answers

  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!

like image 114
matandked Avatar answered Nov 18 '25 03:11

matandked



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!