diff --git a/NEWS.md b/NEWS.md index eff96977a..e11a57941 100644 --- a/NEWS.md +++ b/NEWS.md @@ -7,6 +7,8 @@ rticles 0.13 - Fixed header includes for `rjournal_article()` (thanks, @agila5 #257, @rcannood #261). +- Add support for bibliography styles on the Springer template (thanks, @swhaat, #262). + rticles 0.12 --------------------------------------------------------------------- diff --git a/inst/rmarkdown/templates/springer_article/resources/template.tex b/inst/rmarkdown/templates/springer_article/resources/template.tex index 08922e6fc..a76751553 100644 --- a/inst/rmarkdown/templates/springer_article/resources/template.tex +++ b/inst/rmarkdown/templates/springer_article/resources/template.tex @@ -111,7 +111,7 @@ $body$ -\bibliographystyle{spbasic} +\bibliographystyle{$if(bibstyle)$ $bibstyle$ $else$spbasic$endif$} \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} \end{document} diff --git a/inst/rmarkdown/templates/springer_article/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/springer_article/skeleton/skeleton.Rmd index 781741eb7..f1f94dd6e 100644 --- a/inst/rmarkdown/templates/springer_article/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/springer_article/skeleton/skeleton.Rmd @@ -28,12 +28,14 @@ keywords: MSC: - MSC code 1 -- MSC code 2 +- MSC code 2 abstract: | The text of your abstract. 150 -- 250 words. bibliography: bibliography.bib +bibstyle: spphys +# bibstyle options spbasic(default), spphys, spmpsci output: rticles::springer_article ---