brentthorne | 93d7601 | 2018-12-05 23:19:59 -0500 | [diff] [blame^] | 1 | %brent's poster layout :) |
| 2 | |
| 3 | \documentclass[article,30pt,extrafontsizes]{memoir} |
| 4 | |
| 5 | %utf-8 seems to be important |
| 6 | \usepackage[utf8]{inputenc} |
| 7 | \usepackage[T1]{fontenc} |
| 8 | \usepackage{palatino} |
| 9 | \usepackage{multicol} |
| 10 | \usepackage{graphicx} |
| 11 | \usepackage{blindtext} |
| 12 | \usepackage[svgnames,table]{xcolor} |
| 13 | \usepackage[framemethod=tikz]{mdframed} |
| 14 | \usepackage{color} |
| 15 | \usepackage{geometry} |
| 16 | \usepackage{adjmulticol} |
| 17 | |
| 18 | %For kable extra package :) |
| 19 | \usepackage{booktabs} |
| 20 | \usepackage{longtable} |
| 21 | \usepackage{array} |
| 22 | \usepackage{multirow} |
| 23 | \usepackage{wrapfig} |
| 24 | \usepackage{float} |
| 25 | \usepackage{colortbl} |
| 26 | \usepackage{pdflscape} |
| 27 | \usepackage{tabu} |
| 28 | \usepackage{threeparttable} |
| 29 | \usepackage{threeparttablex} |
| 30 | \usepackage[normalem]{ulem} |
| 31 | \usepackage{makecell} |
| 32 | |
| 33 | |
| 34 | %For figure and table placement |
| 35 | \usepackage{float} |
| 36 | \floatplacement{figure}{H} |
| 37 | \floatplacement{table}{H} |
| 38 | |
| 39 | %spacing between figure/ table and caption |
| 40 | \setlength{\abovecaptionskip}{0.4in} |
| 41 | \setlength{\belowcaptionskip}{0.2in} |
| 42 | \captionnamefont{\footnotesize\sffamily\bfseries} |
| 43 | \captiontitlefont{\footnotesize\sffamily} |
| 44 | |
| 45 | %define column options |
| 46 | \setlength{\columnseprule}{1pt} |
| 47 | \def\columnseprulecolor{\color{red}} |
| 48 | \setsubsubsecheadstyle{\small\color{red}\textbf}% Set \section style |
| 49 | \setsecheadstyle{\small\color{red}} |
| 50 | \setsecnumformat{} |
| 51 | \def\sectionmark#1{\markboth{#1}{#1}} |
| 52 | |
| 53 | %----------------------------------------------------- |
| 54 | |
| 55 | \thispagestyle{empty} |
| 56 | \definecolor{light-gray}{gray}{0.9} |
| 57 | |
| 58 | \usepackage[style=numeric,backend=biber]{biblatex} |
| 59 | \renewcommand*{\bibfont}{\tiny} |
| 60 | |
| 61 | \bibliography{MyLibrary} |
| 62 | \author{Brent Thorne} |
| 63 | \title{Using \color{Red} \texttt{posterdown} \color{White} to generate |
| 64 | reproducible conference posters via RMarkdown \textgreater{} Knitr |
| 65 | \textgreater{} Markdown \textgreater{} Pandoc \textgreater{} Latex |
| 66 | \textgreater{} PDF workflow as well as long titles\ldots{}} |
| 67 | \counterwithout{section}{chapter} |
| 68 | \makechapterstyle{mydefault}{ |
| 69 | \addtocounter{secnumdepth}{2} |
| 70 | \setsecheadstyle{\Large\color{red}\textbf} |
| 71 | \setsubsecheadstyle{\itshape} |
| 72 | \setsubsubsecheadstyle{\itshape} |
| 73 | } |
| 74 | |
| 75 | \chapterstyle{mydefault} |
| 76 | |
| 77 | \defbibheading{bibliography}[\bibname]{% |
| 78 | \section*{#1}% |
| 79 | \markboth{#1}{#1}} |
| 80 | |
| 81 | |
| 82 | \AtBeginDocument{% |
| 83 | \renewcommand{\bibname}{References} |
| 84 | } |
| 85 | |
| 86 | |
| 87 | %define column spacing |
| 88 | \setlength\columnsep{1in} |
| 89 | |
| 90 | \setlength\parindent{1em} |
| 91 | \setlength\parskip{1em} |
| 92 | \setlength\hangparas{0} |
| 93 | |
| 94 | %spacing after section head title |
| 95 | \setaftersecskip{1in} |
| 96 | \setbeforesecskip{0.1in} |
| 97 | \setlength\textfloatsep{0.3in} |
| 98 | \setlength\floatsep{0.3in} |
| 99 | \setlength\intextsep{0.3in} |
| 100 | |
| 101 | \setstocksize{38in}{45in} |
| 102 | \settrimmedsize{\stockheight}{\stockwidth}{*} |
| 103 | \settypeblocksize{38in}{45in}{*} |
| 104 | \setlrmargins{*}{*}{1} |
| 105 | \setulmarginsandblock{2.5cm}{*}{*} |
| 106 | \setmarginnotes{0em}{0cm}{0cm} |
| 107 | \setlength{\footskip}{0cm} |
| 108 | \setlength{\footnotesep}{0cm} |
| 109 | \setlength{\headheight}{0pt} |
| 110 | \setlength{\headsep}{0pt} |
| 111 | \setlength{\trimtop}{0pt} |
| 112 | \setlength{\trimedge}{0pt} |
| 113 | \setlength{\uppermargin}{0pt} |
| 114 | \checkandfixthelayout |
| 115 | |
| 116 | \definecolor{myframecolour}{HTML}{00004d} |
| 117 | |
| 118 | % see https://stackoverflow.com/a/47122900 |
| 119 | \usepackage{color} |
| 120 | \usepackage{fancyvrb} |
| 121 | \newcommand{\VerbBar}{|} |
| 122 | \newcommand{\VERB}{\Verb[commandchars=\\\{\}]} |
| 123 | \DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}} |
| 124 | % Add ',fontsize=\small' for more characters per line |
| 125 | \usepackage{framed} |
| 126 | \definecolor{shadecolor}{RGB}{248,248,248} |
| 127 | \newenvironment{Shaded}{\begin{snugshade}}{\end{snugshade}} |
| 128 | \newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{#1}}} |
| 129 | \newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{#1}} |
| 130 | \newcommand{\DecValTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}} |
| 131 | \newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}} |
| 132 | \newcommand{\FloatTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}} |
| 133 | \newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} |
| 134 | \newcommand{\CharTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} |
| 135 | \newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} |
| 136 | \newcommand{\StringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} |
| 137 | \newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} |
| 138 | \newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} |
| 139 | \newcommand{\ImportTok}[1]{#1} |
| 140 | \newcommand{\CommentTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textit{#1}}} |
| 141 | \newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} |
| 142 | \newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} |
| 143 | \newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} |
| 144 | \newcommand{\OtherTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{#1}} |
| 145 | \newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} |
| 146 | \newcommand{\VariableTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} |
| 147 | \newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{#1}}} |
| 148 | \newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.81,0.36,0.00}{\textbf{#1}}} |
| 149 | \newcommand{\BuiltInTok}[1]{#1} |
| 150 | \newcommand{\ExtensionTok}[1]{#1} |
| 151 | \newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textit{#1}}} |
| 152 | \newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.77,0.63,0.00}{#1}} |
| 153 | \newcommand{\RegionMarkerTok}[1]{#1} |
| 154 | \newcommand{\InformationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} |
| 155 | \newcommand{\WarningTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} |
| 156 | \newcommand{\AlertTok}[1]{\textcolor[rgb]{0.94,0.16,0.16}{#1}} |
| 157 | \newcommand{\ErrorTok}[1]{\textcolor[rgb]{0.64,0.00,0.00}{\textbf{#1}}} |
| 158 | \newcommand{\NormalTok}[1]{#1} |
| 159 | |
| 160 | %begin the document |
| 161 | \begin{document} |
| 162 | |
| 163 | \begin{mdframed}[backgroundcolor=myframecolour,linecolor=Red,topline=false,leftline=false,rightline=false,linewidth=2mm] |
| 164 | |
| 165 | % group which adds title author and other infor |
| 166 | % Used instead of \maketitle for better spacing options |
| 167 | \begingroup |
| 168 | \centering |
| 169 | \color{White} |
| 170 | \vspace{1in} |
| 171 | \Huge\textbf{Using \color{Red} \texttt{posterdown} \color{White} to generate |
| 172 | reproducible conference posters via RMarkdown \textgreater{} Knitr |
| 173 | \textgreater{} Markdown \textgreater{} Pandoc \textgreater{} Latex |
| 174 | \textgreater{} PDF workflow as well as long titles\ldots{}}\\[0.3in] |
| 175 | \Large Brent Thorne \par |
| 176 | \vspace{1.2in} |
| 177 | % end title section ------------------- |
| 178 | \endgroup |
| 179 | \end{mdframed} |
| 180 | |
| 181 | % Brgin body of poster |
| 182 | \color{black} |
| 183 | \begin{adjmulticols*}{3}{10mm}{10mm} |
| 184 | \normalsize{ |
| 185 | \section{Introduction}\label{introduction} |
| 186 | |
| 187 | Welcome to \texttt{posterdown} ! This is my attempt to provide a |
| 188 | semi-smooth workflow for those who wish to take their \texttt{RMarkdown} |
| 189 | skills to the conference world. Many creature comforts frim |
| 190 | \texttt{RMarkdown} are available in this package such as |
| 191 | \texttt{Markdown} section notation, figure captioning, and even |
| 192 | citations like this one \autocite{holden_identifying_2012} The rest of |
| 193 | this example poster will show how you can insert typical conference |
| 194 | poster features into your own document. |
| 195 | |
| 196 | \section{Study Site}\label{study-site} |
| 197 | |
| 198 | Here is a map made to show the study site using \texttt{ggplot2}, |
| 199 | \texttt{ggspatial}, and \texttt{sf}. Lorem ipsum dolor sit amet, |
| 200 | \autocite{middleton_geological_nodate} consectetur adipiscing elit, sed |
| 201 | do eiusmod tempor incididunt ut labore et dolore magna aliqua. Phasellus |
| 202 | vestibulum lorem sed risus ultricies tristique nulla. Mauris vitae |
| 203 | ultricies leo integer malesuada nunc vel risus commodo. Suspendisse |
| 204 | potenti nullam ac tortor vitae. Enim nunc faucibus a pellentesque sit |
| 205 | amet porttitor eget. \vspace{15mm} |
| 206 | |
| 207 | \begin{figure} |
| 208 | |
| 209 | {\centering \includegraphics[width=0.8\linewidth]{skeleton_files/figure-latex/unnamed-chunk-2-1} |
| 210 | |
| 211 | } |
| 212 | |
| 213 | \caption{This is a map of Canada, projected using the NAD 83 UTM Zone 7 Datum.}\label{fig:unnamed-chunk-2} |
| 214 | \end{figure} |
| 215 | |
| 216 | \section{Objectives}\label{objectives} |
| 217 | |
| 218 | \large |
| 219 | |
| 220 | \begin{enumerate} |
| 221 | \def\labelenumi{\arabic{enumi}.} |
| 222 | \tightlist |
| 223 | \item |
| 224 | Easy to use reproducible poster design. |
| 225 | \item |
| 226 | Integration with \texttt{RMarkdown}. |
| 227 | \item |
| 228 | Easy transition from \texttt{posterndown} to \texttt{thesisdown} or |
| 229 | \texttt{rticles} |
| 230 | \end{enumerate} |
| 231 | |
| 232 | \small |
| 233 | |
| 234 | \section{Methods}\label{methods} |
| 235 | |
| 236 | This package uses the same workflow approach as the \texttt{RMarkdown} |
| 237 | you know and love. Basically it goes from RMarkdown \textgreater{} Knitr |
| 238 | \textgreater{} Markdown \textgreater{} Pandoc \textgreater{} Latex |
| 239 | \textgreater{} PDF |
| 240 | |
| 241 | \section{Results}\label{results} |
| 242 | |
| 243 | \rowcolors{2}{gray!6}{white} |
| 244 | |
| 245 | \begin{table} |
| 246 | |
| 247 | \caption{\label{tab:unnamed-chunk-3}Hopefully this works without much of a headache!} |
| 248 | \centering |
| 249 | \begin{tabular}[t]{ccccc} |
| 250 | \hiderowcolors |
| 251 | \toprule |
| 252 | Sepal.Length & Sepal.Width & Petal.Length & Petal.Width & Species\\ |
| 253 | \midrule |
| 254 | \showrowcolors |
| 255 | 5.1 & 3.5 & 1.4 & 0.2 & setosa\\ |
| 256 | 4.9 & 3.0 & 1.4 & 0.2 & setosa\\ |
| 257 | 4.7 & 3.2 & 1.3 & 0.2 & setosa\\ |
| 258 | 4.6 & 3.1 & 1.5 & 0.2 & setosa\\ |
| 259 | \bottomrule |
| 260 | \end{tabular} |
| 261 | \end{table} |
| 262 | |
| 263 | \rowcolors{2}{white}{white} |
| 264 | |
| 265 | \begin{Shaded} |
| 266 | \begin{Highlighting}[] |
| 267 | \CommentTok{# Here is some code for people} |
| 268 | \CommentTok{# to look at and be in awe of!!!!} |
| 269 | \KeywordTok{library}\NormalTok{(ggplot2)} |
| 270 | \KeywordTok{library}\NormalTok{(ggthemes)} |
| 271 | |
| 272 | \KeywordTok{ggplot}\NormalTok{(}\DataTypeTok{data=}\NormalTok{iris,} |
| 273 | \KeywordTok{aes}\NormalTok{(}\DataTypeTok{x =}\NormalTok{ Sepal.Width,} |
| 274 | \DataTypeTok{y =}\NormalTok{ Sepal.Length,} |
| 275 | \DataTypeTok{colour =}\NormalTok{ Species)) }\OperatorTok{+} |
| 276 | \StringTok{ }\KeywordTok{geom_point}\NormalTok{() }\OperatorTok{+} |
| 277 | \StringTok{ }\KeywordTok{theme_stata}\NormalTok{() }\OperatorTok{+} |
| 278 | \StringTok{ }\OtherTok{NULL} |
| 279 | \end{Highlighting} |
| 280 | \end{Shaded} |
| 281 | |
| 282 | \begin{figure} |
| 283 | |
| 284 | {\centering \includegraphics[width=0.8\linewidth]{skeleton_files/figure-latex/unnamed-chunk-4-1} |
| 285 | |
| 286 | } |
| 287 | |
| 288 | \caption{Another figure showing how base R plots might look on this poster!}\label{fig:unnamed-chunk-4} |
| 289 | \end{figure} |
| 290 | |
| 291 | \begin{figure} |
| 292 | |
| 293 | {\centering \includegraphics[width=0.75\linewidth]{skeleton_files/figure-latex/unnamed-chunk-5-1} |
| 294 | |
| 295 | } |
| 296 | |
| 297 | \caption{A typical plot using ggplot.}\label{fig:unnamed-chunk-5} |
| 298 | \end{figure} |
| 299 | |
| 300 | \section{Next Steps}\label{next-steps} |
| 301 | |
| 302 | Pellentesque habitant morbi tristique senectus et netus. Magnis dis |
| 303 | parturient montes nascetur ridiculus mus mauris vitae ultricies. Nibh |
| 304 | nisl condimentum id venenatis. Lorem ipsum dolor sit amet consectetur |
| 305 | adipiscing elit duis. Eget aliquet nibh praesent tristique magna sit |
| 306 | amet purus. Orci phasellus egestas tellus rutrum. Mauris cursus mattis |
| 307 | molestie a. Amet cursus sit amet dictum sit. Tellus id interdum velit |
| 308 | laoreet. Tortor at risus viverra adipiscing. Ullamcorper malesuada proin |
| 309 | libero nunc. Elit ullamcorper dignissim cras tincidunt lobortis feugiat |
| 310 | vivamus. Eget dolor morbi non arcu risus quis. Pulvinar pellentesque |
| 311 | habitant morbi tristique senectus. |
| 312 | |
| 313 | \small |
| 314 | \printbibliography |
| 315 | } |
| 316 | \end{adjmulticols*} |
| 317 | %end the poster |
| 318 | \end{document} |