rstudio / rticles

LaTeX Journal Article Templates for R Markdown
https://pkgs.rstudio.com/rticles/
1.47k stars 518 forks source link

Location of references in sim #338

Closed CarolineXGao closed 3 years ago

CarolineXGao commented 3 years ago

Hi

I am trying to use this command to manually specify the location of references.

<div id="refs"></div>

It seems to be working with a few journal styles but not for sim. The references were always displayed at the end of the document. This is tested using sim skeleton.Rmd file. Is there anything that I can do to fix this?

Thanks very much!!

Best,

Caroline

cderv commented 3 years ago

I am trying to use this command to manually specify the location of references. <div id="refs"></div>

sim_article is using by default natbib as a citation package and the feature you are trying to use is from pandoc-citeproc. So by default it would not work. The journal that works may be those which use pandoc citeproc by default.

Did you try with the default citation_package argument, or did you correctly changed it ?

CarolineXGao commented 3 years ago

Thanks very much. Now I know where went wrong. Will try citation_package see if it works Much appreciated : )

github-actions[bot] commented 2 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.