Skip to content

Commit

Permalink
Merge pull request #31 from wviechtb/master
Browse files Browse the repository at this point in the history
Update template.tex to allow for rescaling on signature image via 'signature-scale'.
  • Loading branch information
eddelbuettel authored Dec 12, 2023
2 parents 00f5fdb + aa149d3 commit 6f8fea0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/linl.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#' \item{\code{ps}}{Text to be added at the end of the letter as a postscript.}
#' \item{\code{return-address}}{Address of the sender: takes a list to allow a multi-line address.}
#' \item{\code{signature}}{Image file for a signature.}
#' \item{\code{signature-before}, \code{signature-after}}{Allows adjustment of vertical space surrounding signature.}
#' \item{\code{signature-before}, \code{signature-after}, \code{signature-scale}}{Allows adjustment of vertical space surrounding signature and the scaling of the signature image (1.0 being the default if unspecified).}
#' }
#'
#' The vignette source shows several of these options in use.
Expand Down
2 changes: 1 addition & 1 deletion inst/rmarkdown/templates/pdf/resources/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@

$if(signature)$
\usepackage{graphicx,grffile}
\signature{$if(signature-before)$\vspace*{$signature-before$}$endif$\includegraphics{$signature$}$if(author)$\\$if(signature-after)$\vspace*{$signature-after$}$endif$$for(author)$$author$$sep$\\$endfor$$endif$}
\signature{$if(signature-before)$\vspace*{$signature-before$}$endif$\includegraphics$if(signature-scale)$[scale=$signature-scale$]$endif${$signature$}$if(author)$\\$if(signature-after)$\vspace*{$signature-after$}$endif$$for(author)$$author$$sep$\\$endfor$$endif$}
$else$
$if(author)$
\signature{$for(author)$$author$$sep$\\$endfor$}
Expand Down
2 changes: 1 addition & 1 deletion man/linl.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vignettes/linl.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ letterfoot-y-offset: 0.4in
signature: examples/signature.pdf
signature-before: -8ex
signature-after: 0ex
signature-scale: 1

colorlinks: true

Expand Down

0 comments on commit 6f8fea0

Please sign in to comment.