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
add an exemple about how to add a logo in header or footer #73
Comments
uses html in code and css styling. ```{r, echo=FALSE}
htmltools::img(src = knitr::image_uri(file.path(R.home("doc"), "html", "logo.jpg")),
alt = 'logo',
style = 'position:absolute; top:0; right:0; padding:10px;')
``` |
Related: uses the titling latex package header-includes:
- \usepackage{titling}
- \pretitle{\begin{center}\LARGE\includegraphics[width=12cm]{my_graphic.png}\\[\bigskipamount]}
- \posttitle{\end{center}} |
This example is slightly different to the other examples, in that it is only for the cover page. But I have added it in e8693bd. I am starting to see limitations in the way I am structuring the chapters. There are going to be some shorter sections like this where there is not a lot to really say. I will stick with the current format for now, but I was thinking that it might be an idea to start each chapter with a section of "10 quick tips" or something for people to quickly jump into, and then having longer sections for some of the ore complicated ideas. |
in the html answer, logo overlaps with header, in deed the logo has its own div an is not nested in header div. |
Based on this SO question, this could be a good complement to this chapter
https://dr-harper.github.io/rmarkdown-cookbook/add-custom-headers-and-fsooters.html
The text was updated successfully, but these errors were encountered: