paleolimbot / rbbt

R Interface to the Better BiBTex Zotero Connector
142 stars 25 forks source link

In-Text Citation #22

Closed petedatasci closed 2 years ago

petedatasci commented 3 years ago

Is there currently a way to alter the format of an in-text citation? For example, switching between Author (Year) and (Author, Year). Or is that something that is solved/changed in Zotero itself?

Thanks

paleolimbot commented 3 years ago

That is changed by setting your 'csl' in the RMarkdown! You can download citation styles from the Zotero citation style repository, download them to the same directory as your RMarkdown, and add to your front matter:

csl: "my-citation-style-name.csl"

I hope that helps!

bwiernik commented 3 years ago

No need to change the CSL. You just need to remove the brackets from around the citation. So @Jones2010 instead of [@Jones2010]. pandoc will format them in-text instead of in parentheses then.

petedatasci commented 3 years ago

That's really helpful thanks.

paleolimbot commented 3 years ago

Thanks @bwiernik! As usual, I should have read more carefully!