brentthorne / posterdown

Use RMarkdown to generate PDF Conference Posters via HTML
https://brentthorne.github.io/posterdown_html_showcase/
Other
842 stars 131 forks source link

How to render posterdown_html template as a pdf #129

Open tanga94 opened 3 years ago

tanga94 commented 3 years ago

Is there a way to generate then posterdown_html template as a PDF instead of the default HTML format that is generated?

Additionally, what is the best way to change the default color in the header and titles from green to a different color (HTML color code)?

I'm using RStudio, and here is the default YAML that is generated when I download the template I'm interested in using

---
title: Generate Reproducible & Live HTML and PDF Conference Posters Using RMarkdown
author:
  - name: Brent Thorne
    affil: 1
    orcid: '0000-0002-1099-3857'
  - name: Another G. Author
    affil: 2
affiliation:
  - num: 1
    address: Department of Earth Science, Brock University
  - num: 2
    address: Department of Graphics and Layouts, University of Posters; Canada
column_numbers: 3
logoright_name: https://raw.githubusercontent.com/brentthorne/posterdown/master/images/betterhexlogo.png
logoleft_name: https://raw.githubusercontent.com/brentthorne/posterdown/master/images/betterhexlogo.png
output: 
  posterdown::posterdown_html:
    self_contained: false
bibliography: packages.bib
---
Kyoshido commented 2 years ago

For generating hmtl and pdf you can use this command

pagedown::chrome_print("myfile.Rmd")

The advice is hidden in wiki here https://github.com/brentthorne/posterdown/wiki/Installation-&-Usage-Guide

To change the colour add this into your YAML

# Main Colour Scheme ..........................................................
primary_colour: "#CF3232"   # Main colour used for poster design.
secondary_colour:   "#56CF32"   # Secondary colour use for poster design.
accent_colour:  "#E7104B"   # A third colour option for adding some "pop" to the poster colour palette.   

YAML option can be founded here https://github.com/brentthorne/posterdown/wiki/posterdown_html