commit | a8b95cec32fcc90db3b6ea5d90940b73b3289666 | [log] [tgz] |
---|---|---|
author | Brent Thorne <15312739+brentthorne@users.noreply.github.com> | Fri Jan 25 13:32:16 2019 -0500 |
committer | Brent Thorne <15312739+brentthorne@users.noreply.github.com> | Fri Jan 25 13:32:16 2019 -0500 |
tree | 61a3a387e508dc5d0f4413332711197c52993088 | |
parent | 031369c1329449420d06054d9d9bc3c76e8c7938 [diff] |
Fix ReadMe tables
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 :blush:, we always had to go back to using MS Powerpoint or Keynote or Adobe Illustrator for generating conference posters :unamused:. Posterdown was created as a proof-of-concept (to myself) that it is possible to make a beautiful poster using open source reproducible code.
From this:
To this:
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! :smile:
You can install and use posterdown from github using the devtools
package as seen below.
devtools::install_github("brentthorne/posterdown")
Install devtools
package
install.packages("devtools")
Install posterdown
from github repo
devtools::install_github("brentthorne/posterdown")
Install tinytex
Latex libraries:
tinytex::install_tinytex()
NOTE This will take some time to load the LaTex Packages but is the best option (in my opinion) for keeping your Latex library as small as possible. After the first download of these libraries you will not need to do this again. To confirm that Tinytex is properly installed use: tinytex:::is_tinytex()
and you should get a value of TRUE
in the console.
NOTE If you have conflicting versions of Latex (i.e. tinytex and MacTex), you could have problems rendering your poster. You may need to uninstall all versions, then start over by installing posterdown and tinytex from scratch.
The posterdown package provides a familiar workflow for those used to working in RMarkdown. This package is currently focused on a single template called posterdown_pdf which is by default a 38in (H) x 45in (W) poster template but does allow for custom sizing, section headers, and colour options.
To use posterdown from RStudio:
Install the latest RStudio.
Install the posterdown package:
devtools::install_github("brentthorne/posterdown")
Use the File / New File / R Markdown.. / From Template / Posterdown PDF dialog pathway to create a conference poster from the Posterdown PDF template provided.
NOTE If you do not see the Posterdown PDF template in this dialogue box, restart the R session or close and re-open RStudio.
Posterdown uses Latex to generate the PDF poster but more specifically it uses the Memoir Latex class. Memoir was chosen for its flexibility in page sizing as well as its thorough documentation. I am fairly new to the world of Latex, and found this class to have a reasonable amount of customization available, at least for my skill level. If there are any users who think there may be better options for down the road I am more than willing to listen!
YAML header options have been created to provide more freedom in design (i.e. colours, number of columns, and sizing) to fit a wide variety of requirements. Here are the default YAML options found in the .Rmd
file:
Option | Description |
---|---|
poster_height | Height of the final poster output. Units can be: "in", "mm", "cm" |
poster_width | Width of the final poster output. Units can be: "in", "mm", "cm" |
font_family | Selects the font family to be used on the poster. In the future I will try to implement multiple font families for various components of the poster (such as different fonts for the title versus the main body text). For now, only standard Latex fonts are available, see here for a list of possible options. |
font_size | Represents the point value for \normaltextsize in latex. All other font sizes are adjusted from this baseline. For example, if the title in the skeleton document is given the Latex command \Huge , meaning that the title text will be "huge" relative to the font_size chosen. See Here for a useful resource for a better understanding of the Latex text sizing options. |
Option | Description |
---|---|
title | Poster title, acts as you would expect from RMarkdown. You can add line breaks in your title with \break. |
author | List of authors which (as of now) only has true support for a single author, however I have provided a hacky way to have many authors until I can find the time to figure out how to implement something like the rticles packages does |
affiliation | Author affiliations, which just as the author section is currently a hacky version of what I would ultimately like to produce. |
Option | Description |
---|---|
titlebox_bgcol | Colour of the background for the Title Box area of the poster. |
titlebox_bordercol | Colour of the border for the Title Box area of the poster. |
titlebox_shape | Shape of the corners for the Title box (Options include: south or uphill . For all corners to be sharp use the option "all" . For more options please see the tcolorbox manual and search for "sharp corners", HINT there are LOTS of options there :smile: . |
titlebox_borderwidth | Width of the Top Title Box border. |
title_textcol | Colour of the titlebox title text (AKA your title). |
author_textcol | Colour of the author text. |
affiliation_textcol | Colour of the affiliation text. |
title_textsize | Title font size. Sizes can be one of: "tiny", "scriptsize", "footnotesize", "small", "normalsize", "large", "Large", "LARGE", "huge" or "Huge", see font_size above for more information. |
author_textsize | Author list font size |
affiliation_textsize | Affiliations list font size |
Option | Description |
---|---|
logoleft_name | Name of the image file you want to use for the logo to the left. |
logoleft_width | Width of the image you chose (Note: The height will adjust automatically based on the width to avoid distortion :smile:) |
logoleft_xshift | Value to move the image along the x-axis based on the anchor being the left bottom corner. |
logoleft_yshift | Value to move the image along the y-axis based on the anchor being the left bottom corner. |
logoright_name | Name of the image file you want to use for the logo to the right. |
logoright_width | Width of the image you chose (Note: The height will adjust automatically based on the width to avoid distortion :smile:) |
logoright_xshift | Value to move the image along the x-axis based on the anchor being the right bottom corner. |
logoright_yshift | Value to move the image along the y-axis based on the anchor being the right bottom corner. |
Option | Description |
---|---|
body_bgcol | Background colour of the poster's main body. |
body_textsize | Font size of the poster's main paragraphs from the body. |
body_textcol | Colour of the main body text. |
column_numbers | Number of columns you wish for the poster to have in the main section of the poster. |
column_margins | Spcaing between each column as well as the edge of the poster. |
columnline_col | Colour of the line which divides each column in the poster. |
Option | Description |
---|---|
sectitle_textcol | Colour of the Section Title Text. |
sectitle_bgcol | Colour of the section title box. |
sectitle_bordercol | Colour of the border around the section text box. |
sectitle_borderwidth | Thickness of the section title box border. |
sectitle_boxshape | Shape of the corners for the section title box (Options include: south or uphill . For all corners to be sharp use the option "all" . For more options please see the tcolorbox manual and search for "sharp corners", HINT there are LOTS of options there :smile: . |
Option | Description |
---|---|
bibliography | Name of the .bib . file which you are using to source material. As of right now only biblatex is working but I intend to add support of natbib which is my preference. |
bibliography_spacing | Sets the mutiplier for line spacing between bibliography entries, default value is 0.8 . Useful if you need to squeeze more space from somewhere. |
bibliography_textsize | Bibliography font size |
Option | Description |
---|---|
cite_col | Colour of the citation link elements when using biblatex . |
url_col | Colour of URL links specifically. |
link_col | Colour of in-document links (example would be referencing a Figure or a Table). |
footnote_textcol | Colour of the footnote text. |
output | For generating posterdown_pdf , in the future other poster designs or templates may be made for this package and thus this option in the YAML will be more flexible. For now this is the only option. |
As you add content to your RMarkdown file, you will notice that the output pdf will fill in columns from left to right, and from top to bottom within columns. If you have more content for your poster than available space on the default poster, it will spill onto a second page. If this occurs, you can try adding more columns and decreasing the font size (both in the YAML header) to make it work. Or, of course, edit the content to make it shorter. :smile:
Install pandoc using the instructions for your platform.
Install the rmarkdown and posterdown packages:
devtools::install_github("brentthorne/posterdown")
Use the rmarkdown::draft()
function to create articles:
rmarkdown::draft("MyPoster.Rmd", template = "posterdown_pdf", package = "posterdown")