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 all 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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
.Rproj.user
.Rhistory
.RData
*.pdf
*.log
*_files/
skeleten/skeleton.tex
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ Imports: utils, rmarkdown, knitr, yaml, tinytex (>= 0.19), xfun
SystemRequirements: GNU make
URL: https://github.com/rstudio/rticles
BugReports: https://github.com/rstudio/rticles/issues
RoxygenNote: 7.0.2
RoxygenNote: 7.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 @@ -18,6 +19,7 @@ export(joss_article)
export(jss_article)
export(mdpi_article)
export(mnras_article)
export(opmi_article)
export(oup_article)
export(peerj_article)
export(plos_article)
Expand All @@ -28,6 +30,7 @@ export(rss_article)
export(sage_article)
export(sim_article)
export(springer_article)
export(tacl_article)
export(tf_article)
importFrom(rmarkdown,includes_to_pandoc_args)
importFrom(rmarkdown,knitr_options)
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 @@ -49,6 +49,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

- [OUP](https://academic.oup.com/journals/pages/authors/preparing_your_manuscript) articles

- [PeerJ](https://peerj.com) articles
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