Skip to content

Commit fe36003

Browse files
graysonwhitecderv
andauthored
changes reference location in Frontiers template (#423)
* changes reference location in Frontiers template * tweak documentation * Add NEWS bullet * Bump version Co-authored-by: christophe dervieux <christophe.dervieux@gmail.com>
1 parent 1d26f7d commit fe36003

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: rticles
22
Type: Package
33
Title: Article Formats for R Markdown
4-
Version: 0.20.2
4+
Version: 0.20.3
55
Authors@R: c(
66
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
77
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
rticles 0.21
22
---------------------------------------------------------------------
33

4+
- Add the fenced div with id `#refs` in `frontier_article()` skeleton to place the reference section in the correct expected place (thanks, @graysonwhite, #423).
45
- `bioinformatics_article()` has no more trailing comma after last author (thanks, @stephenturner, #413).
56
- `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)
67

inst/rmarkdown/templates/frontiers/skeleton/skeleton.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ LaTeX folder
156156

157157
# References
158158

159-
A reference list should be automatically created here. However it won't. Pandoc
160-
will place the list of references at the end of the document instead. There are
161-
no convenient solution for now to force Pandoc to do otherwise. The easiest way
162-
to get around this problem is to edit the LaTeX file created by Pandoc before
163-
compiling it again using the traditional LaTeX commands.
159+
A Frontier article expect the reference list to be included in this section.
160+
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
161+
162+
::: {#refs}
163+
:::
164164

165165
# Figures {-}
166166

0 commit comments

Comments
 (0)