---
main_topsize: 0.2 #percent coverage of the poster
main_bottomsize: 0.1
poster_height: "120cm"
poster_width: "70cm"
primary_colour: "#1F3970"
secondary_colour: "#6CAEDF"
accent_color: "#FF6347"
#ESSENTIALS
title: '**Worlds greatest scientific discovery**'
author:
  - name: '**James Petticrew**'
    affil: 1
    main: true
    email: "james.petticrew@bsc.es"
  - name: "**Marc Guevara Vilardell**"
    affil: 1
  - name: "Oriol Jorba"
    affil: 1
  - name: "Carlos Pérez García-Pando"
    affil: [1,2]
affiliation:
  - num: 1
    address: Department of Earth Sciences, Barcelona Supercomputing Centre, Barcelona, 08024, Spain
  - num: 2
    address: ICREA, Catalan Institution for Research and Advanced Studies, Passeig Lluís Companys, 23, Barcelona, 08010, Spain
main_findings:
  - "**TLDR** main findings **headline**"
logoleft_name: 
logocenter_name: "bsc-logo-white.png"
logoright_name: 
output: 
  posterdown::posterdown_betterport:
    css: "custom.css"
    titlebox_background: "#1F3970"
    self_contained: true
    pandoc_args: --mathjax
    number_sections: false
bibliography: packages.bib
link-citations: true
knit: pagedown::chrome_print
---

```{r, include=FALSE}
knitr::opts_chunk$set(echo = FALSE,
                      warning = FALSE,
                      tidy = FALSE,
                      message = FALSE,
                      fig.align = 'center',
                      out.width = "100%")
options(knitr.table.format = "html") 
```

# Introduction

Air pollution represents one of the most critical environmental issues, with adverse impacts on human health, ecosystems and climate. Understanding the chemical and physical processes at stake in the atmosphere and assessing and mitigating their impacts requires a reliable estimate of the pollutant anthropogenic and natural emissions.

```{r, include=FALSE}
knitr::write_bib(c('posterdown', 'rmarkdown','pagedown'), 'packages.bib')
```

## Objectives

1. Pick a template layout.
2. Write/ create your poster content distraction free.
3. Let posterdown do its thing!

# Methods

I will show here how to include poster elements that may be useful, such as an equation using mathjax:

$$
E = mc^2
$$

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!_**

# 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).', 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")
```

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=6, out.width="80%"}
#trim whitespace
par(mar=c(2,2,0,0))
#plot boxplots
boxplot(iris$Sepal.Width~iris$Species,
        col = "#008080", 
        border = "#0b4545",
        ylab = "Sepal Width (cm)",
        xlab = "Species")
```

How about a neat table of data? See, Table \@ref(tab:iristable):

```{r, iristable}
knitr::kable(
  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",
                             "Petal <br> Length",
                             "Petal <br> Width",
                             "Species"),
  escape = FALSE)
```

# References
