Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bibtex authors appearing as dashed lines in references when using bookdown and pandoc

I'm generating a reference section using Rmarkdown, bookdown and pandoc. I have a reference section with 6 entries. One of the entries does not have the author list, and instead appears as:

———. 2004. “Multimodel Inference.” Sociological Methods & Research 33 (2). SAGE Publications: 261–304. doi:10.1177/0049124104268644.

The bibtex entry of this looks as follows:

@article{burnham2004,
    author = {Burnham, Kenneth P. and Anderson, David R.},
    day = {01},
    doi = {10.1177/0049124104268644},
    issn = {0049-1241},
    journal = {Sociological Methods \& Research},
    keywords = {mdb-article-2017-06},
    month = nov,
    number = {2},
    pages = {261--304},
    posted-at = {2017-06-05 22:18:23},
    priority = {2},
    publisher = {SAGE Publications},
    title = {Multimodel Inference},
    url = {http://dx.doi.org/10.1177/0049124104268644},
    volume = {33},
    year = {2004}
}

As far as I can tell this bibtex entry is correct, what is causing the author list not to be shown?

like image 567
Michael Barton Avatar asked Oct 31 '25 21:10

Michael Barton


2 Answers

Dashed lines means that the author(s) of this entry is the same as the previous entry (example), hence omitted. That is the default behavior of pandoc and pandoc-citeproc when the output format is HTML. If you do not want this behavior, you need to provide your own citation style (via csl in YAML or the --csl argument). See http://pandoc.org/MANUAL.html#citations for more information.

like image 141
Yihui Xie Avatar answered Nov 03 '25 11:11

Yihui Xie


Yihui Xie is correct that this is a style-specific setting. You can either switch to a CSL style that doesn't use this type of author substitution, or you can edit your current CSL 1.0.1 style and delete the subsequent-author-substitute and (optional) subsequent-author-substitute-rule attributes from the <bibliography/> element. (see also http://docs.citationstyles.org/en/1.0.1/specification.html#reference-grouping, which also explains in more detail how this type of substitution works)

like image 28
Rintze Zelle Avatar answered Nov 03 '25 09:11

Rintze Zelle



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!