Skip to content

Commit 708b08f

Browse files
dleutnantyihui
authored andcommitted
Adding Taylor & Francis Journal Template (#218)
1 parent 72d0ebb commit 708b08f

File tree

14 files changed

+2996
-2
lines changed

14 files changed

+2996
-2
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ Authors@R: c(
2525
person("Thierry", "Onkelinx", role = c("aut", "cph"), email = "thierry.onkelinx@inbo.be"),
2626
person("Alessandro", "Gasparini", role = c("aut", "cph"), email = "ag475@leicester.ac.uk"),
2727
person("Marc-Andre", "Desautels", role = c("aut", "cph"), email = "marc-andre.desautels@cstjean.qc.ca"),
28-
person("Dominik", "Leutnant", role = c("aut", "cph"), email = "leutnant@fh-muenster.de"),
28+
person("Dominik", "Leutnant", role = c("aut", "cph"), email = "leutnant@fh-muenster.de", comment = c(ORCID = "0000-0003-3293-2315")),
2929
person(family = "MDPI", role = c("aut", "cph")),
30+
person(family = "Taylor and Francis", role = c("aut", "cph")),
3031
person("Oğuzhan", "Öğreden", role = c("aut"), comment = c(ORCID = "0000-0002-9949-3348")),
3132
person("Dalton", "Hance", role = c("aut"), email = "dhance@usgs.gov"),
3233
person("Daniel", "Nüst", role = c("aut", "cph"), email = "daniel.nuest@uni-muenster.de", comment = c(ORCID = "0000-0002-0024-5046")),

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export(rss_article)
2626
export(sage_article)
2727
export(sim_article)
2828
export(springer_article)
29+
export(tf_article)
2930
importFrom(rmarkdown,includes_to_pandoc_args)
3031
importFrom(rmarkdown,knitr_options)
3132
importFrom(rmarkdown,output_format)

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
rticles 0.8
22
---------------------------------------------------------------------
33

4-
4+
- Added the Taylor & Francis journal template (@dleutnant, #218)
55

66
rticles 0.7
77
---------------------------------------------------------------------

R/article.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,3 +261,13 @@ springer_article <- function(..., keep_tex = TRUE, citation_package = 'none'){
261261
"springer_article", keep_tex = keep_tex, citation_package = citation_package, ...
262262
)
263263
}
264+
265+
#' @section \code{tf_article}: Format for creating submissions to a Taylor & Francis journal. Adapted from
266+
#' \url{http://www.tandf.co.uk/journals/authors/InteractCADLaTeX.zip}.
267+
#' @export
268+
#' @rdname article
269+
tf_article <- function(..., keep_tex = TRUE, citation_package = 'natbib') {
270+
pdf_document_format(
271+
"tf_article", keep_tex = keep_tex, citation_package = citation_package, ...
272+
)
273+
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ The **rticles** package provides a suite of custom [R Markdown](http://rmarkdown
6363

6464
- [Frontiers](https://www.frontiersin.org/) articles
6565

66+
- [Taylor & Francis](http://www.tandf.co.uk/) articles
67+
6668
Under the hood, LaTeX templates are used to ensure that documents conform precisely to submission standards. At the same time, composition and formatting can be done using lightweight [markdown](https://rmarkdown.rstudio.com/authoring_basics.html) syntax, and R code and its output can be seamlessly included using [knitr](https://yihui.name/knitr/).
6769

6870
Using **rticles** requires the prerequisites described below. You can get most of these automatically by installing the latest release of RStudio (instructions for using **rticles** without RStudio are also provided).
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
% interactcadsample.tex
2+
% v1.03 - April 2017
3+
4+
\documentclass[]{interact}
5+
6+
\usepackage{epstopdf}% To incorporate .eps illustrations using PDFLaTeX, etc.
7+
\usepackage{subfigure}% Support for small, `sub' figures and tables
8+
%\usepackage[nolists,tablesfirst]{endfloat}% To `separate' figures and tables from text if required
9+
10+
\usepackage{natbib}% Citation support using natbib.sty
11+
\bibpunct[, ]{(}{)}{;}{a}{}{,}% Citation support using natbib.sty
12+
\renewcommand\bibfont{\fontsize{10}{12}\selectfont}% Bibliography support using natbib.sty
13+
14+
\theoremstyle{plain}% Theorem-like structures provided by amsthm.sty
15+
\newtheorem{theorem}{Theorem}[section]
16+
\newtheorem{lemma}[theorem]{Lemma}
17+
\newtheorem{corollary}[theorem]{Corollary}
18+
\newtheorem{proposition}[theorem]{Proposition}
19+
20+
\theoremstyle{definition}
21+
\newtheorem{definition}[theorem]{Definition}
22+
\newtheorem{example}[theorem]{Example}
23+
24+
\theoremstyle{remark}
25+
\newtheorem{remark}{Remark}
26+
\newtheorem{notation}{Notation}
27+
28+
% see https://stackoverflow.com/a/47122900
29+
$if(highlighting-macros)$
30+
$highlighting-macros$
31+
$endif$
32+
33+
$if(header-includes)$
34+
$header-includes$
35+
$endif$
36+
37+
\begin{document}
38+
39+
\articletype{$type$}
40+
41+
\title{$title$}
42+
43+
44+
\author{\name{$for(author)$$author.name$$$^{$author.affil$}$$$sep$, $endfor$}
45+
\affil{$for(affiliation)$$$^{$affiliation.num$}$$$affiliation.address$$sep$; $endfor$}
46+
}
47+
48+
\thanks{CONTACT $for(author)$$author.name$. Email: $author.email$$sep$, $endfor$}
49+
50+
\maketitle
51+
52+
$if(abstract)$
53+
\begin{abstract}
54+
$abstract$
55+
\end{abstract}
56+
$endif$
57+
58+
$if(keywords)$
59+
\begin{keywords}
60+
$keywords$
61+
\end{keywords}
62+
$endif$
63+
64+
$body$
65+
66+
$if(bibliography)$
67+
\bibliographystyle{tfcad}
68+
\bibliography{$bibliography$}
69+
$endif$
70+
71+
72+
$if(appendix)$
73+
\input{"$appendix$"}
74+
$endif$
75+
76+
77+
\end{document}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
\section{Appendices}
2+
3+
Any appendices should be placed after the list of references, beginning with the command \verb"\appendix" followed by the command \verb"\section" for each appendix title, e.g.
4+
\begin{verbatim}
5+
\appendix
6+
\section{This is the title of the first appendix}
7+
\section{This is the title of the second appendix}
8+
\end{verbatim}
9+
produces:\medskip
10+
11+
\noindent\textbf{Appendix A. This is the title of the first appendix}\medskip
12+
13+
\noindent\textbf{Appendix B. This is the title of the second appendix}\medskip
14+
15+
\noindent Subsections, equations, figures, tables, etc.\ within appendices will then be automatically numbered as appropriate. Some theorem-like environments may need to have their counters reset manually (e.g.\ if they are not numbered within sections in the main text). You can achieve this by using \verb"\numberwithin{remark}{section}" (for example) just after the \verb"\appendix" command.
16+
17+
Please note that if the \verb"endfloat" package is used on a document containing appendices, the \verb"\processdelayedfloats" command must be included immediately before the \verb"\appendix" command in order to ensure that the floats in the main body of the text are numbered as such.
18+
19+
%\processdelayedfloats %%% See above for an explanation of why this command might be needed.
20+
21+
\appendix
22+
23+
\section{Troubleshooting}
24+
25+
Authors may occasionally encounter problems with the preparation of a manuscript using \LaTeX. The appropriate action to take will depend on the nature of the problem:
26+
\begin{enumerate}
27+
\item[(i)] If the problem is with \LaTeX\ itself, rather than with the actual macros, please consult an appropriate \LaTeXe\ manual for initial advice. If the solution cannot be found, or if you suspect that the problem does lie with the macros, then please contact Taylor \& Francis for assistance (\texttt{latex.helpdesk@tandf.co.uk}).
28+
\item[(ii)] Problems with page make-up (e.g.\ occasional overlong lines of text; figures or tables appearing out of order): please do not try to fix these using `hard' page make-up commands -- the typesetter will deal with such problems. (You may, if you wish, draw attention to particular problems when submitting the final version of your manuscript.)
29+
\item[(iii)] If a required font is not available on your system, allow \TeX\ to substitute the font and specify which font is required in a covering letter accompanying your files.
30+
\end{enumerate}
31+
32+
33+
\section{Obtaining the template and class file}
34+
35+
\subsection{Via the Taylor \& Francis website}
36+
37+
This article template and the \texttt{interact} class file may be obtained via the `Instructions for Authors' pages of selected Taylor \& Francis journals.
38+
39+
Please note that the class file calls up the open-source \LaTeX\ packages booktabs.sty, epsfig.sty and rotating.sty, which will, for convenience, unpack with the downloaded template and class file. The template calls for natbib.sty and subfigure.sty, which are also supplied for convenience.
40+
41+
\subsection{Via e-mail}
42+
43+
This article template, the \texttt{interact} class file and the associated open-source \LaTeX\ packages are also available via e-mail. Requests should be addressed to \texttt{latex.helpdesk@tandf.co.uk}, clearly stating for which journal you require the template and class file.

0 commit comments

Comments
 (0)