Skip to content

Commit a4bb0f3

Browse files
swhaatyihui
authored andcommitted
Add support for bibliography styles on springer template (#262)
1 parent c6fddb8 commit a4bb0f3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ rticles 0.13
77

88
- Fixed header includes for `rjournal_article()` (thanks, @agila5 #257, @rcannood #261).
99

10+
- Add support for bibliography styles on the Springer template (thanks, @swhaat, #262).
11+
1012
rticles 0.12
1113
---------------------------------------------------------------------
1214

inst/rmarkdown/templates/springer_article/resources/template.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111

112112
$body$
113113

114-
\bibliographystyle{spbasic}
114+
\bibliographystyle{$if(bibstyle)$ $bibstyle$ $else$spbasic$endif$}
115115
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
116116

117117
\end{document}

inst/rmarkdown/templates/springer_article/skeleton/skeleton.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ keywords:
2828

2929
MSC:
3030
- MSC code 1
31-
- MSC code 2
31+
- MSC code 2
3232

3333
abstract: |
3434
The text of your abstract. 150 -- 250 words.
3535
3636
bibliography: bibliography.bib
37+
bibstyle: spphys
38+
# bibstyle options spbasic(default), spphys, spmpsci
3739
output: rticles::springer_article
3840
---
3941

0 commit comments

Comments
 (0)