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

Provide nicer looking default options #3

Merged
merged 4 commits into from
Oct 18, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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