fix templates and orcid ID for posterdown_betterland #86
- added updated poster image for posterdown_betterland
diff --git a/images/betterland_july2019-1.png b/images/betterland_july2019-1.png
new file mode 100644
index 0000000..2d50fd9
--- /dev/null
+++ b/images/betterland_july2019-1.png
Binary files differ
diff --git a/inst/rmarkdown/templates/posterdown_betterland/resources/template.html b/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
index 83875f5..7869308 100644
--- a/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_betterland/resources/template.html
@@ -289,6 +289,9 @@
margin-left: auto;
margin-right: auto;
}
+.orcid img {
+ width: 3%;
+}
</style>
</head>
<body>
@@ -310,7 +313,7 @@
$for(author)$
$if(author.main)$
-$author.name$<sup> $author.affil$$if(author.orcid)$, $author.orcid$</sup><br>
+$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>
$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)$
@@ -322,11 +325,11 @@
$else$$endif$
$if(author)$
-<h5 id="author_extra", class="author_extra">
+<h5 id="author_extra" class="author_extra">
$for(author)$
$if(author.main)$
$else$
-$author.name$<sup>$author.affil$</sup>
+$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>
$endif$
$sep$ $endfor$
</h5>
diff --git a/inst/rmarkdown/templates/posterdown_betterland/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/posterdown_betterland/skeleton/skeleton.Rmd
index 6080494..28fd1a7 100644
--- a/inst/rmarkdown/templates/posterdown_betterland/skeleton/skeleton.Rmd
+++ b/inst/rmarkdown/templates/posterdown_betterland/skeleton/skeleton.Rmd
@@ -5,7 +5,7 @@
affil: 1
twitter: brentthorne18
email: brentthorne18@gmail.com
- orcid: 008584-433
+ orcid: 0000-0002-1099-3857
main: true
affiliation:
- num: 1
@@ -60,12 +60,18 @@
To reference a citation you can add your `.bib` file to the working directory and name it in the YAML metadata or generate an automated one as done here, then you only need to reference the label value in the `.bib` file. For example this package is built on top of the wonderful {pagedown} package and I will cite it at the end of this sentance using this in the rmd `[@R-pagedown]` [@R-pagedown].
+To get a better understanding of how to include features like these please refer to the {posterdown} [wiki](https://github.com/posterdown/wiki).
+
+**_Now on to the results!_**
+
+<br>
+
# Results
Here you may have some figures to show off, bellow I have made a scatterplot with the infamous Iris dataset and I can even reference to the figure automatically like this, `Figure \@ref(fig:irisfigure)`, Figure \@ref(fig:irisfigure).
-```{r, irisfigure, fig.cap='Here is a caption for the figure. This can be added by using the "fig.cap" option in the r code chunk options, see this [link](https://yihui.name/knitr/options/#plots) from the legend himself, [Yihui Xie](https://twitter.com/xieyihui).'}
-
+```{r, irisfigure, fig.cap='Here is a caption for the figure. This can be added by using the "fig.cap" option in the r code chunk options, see this [link](https://yihui.name/knitr/options/#plots) from the legend himself, [Yihui Xie](https://twitter.com/xieyihui).', out.width="80%"}
+par(mar=c(2,2,0,1))
plot(x = iris$Sepal.Length, y = iris$Sepal.Width,
col = iris$Species, pch = 19, xlab = "Sepal Length",
ylab = "Sepal Width")