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

Update template.tex to allow for rescaling on signature image via 'signature-scale'. #31

Merged
merged 3 commits into from
Dec 12, 2023
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
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