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

Fix csl issue that prints a 10 at start of refs #12

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Package: cogsci2016
Package: cogsci2024
Title: Create CogSci Proceedings Submission with RMarkdown
Version: 1.0.0.1
Authors@R: person("Kyle", "MacDonald", email = "kylem412@gmail.com", role = c("aut", "cre"))
Expand Down
7 changes: 4 additions & 3 deletions R/cogsci_article.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
#' @export

cogsci_paper <- function(keep_tex = TRUE,
includes = NULL) {
includes = NULL, latex_engine="xelatex") {

template <- find_resource("cogsci_paper_2016", "template.tex")
template <- find_resource("cogsci_paper_2024", "template.tex")

base <- rmarkdown::pdf_document(template = template,
keep_tex = keep_tex,
includes = includes)
includes = includes,
latex_engine=latex_engine)

# Mostly copied from knitr::render_sweave
base$knitr$opts_knit$out.format <- "sweave"
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

find_file <- function(template, file) {
template <- system.file("rmarkdown", "templates", template, file,
package = "cogsci2016")
package = "cogsci2024")
if (template == "") {
stop("Couldn't find template file ", template, "/", file, call. = FALSE)
}
Expand Down
File renamed without changes.
90 changes: 0 additions & 90 deletions inst/rmarkdown/templates/cogsci_paper_2016/resources/template.tex

This file was deleted.

Loading