Skip to content

Commit

Permalink
Merge pull request #3 from eddelbuettel/set-defaults
Browse files Browse the repository at this point in the history
Provide nicer looking default options
  • Loading branch information
eddelbuettel committed Oct 18, 2017
2 parents 63bc030 + bca07d2 commit f8ee95a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
16 changes: 5 additions & 11 deletions inst/rmarkdown/templates/pdf/resources/template.tex
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{letter}
\documentclass[$if(fontsize)$$fontsize$$else$11pt$endif$,$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{letter}
$if(fontfamily)$
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
$else$
\usepackage{lmodern}
\usepackage{mathpazo}
$endif$
$if(linestretch)$
\usepackage{setspace}
Expand Down Expand Up @@ -54,9 +54,7 @@
\usepackage{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
$if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$endif$
\usepackage[$if(geometry)$$for(geometry)$$geometry$$sep$,$endfor$$else$margin=1in$endif$]{geometry}
\usepackage[unicode=true]{hyperref}
$if(colorlinks)$
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
Expand Down Expand Up @@ -249,12 +247,8 @@

$body$

$if(closing)$
$if(closing-indentation)$
\longindentation=$closing-indentation$
$endif$
\closing{$closing$}
$endif$
\longindentation=$if(closing-indentation)$$closing-indentation$$else$0pt$endif$
$if(closing)$\closing{$closing$}$endif$
$if(encl)$
\encl{$for(encl)$$encl$$sep$\\$endfor$}
$endif$
Expand Down
3 changes: 0 additions & 3 deletions inst/rmarkdown/templates/pdf/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ cc:
- Recipient
encl:
- Enclosure
fontfamily: mathpazo
fontsize: 11pt
geometry: margin=1in
blockquote: true
output: linl::linl
---
Expand Down

0 comments on commit f8ee95a

Please sign in to comment.