diff --git a/DESCRIPTION b/DESCRIPTION index 347885c..ba7fd82 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: rsf Title: Report of Statistical Findings in 'bookdown' -Version: 0.1.0.9000 +Version: 0.1.0.9001 Authors@R: person(given = "Derek", family = "Chiu", diff --git a/NEWS.md b/NEWS.md index eb3327b..73d5574 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,10 @@ -# rsf (development version) +# rsf 0.1.0.9001 + +## LaTeX changes + +* Decrease space before chapter header +* Don't use ruled captions for tables +* Set margins at 1 inch # rsf 0.1.0 diff --git a/R/write_index.R b/R/write_index.R index 6ab3a6b..003c978 100644 --- a/R/write_index.R +++ b/R/write_index.R @@ -6,6 +6,7 @@ write_index <- function(path) { date = "`r Sys.Date()`", site = "bookdown::bookdown_site", documentclass = "report", + geometry = "margin=1in", `biblio-style` = "apalike", `link-citations` = TRUE, colorlinks = TRUE, diff --git a/R/write_preamble.R b/R/write_preamble.R index 7c78821..89f94f5 100644 --- a/R/write_preamble.R +++ b/R/write_preamble.R @@ -1,16 +1,7 @@ # preamble.tex write_preamble <- function(path) { cmds <- - "\\usepackage{booktabs} -\\usepackage{pdflscape} -\\newcommand{\\blandscape}{\\begin{landscape}} -\\newcommand{\\elandscape}{\\end{landscape}} -\\usepackage{float} -\\floatplacement{figure}{H} -\\floatstyle{ruled} -\\restylefloat{figure} - -\\let\\paragraph\\oldparagraph + "\\let\\paragraph\\oldparagraph \\let\\subparagraph\\oldsubparagraph \\usepackage{titlesec, blindtext, color} @@ -25,7 +16,9 @@ write_preamble <- function(path) { {\\Huge\\bfseries} {} {0pt} - {}" + {} + +\\titlespacing*{\\chapter}{0pt}{0pt}{40pt}" writeLines(cmds, file.path(path, "preamble.tex")) }