Skip to content

Commit

Permalink
Adapt template with Taylor & Francis Reference style S
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Jan 3, 2024
1 parent edf1d26 commit 66994da
Show file tree
Hide file tree
Showing 3 changed files with 2,155 additions and 2 deletions.
14 changes: 12 additions & 2 deletions inst/rmarkdown/templates/tf/resources/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@
\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
$if(subfig)$
\usepackage[$subfigoptions$]{subfig}% Support for small, `sub' figures and tables
$else$
\usepackage[$subfigureoptions$]{subfigure}% Support for small, `sub' figures and tables
$endif$
%\usepackage[nolists,tablesfirst]{endfloat}% To `separate' figures and tables from text if required

\usepackage{natbib}% Citation support using natbib.sty
%\usepackage[doublespacing]{setspace}% To produce a `double spaced' document if required
%\setlength\parindent{24pt}% To increase paragraph indentation when line spacing is doubled
%\setlength\bibindent{2em}% To increase hanging indent in bibliography when line spacing is doubled

$if(natbib)$
\usepackage[$natbiboptions$]{natbib}
$endif$
\bibpunct[, ]{(}{)}{;}{a}{}{,}% Citation support using natbib.sty
\renewcommand\bibfont{\fontsize{10}{12}\selectfont}% Bibliography support using natbib.sty

Expand Down
3 changes: 3 additions & 0 deletions inst/rmarkdown/templates/tf/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ header-includes: |
\usepackage{hyperref}
\usepackage[utf8]{inputenc}
\def\tightlist{}
# Uncommand below to use reference style S instead of CAD with interact layout
biblio-style: tfs
natbiboptions: "`numbers,sort&compress`{=latex}"
output: rticles::tf_article
---

Expand Down
Loading

0 comments on commit 66994da

Please sign in to comment.