Skip to content
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

How to render posterdown_html template as a pdf #129

Open
tanga94 opened this issue May 27, 2021 · 1 comment
Open

How to render posterdown_html template as a pdf #129

tanga94 opened this issue May 27, 2021 · 1 comment

Comments

@tanga94
Copy link

tanga94 commented May 27, 2021

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants