Skip to content

Commit

Permalink
change preamble sty files to tex files
Browse files Browse the repository at this point in the history
  • Loading branch information
kelliemac committed Jul 3, 2024
1 parent 872841a commit 3234d8b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions R/template.R
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@ visc_pdf_document <- function(latex_engine = "pdflatex",
keep_tex = TRUE,
...) {

preamble <- find_resource("visc_report", "visc_latex_preamble.sty")
preamble <- find_resource("visc_report", "visc_latex_preamble.tex")
if (rmarkdown::pandoc_version() < '3.1.7') {
csl_refs_preamble <- find_resource("visc_report", "csl_refs_old.sty")
csl_refs_preamble <- find_resource("visc_report", "csl_refs_old.tex")
} else {
csl_refs_preamble <- find_resource("visc_report", "csl_refs_new.sty")
csl_refs_preamble <- find_resource("visc_report", "csl_refs_new.tex")
}
template <- find_resource("visc_report", "visc_latex_template_document.tex")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
\ProvidesPackage{visc_latex_preamble}


\documentclass[11pt]{article}
\usepackage{lastpage}
\usepackage[hmargin=2cm, top=2.7cm, bottom=3.5cm, footskip=0.5cm]{geometry}
\usepackage{url}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
\documentclass[11pt]{article}

% This template covers only the \begin{document} to \end{document} portion.
% See visc_latex_preamble.sty, old_csl_refs.sty, and new_csl_refs.sty for the preamble.

Expand Down

0 comments on commit 3234d8b

Please sign in to comment.