Code Monkey home page Code Monkey logo

posterdown's Introduction

posterdown logo

posterdown

Lifecycle: experimental Build Status CRAN_Release_Badge CRAN_Download_Badge CRAN_Download_Badge CRAN_Download_Badge

As a graduate student, I found that it is almost a rite of passage to take early research and analysis and generate a conference poster allowing for critical feedback. This is also important for facilitating meeting the people in your field at poster sessions at academic meetings. I have also noticed that while many of my fellow graduate students use R and are getting their feet wet with RMarkdown 😊, we always had to go back to using MS Powerpoint or Keynote or Adobe Illustrator for generating conference posters 😒. Posterdown was created as a proof-of-concept (to myself) that it is possible to make a beautiful poster using open source reproducible code.

Quick Links
Current Template Styles
Getting Started
Support
Wiki
Showcase

Current Template Styles

posterdown_html posterdown_betterland posterdown_betterport

Getting Started

Until the first release of posterdown occurs on CRAN please fork this repo and use your version to ensure stability while building your poster. Changes made here can be sporadic but also tend to be drastic. Otherwise, use this repo at your own discression! :trollface:

posterdown v1.0 is now on CRAN !! 😄

To install from CRAN use install.packages("posterdown").

To install from github use remotes::install_github("brentthorne/posterdown").

Now add this to the YAML options of your rmarkdown (.Rmd) file:

---
output: 
  posterdown::posterdown_html
---

For further customization options please see the (currently in progress 🔨) wiki

Support

Please consider supporting posterdown to ensure continued support and development for this package, as grad school + open source developer != 💵.

Patreon - Monthly
PayPal - Single Payment
Bitcoin: 1KZ3zyNsxdR8NjYL9vomb9fmpkXSXvK5VR
Ethereum: 0x71a18c5E3300a33F1139a9eA0abc0D029E3C30F7
Litecoin: LR4usZRgjJGLAg3Tu5PSBjgUaVtdts9Wnw

You can also follow me (Brent Thorne) on twitter for upcoming features which may not be released on github.

Please feel free to give me feedback or requests for changes in the issues page. I am currently finishing up my Master's degree so I will have limited time to work on updating this package in the next few months but, nevertheless, I will do what I can! 😄

posterdown's People

Contributors

brentthorne avatar ellisvalentiner avatar fguilhaumon avatar higgi13425 avatar jeanmanguy avatar lwjohnst86 avatar mbjoseph avatar remlapmot avatar shedimus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

posterdown's Issues

Example environment is not numbered and not detected by posterdown

First of all I'd like to thank you for this great project. It saved my time.

I'm using the following syntax in my bookdown documents

```{example, code-main}
Simple main function example
```
```
int main() {
  return 0;
}
```
As we can see from example \@ref(exm:code-main) the `main` function returns 0.

to describe the example environment. It is allowed.

But this code is ignored by posterdown:

shows example ??

I can't understand why.
It works normally in original pagedown::poster_relaxed (also in pagedown::html_paged, pagedown::html_letter, pagedown::html_resume, pagedown::book_crc, pagedown::poster_jacobs) and in bookdown books...

Any ideas?

Installation error

Hi Brent -- Hope you're doing well! I am very excited to give posterdown a try. But, I've run into an issue installing the package. I am on Window's 10 trying to install based on your instructions and this is the message I receive in return:

devtools::install_github("brentthorne/posterdown")

Error: HTTP error 401.
Bad credentials

Rate limit remaining: 58/60
Rate limit reset at: 2019-01-24 22:19:23 UTC

Any ideas on how to resolve the issue? I tried restarted R and my computer, but for some reason, this message pops up.

Thank you in advance for any help!

Save to eps?

Showed to colleagues, one asked if it is possible to save to eps, for the purpose of fine-tuning in Adobe Illustrator. Definitely a need for people with OCD about their posters

Change number of columns

Hello and thanks for the great package, it is saving me a lot of time! However, at the moment I am struggling with the number of columns. I decided that I would prefer 2 columns in my portrait-poster instead of 3. I tried adapting the HTML-Template just as suggested in the Column break trick, but I don't know much about HTML or CSS itself. In line 142 in the HTML deplate it says:

-webkit-column-count: $if(column_numbers)$$column_numbers$$else$3$endif$; /* Chrome, Safari, Opera */ -moz-column-count: $if(column_numbers)$$column_numbers$$else$3$endif$; /* Firefox */ column-count: $if(column_numbers)$$column_numbers$$else$3$endif$;

and I tried to change the 3 in the else command for a 2 but it didn't work, there are still 3 columns. I can't find out where to set the value for column_numbers, could you help me? Thank you very much!
Lilla

v1.0.0 adding email breaks poster betterland

Thanks for a great package. Saw you posted my betterposter at your showcase, cool (@giladfeldman).

Took me a while to figure out why the new version betterland breaks, turns out it's the email: field for the author. Tried it on a clean poster, yep, adding email to the author breaks template.
Also seems like ORCID won't show.

I think that whole part in v1.0.0 needs a bit of testing.

Please fix, can't have a poster with no email.

Failed to compile Poster.tex.

I am running Windows 10
I have updated R and Rstudio to latests versions
I uninstalled Miktex and installed tinytex, but I still get an error when trying to compile the default posterdown document.
Sessioninfo and log is pasted below.

Any help is appreciated.

Cheers,
Steen

Sessioninfo:

> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=Danish_Denmark.1252  LC_CTYPE=Danish_Denmark.1252    LC_MONETARY=Danish_Denmark.1252 LC_NUMERIC=C                    LC_TIME=Danish_Denmark.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0       rstudioapi_0.9.0 magrittr_1.5     bindr_0.1.1      knitr_1.21       tidyselect_0.2.5 munsell_0.5.0    colorspace_1.4-0 R6_2.3.0        
[10] rlang_0.3.1      plyr_1.8.4       dplyr_0.7.8      tools_3.5.2      grid_3.5.2       gtable_0.2.0     xfun_0.4         tinytex_0.10     htmltools_0.3.6 
[19] yaml_2.2.0       lazyeval_0.2.1   digest_0.6.18    assertthat_0.2.0 tibble_2.0.1     posterdown_0.1.1 crayon_1.3.4     bindrcpp_0.2.2   purrr_0.3.0     
[28] ggplot2_3.1.0    glue_1.3.0       evaluate_0.12    rmarkdown_1.11   compiler_3.5.2   pillar_1.3.1     scales_1.0.0     pkgconfig_2.0.2 

Checking tintytex installation:

> tinytex:::is_tinytex()
[1] TRUE

Trying to knit the default document:
Output from Rmarkdown console:


processing file: Poster.Rmd
  |.....                                                            |   8%
  ordinary text without R code

  |..........                                                       |  15%
label: unnamed-chunk-1 (with options) 
List of 1
 $ include: logi FALSE

  |...............                                                  |  23%
  ordinary text without R code

  |....................                                             |  31%
label: unnamed-chunk-2 (with options) 
List of 4
 $ fig.width: num 4.5
 $ out.width: chr "80%"
 $ fig.cap  : chr "This is a map of Canada, the ggspatial package is great for GIS folks in R!"
 $ cache    : logi TRUE

  |.........................                                        |  38%
  ordinary text without R code

  |..............................                                   |  46%
label: unnamed-chunk-3
  |...................................                              |  54%
  ordinary text without R code

  |........................................                         |  62%
label: unnamed-chunk-4 (with options) 
List of 4
 $ out.width : chr "80%"
 $ fig.width : num 4
 $ fig.height: num 5
 $ fig.cap   : chr "A typical plot using ggplot using the classic iris dataset."

  |.............................................                    |  69%
  ordinary text without R code

  |..................................................               |  77%
label: unnamed-chunk-5 (with options) 
List of 4
 $ out.width : chr "85%"
 $ fig.width : num 4.5
 $ fig.height: num 4
 $ fig.cap   : chr "Another typical plot using ggplot, this time with a different theme and r code chunk options for fig.width and fig.height."

  |.......................................................          |  85%
  ordinary text without R code

  |............................................................     |  92%
label: unnamed-chunk-6 (with options) 
List of 6
 $ out.width : chr "80%"
 $ fig.width : num 4.5
 $ fig.align : chr "center"
 $ echo      : logi TRUE
 $ fig.height: num 5
 $ fig.cap   : chr "Another figure showing how base R plots might look on this poster!"

  |.................................................................| 100%
  ordinary text without R code


"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Poster.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output Poster.tex --template "C:\Users\sharsted\Documents\R\win-library\3.5\posterdown\rmarkdown\templates\posterdown_pdf\resources\template.tex" --highlight-style tango --latex-engine pdflatex --biblatex 
output file: Poster.knit.md

Fejl: Failed to compile Poster.tex.
In addition: Advarselsbesked:
I system2(..., stdout = FALSE, stderr = FALSE) : '"pdflatex"' not found
Kørsel stoppet

Error in finding

Thanks for the amazing package. It will be very helpful. However, I am running into this issue while trying to knit. I am attaching log file for any inside.
All I changed for tempelate is the text, so it did knit for me prior to customization but not after change of text. Thanks for help.
ccm_poster_pig_Data.log

Monospaced fonts in title are tiny

To reproduce: add backticks around a word in the title. It will correctly render it in monospaced fonts, but it will be tiny. This is apparently because the monospaced font gets turned into a <code> block, and the CSS for the code block specifies it as 25pt. Maybe it should be 1em or some other em figure, so it will be relative to its environment?

(NOTE: I don't know where the <code> CSS styling is coming from. It doesn't appear to be in the template. Maybe knitr adds it? Maybe pandoc?)

nopagecolor

I keep getting this warning message when knitting the posterdown_pdf/skeleton/skeleton.Rmd file? It does not seem to affect the output, but not sure how to fix it?!

thanks. Great package by the way.

Warning message:
Package pagecolor Warning: \nopagecolor does not work with
(pagecolor) the used crop package. Using
(pagecolor) none
(pagecolor) as nopagecolor now
(pagecolor) on input line 231.
Package pagecolor Warning: Option nopagecolor=none requested
(pagecolor) but this does not work with the crop package.
(pagecolor) By option nopagecolor the "colour" to be used with
nopagecolor
(pagecolor) is set. The current value is "none" (maybe by defaul
t),
(pagecolor) but the crop package broke \nopagecolor.
(pagecolor) Therefore the colour cannot be "none".
(pagecolor) Please change the option accordingly!
(pagecolor) As first aid nopagecolor is now set to white
(pagecolor) on input line 231.

Twitter after email

Hi!

Thanks for the package. Is there a way I can move the twitter name to appear after my email address?

Thanks!

Standaridize YAML option syntax

Need to redo the YAML option naming to be more consistent across different output formats. Right now both posterdown_betterland and posterdown_betterland use syntaax like "middle_textcol" for the main findings section where the term middle really only applies to posterdown_betterland.

I would also like to clean up the differences in options like _textcol or _fontsize which should be either text or font but not both.

If anyone has suggestions about standardizing any other part of the YAML please let me know here.

Reduce package install size/ add LaTeX poster as a secondary download

In an attempt to manage the size of this package I think it would be good to remove the LaTeX components of the initial installation of the package. Possibly use something like:

posterdown::install_posterdown_latex()

For those who still wish to use it down the road.

Just not sure how to tackle it yet, so any suggestions are welcome!

Consider moving YAML theme headings into options for output

The large volume of YAML configurations for setting options is quite extensive (great job) but can be bewildering. If possible maybe move the options over into the output as a single theme setting in the posterdown_html arguments. Then pass the options over as a list if desired.

The other option would be to create a few set themes that users can use as a default.

(this is in part related to #59)

`patchwork` not available for R 3.6.0

I cannot render the posterdown HTML template due to a dependency on patchwork, which is not available for R 3.6.0. Work-around? When might posterdown be compatible with R 3.6.0?

Custom citation cls file not working

Custom citations do not format according to provided cls as they do with typical rmarkdown/ bookdown documents. Not sure if this is an issue with pagedown but further investigation is needed.

R version 3.6.1 install failure pagedown non-zero exit status

I updated my version of R (to 3.6.1) and when reinstalling packages, I can't get posterdown to install. I get the same message in vanilla R and in Rstudio

ERROR: dependency ‘websocket’ is not available for package ‘pagedown’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/pagedown’
    Error: Failed to install 'posterdown' from GitHub:
    (converted from warning) installation of package ‘pagedown’ had non-zero exit status

Failure log on windows 8.1

R 3.5.1,Texlive installed via tinytex, Windows 8.1

Here is .Rmd file
https://pastebin.com/8y8U643f

Here is failure log..
https://pastebin.com/Ci7wRPDY

Fails with this message..
output file: poster.knit.md

tlmgr search --file --global "/biblatex-dm.cfg"
tlmgr search --file --global "/poster.bbl"
! LaTeX Error: \caption outside float.

Error: Failed to compile poster.tex. See poster.log for more info.
In addition: Warning messages:
1: package 'kableExtra' was built under R version 3.5.2
2: In parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)) :
Failed to find a package that contains biblatex-dm.cfg
3: In parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)) :
Failed to find a package that contains poster.bbl
Execution halted

i named the .Rmd file as poster.Rmd..Rest of contents similar as pre-formed template.

Failed to find a package that contains biblatex-dm.cfg

Hi bretthorne
Thank you for your wonderful package.
By using it, I tried to make a poster for academic meeting.
When I tried to make tables with kable() function, can`t knitting and showed me an error message How can I do it for?

Produce docker image for easy, self-contained poster production

I love using R Markdown to write posters, and I wish I could bring more colleagues along, but the barrier to entry is daunting. Few of them have any meaningful experience with R. The thought of asking them to go through what I went through is clearly a non-starter.

In my case, just to get the demo to work, I needed to install a variety of R packages (including a mix of CRAN packages, devtools::install_github(), and even system dev packages to provide libs files)---not to mention the non-R software such as pandoc, which is very challenging to build from source on, e.g., Ubuntu 18.04!

An alternative is to provide a "batteries included" docker image. Without installing anything (except, OK, docker), a user can simply run a single command, and compile a .Rmd file into an HTML page (or perhaps even directly to the final PDF product).

This takes a considerable amount of effort to get off the ground, and is probably best conceived as a separate product other than posterdown---one which is built on posterdown and uses it and others. However, the potential impact is massive---you move easy, reproducible, maintainable posters beyond the R niche (a niche, to be clear, that I love) and to a much wider community of scientific communicators.

Something to think about. :)

README unclear about how to render the poster

It took me a while to figure out that rmarkdown::draft() was creating a file, not rendering (a "draft" of?) an existing file. Instead, I created my own .Rmd file from scratch, and was confused when:

  1. Running "the command" (i.e., the rmarkdown::draft(...) invocation) didn't appear to produce any output.
  2. Re-running "the command" would fail, because it complains the directory already exists.

Once I realized what was going on, I searched the main README, but I couldn't see how to actually render the file. It looks like rmarkdown::render() is the way to go? I've used knitr a bunch before, but the rmarkdown package is new to me.

I guess the resolution would be to make sure the docs clearly outline the steps to go from nothing to rendered content.

failure to knit

When I use the default posterdown template, I get knit failure, with the following message:

Error: package or namespace load failed for ‘Cairo’:
.onLoad failed in loadNamespace() for 'Cairo', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Cairo/libs/Cairo.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Cairo/libs/Cairo.so, 6): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Cairo/libs/Cairo.so
Reason: Incompatible library version: Cairo.so requires version 19.0.0 or later, but libfreetype.6.dylib provides version 18.0.0

Then re-installed Cairo, then when trying to call library(Cairo) from the console, I get the following error:

library(Cairo)
Error: package or namespace load failed for ‘Cairo’:
.onLoad failed in loadNamespace() for 'Cairo', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Cairo/libs/Cairo.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Cairo/libs/Cairo.so, 6): Library not loaded: /opt/X11/lib/libfreetype.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Cairo/libs/Cairo.so
Reason: Incompatible library version: Cairo.so requires version 19.0.0 or later, but libfreetype.6.dylib provides version 18.0.0

Appears to be some kind of conflict in Cairo - not sure why.

Not sure if this is directly the cause of failure to knit.

Remove Canada.geojson files.. too big for only being templates

On R build check, a note shows that the package size is 24 Mb, which is very large. The two json data files take up 11 Mb each. Since they aren't needed for the package (only to show poster images), I'd suggest removing them and using some other way to show the figure in the template files. If you want to submit this to CRAN, you'll have to do this anyway.

First issue - two typos in README

Small fixes - change "sudent", "right", "feild" -
change
"As a graduate sudent, I found that it is almost a right of passage to take early research and analysis and generate a conference poster allowing for critical feedback as well as meeting the people in your feild."
to
"As a graduate student, I found that it is almost a rite of passage to take early research and analysis and generate a conference poster allowing for critical feedback as well as meeting the people in your field."

background colours appear to be broken

I am following the README instructions based on an install_github() version of posterdown (and rmarkdown). The background is pure white, which makes the text unreadable.

Peeking at HTML source, I see a lot of things that look like this:

<!--
Here are the required style attributes for css to make this poster work :)
-->
<style>
@page {
size: 46in 32in;
margin: 0;
padding: 0;
background-color: <h1 id="ffffff">FFFFFF</h1>;
}
body {
margin: 0px;
padding: 0px;
width: 46in;
height: 32in;
text-align: justify;
font-size: 45px;
background-color: <h1 id="ffffff">FFFFFF</h1>;
color: <h1 id="section">000000</h1>;
}

So, I manually edited the HTML file, like so:

<!--
Here are the required style attributes for css to make this poster work :)
-->
<style>
@page {
size: 46in 32in;
margin: 0;
padding: 0;
background-color: #FFFFFF;
}
body {
margin: 0px;
padding: 0px;
width: 46in;
height: 32in;
text-align: justify;
font-size: 45px;
background-color: #FFFFFF;
color: #000000;
}

When I reload the page, everything looks like the demo.

Maybe something in the chain from .Rmd to .html is treating the colour codes like markdown headers?

This might be useful information:

$ pandoc --version
pandoc 1.19.2.4
Compiled with pandoc-types 1.17.0.5, texmath 0.9.4.4, skylighting 0.3.3.1
Default user data directory: /home/chogg/.pandoc
Copyright (C) 2006-2016 John MacFarlane
Web:  http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

adding subtitle?

1st awesome template and package!!
I am trying to have variable font in the title, essentially making a title (bigger font) with a subtitle (slightly smaller font).

I started by making a "subtitle" object then adding it to the

tag in a custom CSS file. Below is what I tried to do but keep running in circles. Am I going about it in the right way?

#title {
font-size: $title_textsize$;
text-align: left;
padding-right: 7%;
padding-left: 7%;
margin: 0;
line-height: 90%;
border-bottom: 0;
}

#subtitle {
font-size: calc($title_textsize$/2);
text-align: left;
padding-right: 7%;
padding-left: 7%;
margin: 0;
line-height: 90%;
border-bottom: 0;
}

<div class="poster_wrap">
<div class="column outer">
<br>
<h1 id="title">$title$</h1>
<h1 id="subtitle">$subtitle$</h1>
<br>
</div>
</div>

More of a question than issue... Horizontal spacing

Hi! Thanks for the great package! Really amazing work! I was wondering if it is possible to have columns of varying widths? For example, if I have three columns on a 48in wide poster, would it be possible to have the columns of widths of something like 14in-20in-14in, or something like that?

How to adjust font size in the middle?

Since I am preparing an A1 size poster, I want to reduce the font size in the middle. I tested middle_textsize = 70pt but it doesn't seem to work.

middle_fontfamily: "Roboto"
middle_textcol: "#FFFFFF90"
middle_textsize: "70pt"
main_findings:
  - "Make **better posters** with <br> RMarkdown + **posterdown**."

Is there a solution?

Converting HTML output to PDF for printing

Hello,
I was very excited to see someone make a poster template in R as I'm always looking for new options to keep the whole academic process "in-house".

The output of the posterdown_betterport template is lovely but I can't seem to find any way to satisfactorily convert the output to PDF. Am I missing something? Producing an HMTL file, and then printing it to PDF does not work as the background colours disappear.

A bit of searching online showed that this is usually caused by the canvas size (or whatever you want to call it) not being the same as the file wants it to be. So by changing the custom canvas size to match my desired dimension (841 x 1189 mm) the header background returns but not the footer. Also, the header is always grey with black text.

I am on Ubuntu 16.04, R 3.5.3, and RStudio 1.2.1335

Any advice you could offer w.r.t. PDF conversion from the HTML output would be appreciated.
All the best,
-Robert

Found biblatex control file version 3.5, expected version 3.4. biber (2.11) and biblatex (3.12) versions are incompatible.

I have been asked this by a few people now and think it could be due to not having tinytex as the latex manager. As this issue was not occuring for me on a brand new machine. With that said I'm not sure if it is a Mac OS problem. Are you using a Mac, Windows, or Linux operating system @higgi13425 ?

For now the only thing I can think of is to uninstall any old versions of latex packages and do a fresh install with tinytex. Whenever you have the time to do so please let me know and in the meantime I'll try and find someone with a Mac to try and reproduce the error.

Thanks

Vertical spacing between level 1 and level 2 bullets

Code in Rmd

  • Patient 3 had:
    • High CRP
    • Colonic dilation
    • Failed IV steroids

results in a large vertical space between

Patient 3 had:

and

  • High CRP

and a large vertical space after

  • Failed IV steroids

is there any way to control/eliminate this?

Column break trick

This isn't an issue but I thought I would post in case this is helpful for anyone else.

When using betterport I found that I needed a column break.

I got one by assigning a level 4 header to have a column break before it in my html template by adding the following CSS within the <style> tag:

.section h4 {
    break-before: column;
}

Then in my Rmd file I put a level 4 header #### where I want the column break.

Usually, in RMarkdown three or more asterisks or dashes indicate a horizontal rule or page break, so maybe it would have been better to assign the column break to that; but I didn't know how to do that and this seems to work.

PS. I have put my poster here:
https://github.com/remlapmot/mr2019-tom-palmer-poster

Assorted font questions

  1. what controls which font appears between backticks in text,
    i.e. Welcome to posterdown !

what controls the font for posterdown ??

  1. I can control the font of title by inserting
    \fontfamily{qhv}\selectfont
    at the beginning of the quoted text of the title, just after the quotation, and before the actual text.
    This is great.

  2. However, this does not seem to work for authors or institutions.
    Puzzling - is there a way to do this?
    I just want these to be in the same font as the title.
    Or does this have to do with the hacky way needed to make multiple authors work?
    (If so, can you borrow code from the rticles package?)

What is currently controlling the font family for authors or institutions?

  1. I can control the font of body text by inserting
    \fontfamily{qag}\selectfont before the first chunk of body text - and it carries forward to all of the other body text (excepting that surrounded by backticks).
    This is great.

  2. However, if I change the first sectitle font by inserting
    \fontfamily{bch}\selectfont
    before the text starts, this only affects the first sectitle, and does not carry forward.
    Any way to make this carry forward?

BTW, I am finding the font codes at the link below.
https://www.overleaf.com/learn/latex/Font_typefaces

  1. I am puzzled by what the font_family parameter in the YAML header does control.
    Does it control some font somewhere?
    What am I missing?

  2. Also, any way to adjust the spacing between words?
    When I use
    \fontfamily{qhv}\selectfont in the title, the words are a bit too close together.
    Other fonts are usually OK, but not always.

I can do it in a hacky way with
\space
where needed.
But it seems like there is probably something more elegant.

thanks,
Peter

Keep default template simple?

Great package, thanks!

A couple of suggestions/comments:

  • Could there be an option to not create a folder when creating a new poster template? I like to have my files in a particular location and don't need a whole new folder just for the poster.
  • Could there be a function to only create the template poster R Markdown file? Right now it creates a .bib file, a Figure folder, and adds a logo in the Figure folder. It would be nicer (at least for me) if I could just have the Rmd file and nothing more. (Of course, a link to the documentation, which you've already wonderfully filled out, would likely be necessary for this simpler function.

I might take a stab at completing a PR on this since having a poster Rmd generator is really useful.

Unable to knit default posterdown::posterdown_latex template using TeXLive

First of all I want to say "thank you" for this great project!

Then I need to describe the issue which I have on my Ubuntu 16.04.6 LTS system.
Here I have installed RStudio preview 1.2.1303 and TeXLive 2015 (from repository).

So I have installed the posterdown package and tried to build Posterdown LaTeX template file and hit Knit button. And got the following output:

/usr/bin/pandoc +RTS -K512m -RTS posterdown-latex.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output posterdown-latex.tex --template /home/username/R/x86_64-pc-linux-gnu-library/3.4/posterdown/rmarkdown/templates/posterdown_latex/resources/template.tex --highlight-style tango --pdf-engine pdflatex --biblatex 
output file: posterdown-latex.knit.md

! Missing number, treated as zero.
<to be read again> 
                   \edef 
l.62 \definecolor{titleboxbgcol}{HTML}{8080}

Error: Failed to compile posterdown-latex.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See posterdown-latex.log for more info.
Execution halted

Setting options(tinytex.verbose = TRUE) does not help.

Some info is below:

> sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.6 LTS
....
> packageVersion('tinytex')
[1] ‘0.13’
> packageVersion('posterdown')
[1] ‘0.1.2.9000’

I do not know what to do with this error.
The HTML versions are knitted normally.

Typos in citation

Pretty minor - should be "Where" instead of "Were", and "Won't" instead of "Wont".
Great stuff BTW - hoping to use the templates very soon.
Thanks for all this work.

W. Brent Thorne (2019). posterdown: An R Package Built to Generate Reproducible Conference Posters for the Academic and Professional World Were Powerpoint and Pages Just Wont Cut It. R package version 0.1.2.

A BibTeX entry for LaTeX users is:

@Manual{posterdown,
title = {posterdown: An R Package Built to Generate Reproducible Conference Posters for the Academic and Professional World Were Powerpoint and Pages Just Wont Cut It},
author = {W. Brent Thorne},
year = {2019},
url = {https://github.com/brentthorne/posterdown},
note = {R package version 0.1.2},
}

Question about rendering during poster development

Is there a way to

  1. speed up rendering by cache=TRUE for code chunks?
    or
  2. have constantly updating rendering with infinite moon reader (from the xaringan package)
    with xaringan::inf_mr('poster_example.Rmd')

R code chunk option results='markup' output lines prefixed with FALSE

Hi, Thanks for this brilliant package.

When rendering a poster when I have an R code chunk with option results='markup' (or if I remove the results = 'asis' option from the setup chunk), for example,

```{r, echo=TRUE, results='markup'}
1 + 1
```

I am getting what appears to be an erroneous FALSE prefixed on every line of the output (perhaps where a prompt symbol should be), i.e. the output chunk is appearing as follows in the knitted md file.

```
FALSE [1] 2
```

I am using the posterdown_html, posterdown_betterland, posterdown_betterport templates rendering to html.

Thanks indeed for any help,
Tom

Figure and table references & captions not displayed correctly

First of all, thank you for this amazing package!
When I knit the poster (using posterdown_betterport), the references and captions for my tables and figures are not displayed properly. When I use the same code as in the template (@ref(fig:code_chunk_name) + defining a figure caption via fig.cap in the code chunk options), what gets shown in the knitted HTML document is literally "@ref(#fig:code_chunk_name)" instead of "Figure 1". It's the same for tables. For reference: I generated the plot using ggplot2 and the table using kableExtra.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.