From fa412d3e18e891e7bd79d99f456f35919d260c19 Mon Sep 17 00:00:00 2001 From: Derek Chiu Date: Wed, 18 Sep 2019 14:33:08 -0700 Subject: [PATCH 1/5] set margin at 1 inch --- R/write_index.R | 1 + 1 file changed, 1 insertion(+) 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, From 02f78bbf587185572e842c8338c1fad6b602407d Mon Sep 17 00:00:00 2001 From: Derek Chiu Date: Wed, 18 Sep 2019 14:34:13 -0700 Subject: [PATCH 2/5] don't use ruled table captions --- R/write_preamble.R | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/R/write_preamble.R b/R/write_preamble.R index 7c78821..eeff8ad 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} From 58791e89e64c7e258ff1196ff7cfc9f0a112968b Mon Sep 17 00:00:00 2001 From: Derek Chiu Date: Wed, 18 Sep 2019 14:35:20 -0700 Subject: [PATCH 3/5] decrease space before chapter header --- R/write_preamble.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/write_preamble.R b/R/write_preamble.R index eeff8ad..89f94f5 100644 --- a/R/write_preamble.R +++ b/R/write_preamble.R @@ -16,7 +16,9 @@ write_preamble <- function(path) { {\\Huge\\bfseries} {} {0pt} - {}" + {} + +\\titlespacing*{\\chapter}{0pt}{0pt}{40pt}" writeLines(cmds, file.path(path, "preamble.tex")) } From 2f3ea2948a5ad819530c3a61add65b0653eef80f Mon Sep 17 00:00:00 2001 From: Derek Chiu Date: Wed, 18 Sep 2019 14:40:57 -0700 Subject: [PATCH 4/5] update NEWS --- NEWS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEWS.md b/NEWS.md index eb3327b..6893854 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,11 @@ # rsf (development version) +## LaTeX changes + +* Decrease space before chapter header +* Don't use ruled captions for tables +* Set margins at 1 inch + # rsf 0.1.0 * Added a `NEWS.md` file to track changes to the package. From b8066e7ff9ae843e502bdac87b2abb78e89f5270 Mon Sep 17 00:00:00 2001 From: Derek Chiu Date: Wed, 18 Sep 2019 14:41:27 -0700 Subject: [PATCH 5/5] bump dev version --- DESCRIPTION | 2 +- NEWS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 6893854..73d5574 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# rsf (development version) +# rsf 0.1.0.9001 ## LaTeX changes