change src to href so orcid links are clickable...my bad!
diff --git a/inst/rmarkdown/templates/posterdown_betterland/resources/template.html b/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
index 7869308..0d5aca5 100644
--- a/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
@@ -313,7 +313,7 @@
$for(author)$
$if(author.main)$
-$author.name$<sup> $author.affil$$if(author.orcid)$, <a class="orcid" src="https://orcid.org/$author.orcid$"><img src="https://raw.githubusercontent.com/brentthorne/posterdown/master/images/orcid.jpg"></a>$else$$endif$</sup><br>
+$author.name$<sup> $author.affil$$if(author.orcid)$, <a class="orcid" href="https://orcid.org/$author.orcid$"><img src="https://raw.githubusercontent.com/brentthorne/posterdown/master/images/orcid.jpg"></a>$else$$endif$</sup><br>
$if(author.twitter)$<a class="twitter" href="https://mobile.twitter.com/$author.twitter$"><i class="fab fa-twitter"></i> @$author.twitter$</a><br>
$else$$endif$
$if(author.email)$
diff --git a/inst/rmarkdown/templates/posterdown_betterport/resources/template.html b/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
index c817bd8..89887c1 100644
--- a/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_betterport/resources/template.html
@@ -269,21 +269,18 @@
left: 0.5in;
bottom: 0.2in;
position: absolute;
-opacity: 0.5
}
#main-img-center {
width: 10%;
left: calc($if(poster_width)$$poster_width$$else$36in$endif$ * 0.45);
bottom: 0.5in;
position: absolute;
-opacity: 0.5
}
#main-img-right {
width: 10%;
right: 0.5in;
bottom: 0.2in;
position: absolute;
-opacity: 0.6
}
.main p {
font-size: $if(main_textsize)$$main_textsize$$else$150px$endif$;
@@ -354,7 +351,7 @@
$for(author)$
$if(author.main)$
-$author.name$<sup> $author.affil$$if(author.orcid)$, <a class="orcid" src="https://orcid.org/$author.orcid$"><img src="https://raw.githubusercontent.com/brentthorne/posterdown/master/images/orcid.jpg"></a>$else$$endif$</sup><br>
+$author.name$<sup> $author.affil$$if(author.orcid)$, <a class="orcid" href="https://orcid.org/$author.orcid$"><img src="https://raw.githubusercontent.com/brentthorne/posterdown/master/images/orcid.jpg"></a>$else$$endif$</sup><br>
$if(author.twitter)$<a class="twitter" href="https://mobile.twitter.com/$author.twitter$"><i class="fab fa-twitter"></i> @$author.twitter$</a><br>
$else$$endif$
$if(author.email)$
diff --git a/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd
index afb46ad..d9a7dad 100644
--- a/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd
+++ b/inst/rmarkdown/templates/posterdown_betterport/skeleton/skeleton.Rmd
@@ -57,7 +57,7 @@
# Introduction
-This is the `posterdown_betterland` template for the {posterdown} package! I was inspired by the twitter thread of [Mike Morrison](https://mobile.twitter.com/mikemorrison/status/1110191245035479041) and wanted to apply the `#betterposter` concept to the reproducible (yet simple to use) functionality of the {posterdown} package [@R-posterdown]. If you're not an R user don't sweat as you do **NOT** need to use it at all! Feel free to use only the Markdown functionality of this package :)
+This is the `posterdown_betterport` template for the {posterdown} package! I was inspired by the twitter thread of [Mike Morrison](https://mobile.twitter.com/mikemorrison/status/1110191245035479041) and wanted to apply the `#betterposter` concept to the reproducible (yet simple to use) functionality of the {posterdown} package [@R-posterdown]. If you're not an R user don't sweat as you do **NOT** need to use it at all! Feel free to use only the Markdown functionality of this package :)
```{r, include=FALSE}
knitr::write_bib(c('posterdown', 'rmarkdown','pagedown'), 'packages.bib')
@@ -96,7 +96,7 @@
Maybe you want to show off some of that fancy code you spent so much time on to make that figure, well you can do that too! Just use the `echo=TRUE` option in the r code chunk options, Figure \@ref(fig:myprettycode)!
-```{r myprettycode, echo=TRUE, fig.cap='Boxplots, so hot right now!', fig.height=3.5, out.width="80%"}
+```{r myprettycode, echo=TRUE, fig.cap='Boxplots, so hot right now!', fig.height=6, out.width="80%"}
#trim whitespace
par(mar=c(2,2,0,0))
#plot boxplots
@@ -111,7 +111,7 @@
```{r, iristable}
knitr::kable(
- iris[1:2,1:5], format = "html",
+ iris[1:15,1:5], format = "html",
caption = "A table made with the **knitr::kable** function.",
align = "c", col.names = c("Sepal <br> Length",
"Sepal <br> Width",
diff --git a/inst/rmarkdown/templates/posterdown_html/resources/template.html b/inst/rmarkdown/templates/posterdown_html/resources/template.html
index 06dc77e..45db9bc 100644
--- a/inst/rmarkdown/templates/posterdown_html/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_html/resources/template.html
@@ -68,14 +68,14 @@
width: $if(poster_width)$$poster_width$$else$45in$endif$;
height: calc($if(poster_height)$$poster_height$$else$38in$endif$ * 0.15);
overflow: hidden;
-background-color: $if(primary_colour)$$primary_colour$$else$#008080$endif$;
+background-color: $if(primary_colour)$$primary_colour$$else$#0b4545$endif$;
border: $if(titlebox_borderwidth)$$titlebox_borderwidth$$else$0$endif$ solid $if(secondary_colour)$$secondary_colour$$else$#0b4545$endif$;
}
.logo_left {
float: left;
width: 10%;
height: 100%;
-background-color: $if(primary_colour)$$primary_colour$$else$#008080$endif$;
+background-color: $if(primary_colour)$$primary_colour$$else$#0b4545$endif$;
display: flex;
align-items: center;
justify-content: center;
@@ -84,7 +84,7 @@
float: right;
width: 10%;
height: 100%;
-background-color: $if(primary_colour)$$primary_colour$$else$#008080$endif$;
+background-color: $if(primary_colour)$$primary_colour$$else$#0b4545$endif$;
display: flex;
align-items: center;
justify-content: center;
@@ -155,15 +155,19 @@
padding-bottom: calc($if(poster_height)$$poster_height$$else$38in$endif$ * 0.01);
}
.poster_title h3 {
-color: $if(author_textcol)$$author_textcol$$else$$if(secondary_colour)$$secondary_colour$$else$#008080$endif$$endif$;
+color: $if(author_textcol)$$author_textcol$$else$$if(secondary_colour)$$secondary_colour$$else$#ffffff$endif$$endif$;
font-size: $if(author_textsize)$$author_textsize$$else$50pt$endif$;
margin: 0;
border: 0;
font-weight: normal;
}
+.poster_title h3 > sup {
+ font-size: 35pt;
+ margin-left: 0.02em;
+}
.poster_title h5 {
color: $if(affiliation_textcol)$$affiliation_textcol$$else$#FFFFFF$endif$;
-font-size: $if(affiliation_textsize)$$affiliation_texsize$$else$40pt$endif$;
+font-size: $if(affiliation_textsize)$$affiliation_texsize$$else$35pt$endif$;
margin: 0;
border: 0;
font-weight: normal;
@@ -291,6 +295,9 @@
.references p {
font-size: 20pt;
}
+.orcid img {
+ width: 1em;
+}
</style>
</head>
@@ -312,7 +319,7 @@
<!-- Poster Title -->
<div class= "poster_title">
$if(title)$<h1 id="title">$title$</h1>$endif$
-$if(author)$<h3 id="author">$for(author)$$author.name$<sup>$author.affil$</sup>$sep$, $endfor$</h3><br>$endif$
+$if(author)$<h3 id="author">$for(author)$$author.name$<sup>$author.affil$$if(author.orcid)$, <a class="orcid" href="https://orcid.org/$author.orcid$"><img src="https://raw.githubusercontent.com/brentthorne/posterdown/master/images/orcid.jpg"></a>$else$$endif$</sup>$sep$, $endfor$</h3><br>$endif$
$if(affiliation)$<h5 id="affiliation">$for(affiliation)$<sup>$affiliation.num$</sup> $affiliation.address$$sep$, $endfor$</h5>$endif$
</div>
<!-- Right Logo -->
diff --git a/inst/rmarkdown/templates/posterdown_html/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/posterdown_html/skeleton/skeleton.Rmd
index c2b9b7e..1ed2782 100644
--- a/inst/rmarkdown/templates/posterdown_html/skeleton/skeleton.Rmd
+++ b/inst/rmarkdown/templates/posterdown_html/skeleton/skeleton.Rmd
@@ -3,12 +3,14 @@
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
-primary_colour: "#0b4545"
-secondary_colour: "#008080"
-accent_colour: "#0043ff"
+ - 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
@@ -19,13 +21,7 @@
---
```{r setup, include=FALSE}
-knitr::opts_chunk$set(
- results = 'asis',
- echo = FALSE,
- warning = FALSE,
- message = FALSE,
- fig.align = 'center'
-)
+knitr::opts_chunk$set(echo = FALSE)
```
# Introduction
@@ -58,10 +54,15 @@
plot(mtcars[1:2])
```
-```{r morefigs, out.width='80%', fig.cap='Amazing, right?!', fig.height=5}
+```{r morefigs, out.width='80%', echo=TRUE, fig.cap='Amazing, right?!', fig.height=5}
data <- iris
-plot(x = data$Sepal.Length, y = data$Sepal.Width, col = data$Species, pch = 19, xlab = "Sepal Length (cm)", ylab = "Sepal Width (cm)")
+plot(x = data$Sepal.Length,
+ y = data$Sepal.Width,
+ col = data$Species,
+ pch = 19,
+ xlab = "Sepal Length (cm)",
+ ylab = "Sepal Width (cm)")
```