Skip to content

Commit

Permalink
Allow classoptions in tf_article() (#434)
Browse files Browse the repository at this point in the history
* Allow classoptions such as `letterpaper`
* Using a for loop to support multiple classoptions

Co-authored-by: christophe dervieux <[email protected]>
  • Loading branch information
statzhero and cderv authored Aug 17, 2021
1 parent 22debeb commit e553097
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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.3
Version: 0.20.4
Authors@R: c(
person("JJ", "Allaire", role = "aut", email = "[email protected]"),
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# rticles 0.21

- Template for `tf_article()` gains a `classoption` variable (thanks, @statzhero, #434).

- Add the fenced div with id `#refs` in `frontiers_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)

# rticles 0.20
Expand Down
2 changes: 1 addition & 1 deletion inst/rmarkdown/templates/tf/resources/template.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% interactcadsample.tex
% v1.03 - April 2017

\documentclass[]{interact}
\documentclass[$for(classoption)$$classoption$$sep$,$endfor$]{interact}

\usepackage{epstopdf}% To incorporate .eps illustrations using PDFLaTeX, etc.
\usepackage{subfigure}% Support for small, `sub' figures and tables
Expand Down

0 comments on commit e553097

Please sign in to comment.