Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenMind article template #194

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ Authors@R: c(
person(family = "MDPI", role = c("aut", "cph")),
person("Oğuzhan", "Öğreden", role = c("aut"), comment = c(ORCID = "0000-0002-9949-3348")),
person("Dalton", "Hance", role = c("aut"), email = "[email protected]"),
person("Daniel", "Nüst", role = c("aut", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0002-0024-5046"))
person("Daniel", "Nüst", role = c("aut", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0002-0024-5046")),
person("Mika", "Braginsky", role = c("aut"), email = "[email protected]")
)
Description: A suite of custom R Markdown formats and templates for
authoring journal articles and conference submissions.
Expand All @@ -38,6 +39,6 @@ Imports: utils, rmarkdown, knitr, yaml, tinytex, xfun
SystemRequirements: GNU make
URL: https://github.com/rstudio/rticles
BugReports: https://github.com/rstudio/rticles/issues
RoxygenNote: 6.1.0
RoxygenNote: 6.1.1
Suggests: testit, bookdown, xtable
Encoding: UTF-8
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

export(acl_article)
export(acm_article)
export(acs_article)
export(aea_article)
Expand All @@ -16,6 +17,7 @@ export(ieee_article)
export(jss_article)
export(mdpi_article)
export(mnras_article)
export(opmi_article)
export(peerj_article)
export(plos_article)
export(pnas_article)
Expand All @@ -25,6 +27,7 @@ export(rss_article)
export(sage_article)
export(sim_article)
export(springer_article)
export(tacl_article)
importFrom(rmarkdown,includes_to_pandoc_args)
importFrom(rmarkdown,knitr_options)
importFrom(rmarkdown,output_format)
Expand Down
21 changes: 21 additions & 0 deletions R/acl_article.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#' ACL paper format
#'
#' @inheritParams rmarkdown::pdf_document
#' @param ... Additional arguments to \code{rmarkdown::pdf_document}
#'
#' @return R Markdown output format to pass to
#' \code{\link[rmarkdown:render]{render}}
#'
#' @examples
#'
#' \dontrun{
#' library(rmarkdown)
#' draft("MyArticle.Rmd", template = "conll_article", package = "rticles")
#' }
#'
#' @export
acl_article <- function(..., keep_tex = TRUE) {
inherit_pdf_document(...,
keep_tex = keep_tex,
template = find_resource("acl_article", "template.tex"))
}
21 changes: 21 additions & 0 deletions R/opmi_article.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#' OpenMind article format
#'
#' @inheritParams rmarkdown::pdf_document
#' @param ... Additional arguments to \code{rmarkdown::pdf_document}
#'
#' @return R Markdown output format to pass to
#' \code{\link[rmarkdown:render]{render}}
#'
#' @examples
#'
#' \dontrun{
#' library(rmarkdown)
#' draft("MyArticle.Rmd", template = "opmi_article", package = "rticles")
#' }
#'
#' @export
opmi_article <- function(..., keep_tex = TRUE) {
inherit_pdf_document(...,
keep_tex = keep_tex,
template = find_resource("opmi_article", "template.tex"))
}
21 changes: 21 additions & 0 deletions R/tacl_article.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#' TACL paper format
#'
#' @inheritParams rmarkdown::pdf_document
#' @param ... Additional arguments to \code{rmarkdown::pdf_document}
#'
#' @return R Markdown output format to pass to
#' \code{\link[rmarkdown:render]{render}}
#'
#' @examples
#'
#' \dontrun{
#' library(rmarkdown)
#' draft("MyArticle.Rmd", template = "conll_article", package = "rticles")
#' }
#'
#' @export
tacl_article <- function(..., keep_tex = TRUE) {
inherit_pdf_document(...,
keep_tex = keep_tex,
template = find_resource("tacl_article", "template.tex"))
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ The **rticles** package provides a suite of custom [R Markdown](http://rmarkdown

- [NNRAS](https://www.ras.org.uk/news-and-press/2641-new-version-of-the-mnras-latex-package) journal submissions

- [OpenMind](https://www.mitpressjournals.org/loi/opmi) journal submissions

- [PeerJ](https://peerj.com) articles

- [Royal Society Open Science](http://rsos.royalsocietypublishing.org/) journal submissions
Expand Down
56 changes: 56 additions & 0 deletions inst/rmarkdown/templates/acl_article/resources/template.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
%
% File naaclhlt2018.tex
%
%% Based on the style files for NAACL-HLT 2018, which were
%% Based on the style files for ACL-2015, with some improvements
%% taken from the NAACL-2016 style
%% Based on the style files for ACL-2014, which were, in turn,
%% based on ACL-2013, ACL-2012, ACL-2011, ACL-2010, ACL-IJCNLP-2009,
%% EACL-2009, IJCNLP-2008...
%% Based on the style files for EACL 2006 by
%%[email protected] or [email protected]
%% and that of ACL 08 by Joakim Nivre and Noah Smith


\documentclass[11pt,a4paper]{article}
\usepackage[hyperref]{naaclhlt2018}
\usepackage{widetext}
\usepackage{times}
\usepackage{latexsym}
\usepackage{url}

$for(header-includes)$
$header-includes$
$endfor$

$if(aclfinalcopy)$
\aclfinalcopy
$endif$

\def\aclpaperid{$aclpaperid$}

\bibliographystyle{acl_natbib}

\title{$title$}

\author{
$for(author)$
$author.name$ \\ $author.affiliation$ \\ {\tt {\normalsize $author.email$}} $sep$\And
$endfor$
}

\date{}

\begin{document}
\maketitle
\begin{abstract}
$abstract$
\end{abstract}

$body$

$for(include-after)$
$include-after$
$endfor$

\end{document}
Loading