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

Add option skip_final_break to disable \pnasbreak #47

Merged
merged 2 commits into from Nov 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -2,4 +2,6 @@
.Rhistory
.RData
.Ruserdata
local
.log
local
.DS_Store
12 changes: 12 additions & 0 deletions ChangeLog
@@ -1,3 +1,15 @@
2017-11-03 James Joseph Balamuta <balamut2@illinois.edu>

* inst/rmarkdown/templates/pdf/resources/template.tex: Added skip_final_break
toggle to allow users to opt out of \pnasbreak, which is on by default.
* inst/rmarkdown/templates/pdf/skeleton/skeleton.Rmd: Added example using
skip_final_break toggle.
* vignettes/pinp.Rmd: Idem

2017-11-02 Enrico Spinielli <enrico.spinielli@gmail.com>

* vignettes/pinp.Rmd: Typo

2017-10-31 Dirk Eddelbuettel <edd@debian.org>

* inst/NEWS.Rd: Refer to pinp, not tint
Expand Down
6 changes: 5 additions & 1 deletion inst/rmarkdown/templates/pdf/resources/template.tex
Expand Up @@ -87,7 +87,11 @@
$if(acknowledgements)$
\showacknow
$endif$
%\pnasbreak

$if(skip_final_break)$
$else$
\pnasbreak
$endif$

$if(natbib)$
$if(bibliography)$
Expand Down
3 changes: 3 additions & 0 deletions inst/rmarkdown/templates/pdf/skeleton/skeleton.Rmd
Expand Up @@ -60,6 +60,9 @@ fontsize: 9pt
# Optional: Specify the depth of section number, default is 5
#secnumdepth: 5

# Optional: Skip inserting final break between acknowledgements, default is false
skip_final_break: true

# Optional: Bibliography
bibliography: pinp

Expand Down
10 changes: 9 additions & 1 deletion vignettes/pinp.Rmd
Expand Up @@ -101,6 +101,9 @@ include-after: |
# Optional: Enable a 'Draft' watermark on the document
#watermark: true

# Optional: Skip inserting final break between acknowledgements, default is false
skip_final_break: true

# Customize footer, eg by referencing the vignette
footer_contents: "pinp Vignette"

Expand Down Expand Up @@ -208,7 +211,12 @@ An _optional_ selection (via values 1, 2, 3, ...) of section numbering depth,
selectable only if `numbersections: true` is set. Useful if you only want
to number sections and subsections but not subsubsections and so on.


## `skip_final_break`

An _optional_ selection (via value `true`) that avoids inserting a `\pnasbreak`
at the end of the document. This is useful when dealing with float issues that
may appear at the end of documents with acknowledgements and bibliographies.

## `bibliography`

A field for an _optional_ selection of a Bibtex input file, extension
Expand Down