Skip to content

Commit

Permalink
Merge pull request #2 from dchiu911/dev-update
Browse files Browse the repository at this point in the history
Dev update
  • Loading branch information
dchiu911 authored Sep 18, 2019
2 parents d36b50f + b8066e7 commit 1b64d46
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 7 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 1 addition & 0 deletions R/write_index.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
15 changes: 4 additions & 11 deletions R/write_preamble.R
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -25,7 +16,9 @@ write_preamble <- function(path) {
{\\Huge\\bfseries}
{}
{0pt}
{}"
{}
\\titlespacing*{\\chapter}{0pt}{0pt}{40pt}"

writeLines(cmds, file.path(path, "preamble.tex"))
}
Expand Down

0 comments on commit 1b64d46

Please sign in to comment.