-
Notifications
You must be signed in to change notification settings - Fork 21
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
Adding letterhead/logo on top of letter #16
Comments
you are right, that approach does not work here. The layout of the letter is defined in a letter class option file (lco). The default lco is just a layout that I like. You could use one of the standard layouts of the underlying latex class Having said the above, I gotta say I'm still undecided on adding an option to replace the author name with an image file/logo in the upper right hand corner. |
A few remarks and corrections:
Hope that helps. |
Hi @salim-b thank you for your input. I am not quite sure which part of your writing addresses me. Are you suggesting any changes in the package? As you write, the inclusion of additional Tex is possible via the YAML tags provided by rmarkdown, on top of which komaletter is built. The inclusion of header-includes in the komaletter template is identical to pandoc's default-latex template. Does this part need to be changed? |
Hi @rnuske
I wasn't really addressing you but rather the OP and future readers of this issue in general (while I was looking for a solution to include a logo in a letter created with komaletter I stumpled upon this issue and thought it would be nice to share my findings).
You're right. I somehow assumed komaletter's template would ignore the
Not really. I think the KOMA-Script LaTeX letter class One thing though that bothers me about komaletter's template is that the LaTeX package komaletter/inst/rmarkdown/templates/pdf/resources/template.tex Lines 165 to 166 in 51f3888
komaletter/inst/rmarkdown/templates/pdf/resources/template.tex Lines 235 to 236 in 51f3888
This means that a simple Furthermore, in an ideal world, komaletter's documentation would be extended to include
Anyways, thanks a lot for developing and maintaining this package! |
I would like to add the university logo to the top of the letter so it more-or-less replicates the standard template. I followed the approach as described here:
https://stackoverflow.com/questions/27982052/insert-a-logo-in-upper-right-corner-of-r-markdown-pdf-document
And added this in the yaml:
header-includes:
plus a header.tex with the following information in the same folder
\usepackage{fancyhdr}
\pagestyle{fancy}
\rhead{\includegraphics[width = .05\textwidth]{logo.png}}
Nothing, however, seems to happen. I suppose the header-includes is not supported (yet) by the package. Not sure if this is easy to implement but this seems to be a general feature that users would like to use.
The text was updated successfully, but these errors were encountered: