ropensci-org / blog-guidance

rOpenSci Blog Guidelines for Authors and Editors (bookdown::git_book)
https://blogguide.ropensci.org/
9 stars 4 forks source link

document how to have images side by side #135

Closed maelle closed 4 years ago

maelle commented 4 years ago
maelle commented 4 years ago

{{< gallery caption="Figure 1: Two images of partial bullet scans. Were these two bullets fired by the same gun?">}}
{{< img src="/img/blog-images/2019-08-20-forensic-science/bullet1.png" width="50%" caption="bullet 1" >}} 
{{< img src="/img/blog-images/2019-08-20-forensic-science/bullet2.png" width="50%" caption="bullet 2" >}}
{{< /gallery >}}
``
maelle commented 4 years ago

note that if one is very keen on placement it's better to combine images into one. With the gallery format above, when the screen is narrow, images are stacked vertically so if you say "on the left" in the caption it makes no sense.

steffilazerte commented 4 years ago

I'm assuming that we don't really want to encourage the gallery option...

maelle commented 4 years ago

Yeah probably just good for the editors to know if there is an obvious use case?