ismayc / thesisdown

An updated R Markdown thesis template using the bookdown package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Long citation format

matanmazor opened this issue · comments

commented

Hi, thanks for this fantastic tool.
This is not a bug report but a question. When I cite papers with multiple authors, the reference in the text with appears with all authors, not jus the first ones. How can I change that?

e.g., I have this reference in my bib file:

@Article{christensen2006fmri,
title={An fMRI study of the neural correlates of graded visual perception},
author={Christensen, Mark S and Rams{\o}y, Thomas Z and Lund, Torben E and Madsen, Kristoffer H and Rowe, James B},
journal={Neuroimage},
volume={31},
number={4},
pages={1711--1725},
year={2006},
publisher={Elsevier}
}

And this in my Rmd:

in a study by @christensen2006fmri ...

In the output, I'm getting

in a study by Christensen, Ramsøy, Lund, Madsen, & Rowe (2006)

But I would prefer it to be Christensen et al. (2006) or Christensen and colleagues (2006).

Thanks!

-Matan

commented

Thanks! Where would I include the '\setcitestyle' command?

You can try to add LaTeX directly into the Rmd files if you are building a PDF.

commented

Cool! When I'm adding it to index.Rmd I'm getting

! Undefined control sequence.
l.218 \setcitestyle
{authoryear,open={((},close={))}}

Should I include it in a specific place?

Also, is there a similar solution for rendering a gitbook?

cheers

You might want to try adding it to template.tex. I'm not aware of something similar for gitbook but playing around with references is really beyond my knowledge. You might have better luck on RStudio Community or Stack Overflow?

commented

Cool, I'll try that, thanks!!!

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org whenever possible) and link to this issue. If a reprex is not applicable, recording a short Loom video showing what you are seeing can go a long way in helping to diagnose problems.