Skip to content

Commit

Permalink
changes reference location in Frontiers template (#423)
Browse files Browse the repository at this point in the history
* changes reference location in Frontiers template
* tweak documentation
* Add NEWS bullet
* Bump version

Co-authored-by: christophe dervieux <christophe.dervieux@gmail.com>
  • Loading branch information
graysonwhite and cderv authored Jul 21, 2021
1 parent 1d26f7d commit fe36003
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rticles
Type: Package
Title: Article Formats for R Markdown
Version: 0.20.2
Version: 0.20.3
Authors@R: c(
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
rticles 0.21
---------------------------------------------------------------------

- Add the fenced div with id `#refs` in `frontier_article()` skeleton to place the reference section in the correct expected place (thanks, @graysonwhite, #423).
- `bioinformatics_article()` has no more trailing comma after last author (thanks, @stephenturner, #413).
- `bioinformatics_article()` now separates `manuscript_type` (e.g., Applications note, Original article) and `subject_section` (e.g. Genome analysis, Phylogenetics) in template and skeleton (thanks, @stephenturner, #415)

Expand Down
10 changes: 5 additions & 5 deletions inst/rmarkdown/templates/frontiers/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ LaTeX folder

# References

A reference list should be automatically created here. However it won't. Pandoc
will place the list of references at the end of the document instead. There are
no convenient solution for now to force Pandoc to do otherwise. The easiest way
to get around this problem is to edit the LaTeX file created by Pandoc before
compiling it again using the traditional LaTeX commands.
A Frontier article expect the reference list to be included in this section.
To make that happens, the below syntax can be used. This [feature is from Pandoc citeproc](https://pandoc.org/MANUAL.html#placement-of-the-bibliography) which is used with `frontier_article()` to handle the bibliography

::: {#refs}
:::

# Figures {-}

Expand Down

0 comments on commit fe36003

Please sign in to comment.