minor fixes
- yaml description file had posterdown HTML for all three html options which made it hard to find the right one
- fixed some main findings formmating issues in posterdown_betterport
- added `middle_textalpha:` option to ensure `<sup>` emphasis text in main findings is the same text color as the rest
diff --git a/inst/rmarkdown/templates/posterdown_betterland/resources/template.html b/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
index cfa9792..868aa3a 100644
--- a/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
@@ -162,7 +162,7 @@
padding-right: 7%;
padding-left: 7%;
margin: 0;
-line-height: 80%;
+line-height: 90%;
border-bottom: 0;
}
#author {
@@ -170,7 +170,7 @@
padding-left: 7%;
color: $primary_colour$;
margin: 0;
-line-height: 85%;
+line-height: 90%;
font-size: $author_textsize$;
}
#affiliation {
diff --git a/inst/rmarkdown/templates/posterdown_betterland/template.yaml b/inst/rmarkdown/templates/posterdown_betterland/template.yaml
index 9fc207e..b26e40b 100644
--- a/inst/rmarkdown/templates/posterdown_betterland/template.yaml
+++ b/inst/rmarkdown/templates/posterdown_betterland/template.yaml
@@ -1,4 +1,4 @@
-name: Posterdown HTML
+name: Posterdown Betterland
description: >
- Template for creating R Markdown based PDF via HTML and CSS
+ Template for creating R Markdown based PDF via HTML, CSS and the Better Poster Style
create_dir: true
diff --git a/inst/rmarkdown/templates/posterdown_betterport/resources/template.html b/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
index f68ae7a..ce3fbee 100644
--- a/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
@@ -163,8 +163,9 @@
padding-right: 5%;
padding-left: 5%;
margin: 0;
-line-height: 80%;
+line-height: 98%;
border-bottom: 0;
+font-weight: normal;
}
#author {
padding-right: 5%;
@@ -204,6 +205,7 @@
text-align: center;
margin-top: 0.5in;
margin-bottom: 0.5in;
+font-weight: normal;
}
.outer h2 {
text-align: center;
@@ -223,12 +225,18 @@
height: calc($poster_height$ * 0.25);
position: absolute;
background-color: $primary_colour$;
-color: $middle_textcol$;
+color: $middle_textcol$$middle_textalpha$;
font-family: $middle_fontfamily$;
background-image: linear-gradient($primary_colour$ 50%, $secondary_colour$);
}
.middle strong {
-color: #FFFFFF;
+color: $middle_textcol$;
+}
+.middle strong > sup {
+color: $middle_textcol$;
+}
+.middle sup {
+color: $middle_textcol$$middle_textalpha$;
}
#middle-img-left {
width: 10%;
@@ -304,7 +312,7 @@
<div class="poster_wrap">
<div class="column outer">
-<h1 id="title">$title$</h1>
+<h1 id="title">$title$</h1><br>
<h3 id="author" class="author">
$for(author)$
diff --git a/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd
index 80a9d61..edb7ca0 100644
--- a/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd
+++ b/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd
@@ -42,7 +42,8 @@
caption_fontsize: "20pt"
#Middle of the poster
middle_fontfamily: "Special Elite"
-middle_textcol: "#FFFFFF90"
+middle_textcol: "#FFFFFF"
+middle:textalpha: 90
middle_fontsize: "150px"
main_findings:
- "Make **better posters** with RMarkdown + **posterdown**."
diff --git a/inst/rmarkdown/templates/posterdown_betterport/template.yaml b/inst/rmarkdown/templates/posterdown_betterport/template.yaml
index 9fc207e..052f72a 100644
--- a/inst/rmarkdown/templates/posterdown_betterport/template.yaml
+++ b/inst/rmarkdown/templates/posterdown_betterport/template.yaml
@@ -1,4 +1,4 @@
-name: Posterdown HTML
+name: Posterdown HTML Betterport
description: >
- Template for creating R Markdown based PDF via HTML and CSS
+ Template for creating R Markdown based PDF via HTML, CSS and the Better Poster Style
create_dir: true