---
title: ''
geometry: "left=-6cm,right=-6cm,top=1cm,bottom=1cm"
output:
  pdf_document: default
linestretch: 2.5
header-includes:
  - \usepackage{pgfpages}
  - \usepackage{qrcode}
  - \usepackage{pspicture}
  - \usepackage{mdframed}
  - \pgfpagesuselayout{4 on 1}[landscape]
params:
  title: ""
  subtitle: ""
  qr.i: ""
  family.i: ""
  taxon.i: ""
  author.i: ""
  det.i: ""
  date.det.i: ""
  location.i: ""
  area.description.i: ""
  latitude.i: ""
  longitude.i: ""
  elevation.i: ""
  field1.i: ""
  field2.i: ""
  field3.i: ""
  collector.i: ""
  collection.i: ""
  assistants.i: ""
  date.i: ""
---

```{r echo=FALSE, results='asis'}
for (i in seq_along(params$collection.i)){
  cat("
\\begin{mdframed}[linewidth=2pt,linecolor=black]\n
\\pagenumbering{gobble}
\\begin{center}
\\bigskip
{\\fontsize{30pt}{100pt}\\selectfont\\bf", params$title, "} \\\\
\\end{center}
\\begin{flushright}
\\begin{minipage}[c][20ex][c]{15em}",
  if (params$qr.i[i] != "") "\\qrcode[height=2in, version=5]{",
  if (params$qr.i[i] != "") params$qr.i[i],
  if (params$qr.i[i] != "") "}",
"
\\end{minipage}
\\end{flushright}
\\begin{flushleft}
{\\fontsize{35pt}{100pt}\\selectfont\\bf",params$family.i[i]," } \\\\
\\vfill
{\\fontsize{35pt}{100pt}\\selectfont\\emph{",params$taxon.i[i],"} ",params$author.i[i],"} \\\\
\\end{flushleft}
\\begin{flushright}
{\\fontsize{22.55pt}{100pt}\\selectfont Det.", params$det.i[i]," ", params$date.det.i[i],"} \\\\
\\end{flushright}
\\vfill
\\bigskip
\\bigskip
\\begin{flushleft}
{\\fontsize{25pt}{100pt}\\selectfont", params$location.i[i],"} \\\\
{\\fontsize{25pt}{100pt}\\selectfont", params$area.description.i[i],"} \\\\
{\\fontsize{25pt}{100pt}\\selectfont Elevation:", params$elevation.i[i],"}\\\\
{\\fontsize{25pt}{100pt}\\selectfont", params$latitude.i[i], " | ", params$longitude.i[i],"} \\\\
\\vfill
{\\fontsize{25pt}{100pt}\\selectfont",params$field1.i[i],"} \\\\
{\\fontsize{25pt}{100pt}\\selectfont",params$field2.i[i],"} \\\\
{\\fontsize{25pt}{100pt}\\selectfont",params$field3.i[i],"} \\\\
\\end{flushleft}
\\vfill
\\begin{flushright}
{\\fontsize{20pt}{100pt}\\selectfont\\bf Collector: ",params$collector.i[i]," \\#",params$collection.i[i],"} \\\\
{\\fontsize{20pt}{100pt}\\selectfont With: ",params$assistants.i[i],"} \\\\
{\\fontsize{20pt}{100pt}\\selectfont ",params$date.i[i],"} \\\\
\\end{flushright}
\\vfill
\\begin{center}
{\\fontsize{25pt}{80pt}\\selectfont\\bf ",params$subtitle,"} \\\\
\\end{center}
\\end{mdframed}\n
\\pagebreak")
}
```



