
Paginate the HTML Output of R Markdown with CSS for Print. You onlyneed a modern web browser (e.g., Google Chrome or Microsoft Edge) togenerate PDF. No need to install LaTeX to get beautiful PDFs.
This R package stands on the shoulders of two giants to supporttypesetting with CSS for R Markdown documents:Paged.js andReLaXed (we onlyborrowed some CSS from the ReLaXed repo and didn’t really use the Nodepackage).
You may install this package from Github:
# install.packages("pak")pak::pak('rstudio/pagedown')This package requires a recent version of Pandoc (>= 2.2.3). Ifyou use RStudio, you are recommended to install thelatest version(>= 1.2.1335), which has bundled Pandoc 2.x, otherwise you need toinstall Pandoc separately.
Below are some existing R Markdown output formats and examples.
pagedown::html_paged)pagedown::thesis_paged)pagedown::jss_paged)pagedown::html_resume)You may want to check outthedatadrivencv package, which allows you to build aCV using data from a spreadsheet andpagedown::html_resume.
pagedown::poster_relaxedpagedown::poster_jacobsWant more poster styles? You may take a look atBrent Thorne’sposterdown package.
pagedown::business_card)pagedown::html_letter)Nick Strayer’s CV: https://github.com/nstrayer/cv (also includesinstructions on how to build your own CV).
“Template of Exec Summaries with pagedown” by Joshua DavidBarillas: https://github.com/jdbarillas/executive_summary
Ulrik Lyngs’s CVs: https://ulyngs.github.io/pagedown-cv/
Jiena Gu McLellan’s CV:https://github.com/jienagu/Jiena_McLellan_CV
Thomas Vroylandt’s template for the French Scouts and GuidesAssociation: https://github.com/tvroylandt/sgdf_pagedown
Beatriz Milz’s CV:https://beatrizmilz.github.io/resume/resume.html
pagedreport by Thomas Vroylandt and David Keyeswhich helps usingpagedown with some templatesproposals: https://github.com/rfortherestofus/pagedreport
Jodavid Ferreira’s CV (in Portuguese) :https://jodavid.github.io/cv/ (source:https://github.com/jodavid/cv)
The main authors of this package are Yihui Xie (RStudio) and RomainLesur. Romain has received a grant from the Shuttleworth Foundation forhis work on both Paged.js andpagedown.
You can findthe fulllist of contributors ofpagedown here. We alwayswelcome new contributions. In particular, if you are familiar with CSS,we’d love to include your contributions of more creative and beautifulCSS stylesheets in this package. It is also very helpful if you don’tknow CSS but just tell us the creative and beautiful web pages you haveseen, since other CSS experts may be able to port them intopagedown.