posterdown icon indicating copy to clipboard operation
posterdown copied to clipboard

How to render posterdown_html template as a pdf

Open tanga94 opened this issue 4 years ago • 1 comments

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
---


tanga94 avatar May 27 '21 13:05 tanga94

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

Kyoshido avatar Jun 12 '22 13:06 Kyoshido