---
title: "Emojis and Icons"
format: 
  pdf:
    pdf-engine: lualatex
    include-in-header: 
      - text:
          \usepackage{emoji}
engine: knitr
---
``{r emoji}
#| echo: false
#| warning: false
#| message: false
## https://ctan.math.washington.edu/tex-archive/macros/luatex/latex/emoji/emoji-doc.pdf
library(stringr)
emoji <- function(x) {
  if (knitr::is_latex_output()) {
 stringr::str_c("\\emoji{", str_replace_all(x, "_", "-"), "}")
  } else if (knitr::is_html_output()) {
 stringr::str_c(":", x, ":")
  } else x
}
``
# allo peeps `r emoji("airplane")`
## Quantas `r emoji("airplane")`

Here's a nice looking koala `r emoji("koala")`
Is this one even bigger? \Huge `r emoji("koala")`
`r fontawesome::fa("clapperboard", fill="#4287f5", fill_opacity = .3)`
`r fontawesome::fa("route", fill="#e241e8")`
`r fontawesome::fa("apple", fill="#e8a041")`