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

Access local figure for .main-img-left or .main-img-right #119

Open joshuawlambert opened 4 years ago

joshuawlambert commented 4 years ago

I'm trying to use a .png file within a sub-directory of my posterdown project. Unfortunately, I can't seem to get the poster to knit with the figure. I am working on Rstudio Server and am using the CRAN version of posterdown.

Here is what I am using:

---
title: "Example"
author:
  - name: Josh
column_numbers: 3
logoleft_name: '![](tmp.png){.main-img-left}'
output: 
  posterdown::posterdown_html:
    self_contained: false
bibliography: packages.bib
---

Thank you.

joshuawlambert commented 4 years ago

Update:

Installed latest version of pandoc and updated posterdown to github version. Still no luck. Going from posterdown_html to posterdown_betterland fixes the issue, although I do not want to use that layout. In the mean time, I uploaded the picture to my github and am using the url to access the file.

brentthorne commented 4 years ago

Hi @joshuawlambert thanks for using posterdown!

I found a sneaky unwanted space for the posterdown_html left logo implementation and have fixed it here.

Thanks for the heads up on this and please let me know if this worked out for you!

Cheers!