Skip to content

Commit

Permalink
fixes #63: support bibliography for JSS articles
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Mar 28, 2016
1 parent 1b6f1c4 commit 4bc9f25
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions inst/NEWS
Expand Up @@ -4,6 +4,7 @@ rticles 0.2 (unreleased)

- Add American Chemical Society (ACS) template

- Support bibliography for JSS articles (#63)

rticles 0.1
---------------------------------------------------------------------
Expand Down
17 changes: 17 additions & 0 deletions inst/rmarkdown/templates/jss_article/resources/template.tex
Expand Up @@ -53,5 +53,22 @@

$body$

$if(natbib)$
$if(bibliography)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
$else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
$endif$
$endif$

$if(biblatex)$
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
$endif$

\end{document}

0 comments on commit 4bc9f25

Please sign in to comment.