Add Cairo as required package

In reference to issue #5
diff --git a/.Rhistory b/.Rhistory
index 7f3b4c2..6ab0764 100644
--- a/.Rhistory
+++ b/.Rhistory
@@ -1,12 +1,3 @@
-ggspatial::layer_spatial(canada, fill = "grey") +
-coord_sf() +
-theme_fivethirtyeight() +
-NULL
-library(ggplot2)
-library(ggspatial)
-library(ggthemes)
-library(sf)
-canada <- read_sf("data/Canada.geojson")
 ggplot() +
 ggspatial::layer_spatial(canada, fill = "grey") +
 coord_sf() +
@@ -510,3 +501,12 @@
 getwd
 getwd()
 install.packages("pdftools")
+library(posterdown)
+library(posterdown)
+library(posterdown)
+library(posterdown)
+roxygen2::roxygenize()
+roxygen2::roxygenize()
+roxygen2::roxygenize()
+library(posterdown)
+library(posterdown)
diff --git a/.Rproj.user/441ADA46/pcs/windowlayoutstate.pper b/.Rproj.user/441ADA46/pcs/windowlayoutstate.pper
index 4373672..e9b88cf 100644
--- a/.Rproj.user/441ADA46/pcs/windowlayoutstate.pper
+++ b/.Rproj.user/441ADA46/pcs/windowlayoutstate.pper
@@ -2,7 +2,7 @@
     "left" : {
         "panelheight" : 789,
         "splitterpos" : 329,
-        "topwindowstate" : "EXCLUSIVE",
+        "topwindowstate" : "NORMAL",
         "windowheight" : 828
     },
     "right" : {
diff --git a/.Rproj.user/441ADA46/pcs/workbench-pane.pper b/.Rproj.user/441ADA46/pcs/workbench-pane.pper
index d5d6c04..b15bf23 100644
--- a/.Rproj.user/441ADA46/pcs/workbench-pane.pper
+++ b/.Rproj.user/441ADA46/pcs/workbench-pane.pper
@@ -2,7 +2,5 @@
     "TabSet1" : 3,
     "TabSet2" : 0,
     "TabZoom" : {
-        "MaximizedTab" : "Source",
-        "WidgetSize" : 502
     }
 }
\ No newline at end of file
diff --git a/.Rproj.user/441ADA46/persistent-state b/.Rproj.user/441ADA46/persistent-state
index 52b0d9d..431a782 100644
--- a/.Rproj.user/441ADA46/persistent-state
+++ b/.Rproj.user/441ADA46/persistent-state
@@ -1,8 +1,8 @@
 build-last-errors="[]"
 build-last-errors-base-dir="~/Documents/GitHub/posterdown/"
-build-last-outputs="[{\"output\":\"==> R CMD INSTALL --preclean --no-multiarch --with-keep.source posterdown\\n\\n\",\"type\":0},{\"output\":\"* installing to library ‘/home/thornux/R/x86_64-pc-linux-gnu-library/3.5’\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"* installing *source* package ‘posterdown’ ...\\n\",\"type\":1},{\"output\":\"** R\\n\",\"type\":1},{\"output\":\"** inst\\n\",\"type\":1},{\"output\":\"** byte-compile and prepare package for lazy loading\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"** help\\n\",\"type\":1},{\"output\":\"*** installing help indices\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"** building package indices\\n\",\"type\":1},{\"output\":\"** testing if installed package can be loaded\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"* DONE (posterdown)\\n\",\"type\":1},{\"output\":\"\",\"type\":1}]"
+build-last-outputs="[{\"output\":\"==> R CMD INSTALL --preclean --no-multiarch --with-keep.source posterdown\\n\\n\",\"type\":0},{\"output\":\"* installing to library ‘/home/thornux/R/x86_64-pc-linux-gnu-library/3.5’\\n\",\"type\":1},{\"output\":\"* installing *source* package ‘posterdown’ ...\\n\",\"type\":1},{\"output\":\"** R\\n\",\"type\":1},{\"output\":\"** inst\\n\",\"type\":1},{\"output\":\"** byte-compile and prepare package for lazy loading\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"** help\\n\",\"type\":1},{\"output\":\"*** installing help indices\\n\",\"type\":1},{\"output\":\"** building package indices\\n\",\"type\":1},{\"output\":\"** testing if installed package can be loaded\\n\",\"type\":1},{\"output\":\"\",\"type\":1},{\"output\":\"* DONE (posterdown)\\n\",\"type\":1},{\"output\":\"\",\"type\":1}]"
 compile_pdf_state="{\"errors\":[],\"output\":\"\",\"running\":false,\"tab_visible\":false,\"target_file\":\"\"}"
 files.monitored-path=""
 find-in-files-state="{\"handle\":\"\",\"input\":\"\",\"path\":\"\",\"regex\":true,\"results\":{\"file\":[],\"line\":[],\"lineValue\":[],\"matchOff\":[],\"matchOn\":[]},\"running\":false}"
-imageDirtyState="0"
-saveActionState="0"
+imageDirtyState="1"
+saveActionState="-1"
diff --git a/.Rproj.user/441ADA46/sources/per/t/12A15D18 b/.Rproj.user/441ADA46/sources/per/t/12A15D18
new file mode 100644
index 0000000..40be70d
--- /dev/null
+++ b/.Rproj.user/441ADA46/sources/per/t/12A15D18
@@ -0,0 +1,22 @@
+{
+    "collab_server" : "",
+    "contents" : "",
+    "created" : 1546910268699.000,
+    "dirty" : false,
+    "encoding" : "UTF-8",
+    "folds" : "",
+    "hash" : "3374608670",
+    "id" : "12A15D18",
+    "lastKnownWriteTime" : 1546912355,
+    "last_content_update" : 1546912355541,
+    "path" : "~/Documents/GitHub/posterdown/inst/rmarkdown/templates/posterdown_pdf/resources/template.tex",
+    "project_path" : "inst/rmarkdown/templates/posterdown_pdf/resources/template.tex",
+    "properties" : {
+        "cursorPosition" : "83,65",
+        "scrollLine" : "76"
+    },
+    "relative_order" : 2,
+    "source_on_save" : false,
+    "source_window" : "",
+    "type" : "tex"
+}
\ No newline at end of file
diff --git a/.Rproj.user/441ADA46/sources/per/t/12A15D18-contents b/.Rproj.user/441ADA46/sources/per/t/12A15D18-contents
new file mode 100644
index 0000000..811d8dc
--- /dev/null
+++ b/.Rproj.user/441ADA46/sources/per/t/12A15D18-contents
@@ -0,0 +1,176 @@
+%brent's poster layout :)
+
+\documentclass[article,$font_size$,extrafontsizes]{memoir}
+
+%utf-8 seems to be important
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{multicol}
+\usepackage{graphicx}
+\usepackage{blindtext}
+\usepackage[svgnames,table]{xcolor}
+\usepackage[framemethod=tikz]{mdframed}
+\usepackage{color}
+\usepackage{geometry}
+\usepackage{adjmulticol}
+
+%For kable extra package :)
+\usepackage{booktabs}
+\usepackage{longtable}
+\usepackage{array}
+\usepackage{multirow}
+\usepackage{wrapfig}
+\usepackage{float}
+\usepackage{colortbl}
+\usepackage{pdflscape}
+\usepackage{pagecolor}
+\usepackage{tabu}
+\usepackage{threeparttable}
+\usepackage{threeparttablex}
+\usepackage[normalem]{ulem}
+\usepackage{makecell}
+
+\usepackage{hyperref}
+\hypersetup{
+    colorlinks=true,
+    linkcolor=$link_col$,
+    citecolor=$cite_col$,
+    filecolor=magenta,
+    urlcolor=$url_col$,
+}
+
+
+%For figure and table placement
+\usepackage{float}
+\floatplacement{figure}{H}
+\floatplacement{table}{H}
+
+%spacing between figure/ table and caption
+\setlength{\abovecaptionskip}{0.4in}
+\setlength{\belowcaptionskip}{0.2in}
+\captionnamefont{\footnotesize\sffamily\bfseries}
+\captiontitlefont{\footnotesize\sffamily}
+
+%define column options
+\setlength{\columnseprule}{1pt}
+\def\columnseprulecolor{\color{$columnline_col$}}
+\setsubsubsecheadstyle{\small\color{$header_textcol$}\textbf}% Set \section style
+\setsecheadstyle{\small\color{$header_textcol$}}
+\setsecnumformat{}
+\def\sectionmark#1{\markboth{#1}{#1}}
+
+%-----------------------------------------------------
+
+\thispagestyle{empty}
+\definecolor{light-gray}{gray}{0.9}
+
+%biblatex options
+\usepackage[sorting=none,backend=biber]{biblatex}
+\renewcommand*{\bibfont}{\tiny}
+\bibliography{$bibliography$}
+\defbibheading{bibliography}[\bibname]{%
+\section*{#1}%
+\markboth{#1}{#1}}
+\AtBeginDocument{%
+  \renewcommand{\bibname}{References}
+}
+
+%bring in the users information
+\author{$author$}
+\title{$title$}
+\counterwithout{section}{chapter}
+\makechapterstyle{mydefault}{
+\addtocounter{secnumdepth}{2}
+\setsecheadstyle{\centering\Large\color{$header_textcol$}\textbf}
+\setsubsecheadstyle{\itshape}
+\setsubsubsecheadstyle{\itshape}
+}
+
+\chapterstyle{mydefault}
+
+%define column spacing
+\setlength\columnsep{1in}
+
+\setlength\parindent{1em}
+\setlength\parskip{1em}
+\setlength\hangparas{0}
+
+%spacing after section head title
+\setaftersecskip{0.3in}
+\setbeforesecskip{1in}
+\setlength\textfloatsep{0.3in}
+\setlength\floatsep{0.3in}
+\setlength\intextsep{0.3in}
+
+\setstocksize{$poster_height$}{$poster_width$}
+\settrimmedsize{\stockheight}{\stockwidth}{*}
+\settypeblocksize{$poster_height$}{$poster_width$}{*}
+\setlrmargins{*}{*}{1}
+\setulmarginsandblock{2.5cm}{*}{*}
+\setmarginnotes{0em}{0cm}{0cm}
+\setlength{\footskip}{0cm}
+\setlength{\footnotesep}{0cm}
+\setlength{\headheight}{0pt}
+\setlength{\headsep}{0pt}
+\setlength{\trimtop}{0pt}
+\setlength{\trimedge}{0pt}
+\setlength{\uppermargin}{0pt}
+\checkandfixthelayout
+
+\definecolor{myframecolour}{HTML}{$title_bgcol$}
+
+\mdfdefinestyle{brentsmdfstyle}{%
+  backgroundcolor=myframecolour,
+  linecolor= $columnline_col$,
+  topline=false,
+  leftline=false,
+  rightline=false,
+  linewidth=2mm,
+  settings={\definecolor{linkcolor}{RGB}{255,255,255}}}
+
+%Footnote to white
+\usepackage{footmisc}
+\def\footnotelayout{\centering\color{white}}
+
+% see https://stackoverflow.com/a/47122900
+$if(highlighting-macros)$
+$highlighting-macros$
+$endif$
+
+% choose font family
+\usepackage{$font_family$}
+\renewcommand*\familydefault{\sfdefault}
+\newpagecolor{$poster_bgcol$}
+%begin the document
+\begin{document}
+
+\begin{mdframed}[style=brentsmdfstyle]
+%sets footnote to be white hopefully
+\renewcommand\footnoterule{}
+\renewcommand{\thempfootnote}{\footnotesize\color{red}{\arabic{mpfootnote}}}
+
+% group which adds title author and other infor
+% Used instead of \maketitle for better spacing options
+\begingroup
+  \centering
+  \color{$title_textcol$}
+\vspace{0.5in}
+  \Huge{$title$} \\[0.3in]
+  \color{cyan} \Large{$author$} \\[0.2in]
+  \color{white} \large{$affiliation$} \par
+  \vspace{0.2in}
+
+% end title section -------------------
+  \endgroup
+\end{mdframed}
+
+% Brgin body of poster
+\begin{adjmulticols*}{$column_numbers$}{10mm}{10mm}
+\normalsize{
+\color{black}
+$body$
+\printbibliography
+}
+\end{adjmulticols*}
+%end the poster
+\end{document}
diff --git a/.Rproj.user/441ADA46/sources/per/t/25D73910 b/.Rproj.user/441ADA46/sources/per/t/25D73910
index 981921f..d690598 100644
--- a/.Rproj.user/441ADA46/sources/per/t/25D73910
+++ b/.Rproj.user/441ADA46/sources/per/t/25D73910
@@ -4,16 +4,16 @@
     "created" : 1546879226629.000,
     "dirty" : false,
     "encoding" : "UTF-8",
-    "folds" : "0|3|28|0|\n30|21|32|0|\n",
+    "folds" : "",
     "hash" : "4025009362",
     "id" : "25D73910",
-    "lastKnownWriteTime" : 1546872959,
-    "last_content_update" : 1546880272461,
+    "lastKnownWriteTime" : 1546912566,
+    "last_content_update" : 1546912566249,
     "path" : "~/Documents/GitHub/posterdown/inst/rmarkdown/templates/posterdown_pdf/skeleton/skeleton.Rmd",
     "project_path" : "inst/rmarkdown/templates/posterdown_pdf/skeleton/skeleton.Rmd",
     "properties" : {
-        "cursorPosition" : "4,131",
-        "scrollLine" : "0"
+        "cursorPosition" : "32,0",
+        "scrollLine" : "26"
     },
     "relative_order" : 1,
     "source_on_save" : false,
diff --git a/.Rproj.user/441ADA46/sources/prop/60EAAA4E b/.Rproj.user/441ADA46/sources/prop/60EAAA4E
index 9960a89..c8a6372 100644
--- a/.Rproj.user/441ADA46/sources/prop/60EAAA4E
+++ b/.Rproj.user/441ADA46/sources/prop/60EAAA4E
@@ -1,4 +1,4 @@
 {
-    "cursorPosition" : "4,131",
-    "scrollLine" : "0"
+    "cursorPosition" : "32,0",
+    "scrollLine" : "26"
 }
\ No newline at end of file
diff --git a/.Rproj.user/441ADA46/sources/prop/AE6C9F23 b/.Rproj.user/441ADA46/sources/prop/AE6C9F23
index 7a73a41..7d1ed6b 100644
--- a/.Rproj.user/441ADA46/sources/prop/AE6C9F23
+++ b/.Rproj.user/441ADA46/sources/prop/AE6C9F23
@@ -1,2 +1,4 @@
 {
+    "cursorPosition" : "15,14",
+    "scrollLine" : "0"
 }
\ No newline at end of file
diff --git a/.Rproj.user/441ADA46/sources/prop/B68389EB b/.Rproj.user/441ADA46/sources/prop/B68389EB
index 6519c24..1c34024 100644
--- a/.Rproj.user/441ADA46/sources/prop/B68389EB
+++ b/.Rproj.user/441ADA46/sources/prop/B68389EB
@@ -1,4 +1,4 @@
 {
-    "cursorPosition" : "41,0",
-    "scrollLine" : "0"
+    "cursorPosition" : "83,65",
+    "scrollLine" : "76"
 }
\ No newline at end of file
diff --git a/.Rproj.user/shared/notebooks/A381DD33-skeleton/1/441ADA46C5FA17EB/chunks.json b/.Rproj.user/shared/notebooks/A381DD33-skeleton/1/441ADA46C5FA17EB/chunks.json
new file mode 100644
index 0000000..ad816db
--- /dev/null
+++ b/.Rproj.user/shared/notebooks/A381DD33-skeleton/1/441ADA46C5FA17EB/chunks.json
@@ -0,0 +1 @@
+{"chunk_definitions":[],"doc_write_time":1546872959}
\ No newline at end of file
diff --git a/.Rproj.user/shared/notebooks/A381DD33-skeleton/1/s/chunks.json b/.Rproj.user/shared/notebooks/A381DD33-skeleton/1/s/chunks.json
index 8cc7468..ad816db 100644
--- a/.Rproj.user/shared/notebooks/A381DD33-skeleton/1/s/chunks.json
+++ b/.Rproj.user/shared/notebooks/A381DD33-skeleton/1/s/chunks.json
@@ -1 +1 @@
-{"chunk_definitions":[],"doc_write_time":1546872893}
\ No newline at end of file
+{"chunk_definitions":[],"doc_write_time":1546872959}
\ No newline at end of file
diff --git a/.Rproj.user/shared/notebooks/paths b/.Rproj.user/shared/notebooks/paths
index 7e8172f..d889db5 100644
--- a/.Rproj.user/shared/notebooks/paths
+++ b/.Rproj.user/shared/notebooks/paths
@@ -4,7 +4,6 @@
 /home/thornux/Documents/GitHub/posterdown/R/posterdown.R="500497F6"
 /home/thornux/Documents/GitHub/posterdown/R/posterdown_pdf.R="A4294514"
 /home/thornux/Documents/GitHub/posterdown/R/utils.R="FF95E6E6"
-/home/thornux/Documents/GitHub/posterdown/Untitled/Untitled.Rmd="FC6A8D15"
 /home/thornux/Documents/GitHub/posterdown/inst/rmarkdown/templates/posterdown_pdf/resources/template.tex="7D49527C"
 /home/thornux/Documents/GitHub/posterdown/inst/rmarkdown/templates/posterdown_pdf/skeleton/skeleton.Rmd="A381DD33"
 /home/thornux/Documents/GitHub/posterdown/inst/rmarkdown/templates/posterdown_pdf/template.yaml="9340C96"
diff --git a/DESCRIPTION b/DESCRIPTION
index 9b27e89..23d1dda 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -14,5 +14,6 @@
     dplyr,
     ggplot2,
     rmarkdown,
+    Cairo,
     knitr
 RoxygenNote: 6.1.0.9000
diff --git a/inst/rmarkdown/templates/posterdown_pdf/resources/template.tex b/inst/rmarkdown/templates/posterdown_pdf/resources/template.tex
index e6c1632..811d8dc 100644
--- a/inst/rmarkdown/templates/posterdown_pdf/resources/template.tex
+++ b/inst/rmarkdown/templates/posterdown_pdf/resources/template.tex
@@ -81,7 +81,7 @@
 \counterwithout{section}{chapter}
 \makechapterstyle{mydefault}{
 \addtocounter{secnumdepth}{2}
-\setsecheadstyle{\Large\color{$header_textcol$}\textbf}
+\setsecheadstyle{\centering\Large\color{$header_textcol$}\textbf}
 \setsubsecheadstyle{\itshape}
 \setsubsubsecheadstyle{\itshape}
 }
@@ -137,6 +137,7 @@
 $highlighting-macros$
 $endif$
 
+% choose font family
 \usepackage{$font_family$}
 \renewcommand*\familydefault{\sfdefault}
 \newpagecolor{$poster_bgcol$}