Skip to content
forked from RLesur/weasydoc

Convert R Markdown to PDF Using Weasyprint (or Prince XML)

License

Notifications You must be signed in to change notification settings

cuulee/weasydoc

 
 

Repository files navigation

weasydoc

lifecycle Travis build status Coverage status CRAN status

Binder

The goal of weasydoc is to convert R Markdown to PDF using WeasyPrint or Prince.

Motivation

The usual way to convert R Markdown documents to PDF relies on LaTeX.
The only caveat is that learning LaTeX layout is not obvious.

Since pandoc version 2.0 supports PDF generation through HTML+CSS, formatting PDF document can now be achieved through CSS. I think this may be quite easier...

Contribution

This package suits my needs. Feel free to send PR.

Example

devtools::install_github('RLesur/weasydoc')

rmarkdown::render('myfile.Rmd', weasydoc::wpdf_document_base(highlight = "pygments"))

About

Convert R Markdown to PDF Using Weasyprint (or Prince XML)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 83.1%
  • Dockerfile 16.9%