| brentthorne | 342f0e4 | 2019-01-08 14:56:27 -0500 | [diff] [blame] | 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | 
 | 2 | %% %%	Posterdown PDF class for LaTeX files	 08-JAN-2019 | 
 | 3 | %% %%	For any information please send an e-mail to: | 
 | 4 | %% %%		brentthonre18@gmail.com (Brent Thorne) | 
 | 5 | %% %% | 
 | 6 | %% %%	Initial class provided by: | 
 | 7 | %% %%		Brent Thorne | 
 | 8 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | 
 | 9 |  | 
 | 10 | \documentclass[article,$font_size$,extrafontsizes]{memoir} | 
 | 11 |  | 
 | 12 | %utf-8 seems to be important | 
 | 13 | \RequirePackage[utf8]{inputenc} | 
 | 14 | \RequirePackage[T1]{fontenc} | 
| brentthorne | c7c1c5a | 2019-01-10 01:54:11 -0500 | [diff] [blame] | 15 | \RequirePackage{lmodern} | 
| brentthorne | 342f0e4 | 2019-01-08 14:56:27 -0500 | [diff] [blame] | 16 | \RequirePackage{multicol} | 
 | 17 | \RequirePackage{graphicx} | 
 | 18 | \RequirePackage{blindtext} | 
 | 19 | \RequirePackage[svgnames,table]{xcolor} | 
 | 20 | \RequirePackage{tikz} | 
 | 21 | \RequirePackage[framemethod=tikz]{mdframed} | 
 | 22 | \RequirePackage{color} | 
 | 23 | \RequirePackage{geometry} | 
 | 24 | \RequirePackage{adjmulticol} | 
 | 25 |  | 
| brentthorne | c7c1c5a | 2019-01-10 01:54:11 -0500 | [diff] [blame] | 26 |  | 
| brentthorne | 342f0e4 | 2019-01-08 14:56:27 -0500 | [diff] [blame] | 27 | %For kable extra package :) | 
 | 28 | \RequirePackage{booktabs} | 
 | 29 | \RequirePackage{longtable} | 
 | 30 | \RequirePackage{array} | 
 | 31 | \RequirePackage{multirow} | 
 | 32 | \RequirePackage{wrapfig} | 
 | 33 | \RequirePackage{float} | 
 | 34 | \RequirePackage{colortbl} | 
 | 35 | \RequirePackage{pdflscape} | 
 | 36 | \RequirePackage{pagecolor} | 
 | 37 | \RequirePackage{tabu} | 
 | 38 | \RequirePackage{threeparttable} | 
 | 39 | \RequirePackage{threeparttablex} | 
 | 40 | \RequirePackage[normalem]{ulem} | 
 | 41 | \RequirePackage{makecell} | 
| brentthorne | c7c1c5a | 2019-01-10 01:54:11 -0500 | [diff] [blame] | 42 | \RequirePackage{wrapfig} | 
| brentthorne | 342f0e4 | 2019-01-08 14:56:27 -0500 | [diff] [blame] | 43 |  | 
 | 44 | %%%%%%%%% COLOURS %%%%%%%% | 
 | 45 |  | 
 | 46 | %Fill/ Line Colours | 
 | 47 | \definecolor{titlebgcol}{HTML}{$title_bgcol$} | 
 | 48 | \definecolor{columnlinecol}{HTML}{$columnline_col$} | 
 | 49 | \definecolor{posterbgcol}{HTML}{$poster_bgcol$} | 
| brentthorne | 342f0e4 | 2019-01-08 14:56:27 -0500 | [diff] [blame] | 50 | \definecolor{headerbgcol}{HTML}{$header_bgcol$} | 
 | 51 |  | 
 | 52 | % Text Colours | 
 | 53 | \definecolor{titletextcol}{HTML}{$title_textcol$} | 
 | 54 | \definecolor{authortextcol}{HTML}{$author_textcol$} | 
 | 55 | \definecolor{affiliationtextcol}{HTML}{$affiliation_textcol$} | 
 | 56 | \definecolor{headertextcol}{HTML}{$header_textcol$} | 
 | 57 | \definecolor{bodytextcol}{HTML}{$body_textcol$} | 
 | 58 | \definecolor{footnotetextcol}{HTML}{$footnote_textcol$} | 
 | 59 | \definecolor{citecol}{HTML}{$cite_col$} | 
 | 60 | \definecolor{urlcol}{HTML}{$url_col$} | 
 | 61 | \definecolor{linkcol}{HTML}{$link_col$} | 
 | 62 |  | 
 | 63 | \RequirePackage{hyperref} | 
 | 64 | \hypersetup{ | 
 | 65 |     colorlinks=true, | 
 | 66 |     linkcolor=linkcol, | 
 | 67 |     citecolor=citecol, | 
 | 68 |     filecolor=magenta, | 
 | 69 |     urlcolor=urlcol, | 
 | 70 | } | 
 | 71 |  | 
 | 72 | %For figure and table placement | 
 | 73 | \RequirePackage{float} | 
 | 74 | \floatplacement{figure}{H} | 
 | 75 | \floatplacement{table}{H} | 
 | 76 |  | 
 | 77 | %spacing between figure/ table and caption | 
 | 78 | \setlength{\abovecaptionskip}{0.4in} | 
 | 79 | \setlength{\belowcaptionskip}{0.2in} | 
 | 80 | \captionnamefont{\footnotesize\sffamily\bfseries} | 
 | 81 | \captiontitlefont{\footnotesize\sffamily} | 
 | 82 |  | 
 | 83 | %define column options | 
 | 84 | \setlength{\columnseprule}{1pt} | 
 | 85 | \def\columnseprulecolor{\color{columnlinecol}} | 
 | 86 |  | 
 | 87 | \setsubsubsecheadstyle{\small\color{headertextcol}\textbf}% Set \section style | 
 | 88 | \setsecheadstyle{\small\color{headertextcol}} | 
 | 89 | \setsecnumformat{} | 
 | 90 | \def\sectionmark#1{\markboth{#1}{#1}} | 
 | 91 |  | 
 | 92 | %----------------------------------------------------- | 
 | 93 |  | 
 | 94 | \thispagestyle{empty} | 
 | 95 | \definecolor{light-gray}{gray}{0.9} | 
 | 96 |  | 
 | 97 | %biblatex options | 
 | 98 | \RequirePackage[sorting=none,backend=biber]{biblatex} | 
 | 99 | \renewcommand*{\bibfont}{\tiny} | 
 | 100 | \bibliography{$bibliography$} | 
 | 101 | \defbibheading{bibliography}[\bibname]{% | 
 | 102 | \section*{#1}% | 
 | 103 | \markboth{#1}{#1}} | 
 | 104 | \AtBeginDocument{% | 
 | 105 |   \renewcommand{\bibname}{References} | 
 | 106 | } | 
 | 107 |  | 
 | 108 | %bring in the users information | 
 | 109 | \author{$author$} | 
 | 110 | \title{$title$} | 
 | 111 | \counterwithout{section}{chapter} | 
 | 112 | \makechapterstyle{mydefault}{ | 
 | 113 | \addtocounter{secnumdepth}{2} | 
 | 114 | \setsecheadstyle{\centering\Large\color{headertextcol}\textbf} | 
 | 115 | \setsubsecheadstyle{\itshape} | 
 | 116 | \setsubsubsecheadstyle{\itshape} | 
 | 117 | } | 
 | 118 |  | 
 | 119 | \chapterstyle{mydefault} | 
 | 120 |  | 
 | 121 | %define column spacing | 
 | 122 | \setlength\columnsep{1in} | 
 | 123 |  | 
 | 124 | \setlength\parindent{1em} | 
 | 125 | \setlength\parskip{1em} | 
 | 126 | \setlength\hangparas{0} | 
 | 127 |  | 
 | 128 | %spacing after section head title | 
 | 129 | \setaftersecskip{0.3in} | 
 | 130 | \setbeforesecskip{1in} | 
 | 131 | \setlength\textfloatsep{0.3in} | 
 | 132 | \setlength\floatsep{0.3in} | 
 | 133 | \setlength\intextsep{0.3in} | 
 | 134 |  | 
 | 135 | \setstocksize{$poster_height$}{$poster_width$} | 
 | 136 | \settrimmedsize{\stockheight}{\stockwidth}{*} | 
 | 137 | \settypeblocksize{$poster_height$}{$poster_width$}{*} | 
 | 138 | \setlrmargins{*}{*}{1} | 
 | 139 | \setulmarginsandblock{2.5cm}{*}{*} | 
 | 140 | \setmarginnotes{0em}{0cm}{0cm} | 
 | 141 | \setlength{\footskip}{0cm} | 
 | 142 | \setlength{\footnotesep}{0cm} | 
 | 143 | \setlength{\headheight}{0pt} | 
 | 144 | \setlength{\headsep}{0pt} | 
 | 145 | \setlength{\trimtop}{0pt} | 
 | 146 | \setlength{\trimedge}{0pt} | 
 | 147 | \setlength{\uppermargin}{0pt} | 
 | 148 | \checkandfixthelayout | 
 | 149 |  | 
 | 150 | \mdfdefinestyle{brentsmdfstyle}{% | 
 | 151 |   backgroundcolor=titlebgcol, | 
 | 152 |   linecolor=columnlinecol, | 
 | 153 |   topline=false, | 
 | 154 |   leftline=false, | 
 | 155 |   rightline=false, | 
 | 156 |   linewidth=2mm} | 
 | 157 |  | 
 | 158 | %Footnote to white | 
 | 159 | \RequirePackage{footmisc} | 
 | 160 | \def\footnotelayout{\centering\color{footnotetextcol}} | 
 | 161 |  | 
 | 162 | % see https://stackoverflow.com/a/47122900 | 
 | 163 | $if(highlighting-macros)$ | 
 | 164 | $highlighting-macros$ | 
 | 165 | $endif$ | 
 | 166 |  | 
 | 167 | % choose font family | 
 | 168 | \RequirePackage{$font_family$} | 
| brentthorne | c7c1c5a | 2019-01-10 01:54:11 -0500 | [diff] [blame] | 169 |  | 
| brentthorne | 342f0e4 | 2019-01-08 14:56:27 -0500 | [diff] [blame] | 170 | \newpagecolor{posterbgcol} | 
 | 171 |  | 
 | 172 | %begin the document | 
 | 173 | \begin{document} | 
 | 174 |  | 
 | 175 | \begin{mdframed}[style=brentsmdfstyle] | 
 | 176 |  | 
 | 177 | %sets footnote to be white hopefully | 
 | 178 | \renewcommand\footnoterule{} | 
 | 179 | \renewcommand{\thempfootnote}{\footnotesize\color{footnotetextcol}{\arabic{mpfootnote}}} | 
 | 180 |  | 
 | 181 | % group which adds title author and other infor | 
 | 182 | % Used instead of \maketitle for better spacing options | 
 | 183 | \begingroup | 
 | 184 |   \centering | 
 | 185 |   \color{titletextcol} | 
 | 186 | \vspace{0.5in} | 
| brentthorne | c7c1c5a | 2019-01-10 01:54:11 -0500 | [diff] [blame] | 187 |   \Huge{$title$}  \\[0.3in] | 
| brentthorne | 342f0e4 | 2019-01-08 14:56:27 -0500 | [diff] [blame] | 188 |   \color{authortextcol} \Large{$author$} \\[0.2in] | 
| brentthorne | c7c1c5a | 2019-01-10 01:54:11 -0500 | [diff] [blame] | 189 |   \color{affiliationtextcol} \large{$affiliation$} | 
| brentthorne | 342f0e4 | 2019-01-08 14:56:27 -0500 | [diff] [blame] | 190 |   \vspace{0.2in} | 
 | 191 |  | 
 | 192 | % end title section ------------------- | 
 | 193 |   \endgroup | 
 | 194 | \end{mdframed} | 
 | 195 |  | 
 | 196 | % Brgin body of poster | 
 | 197 | \begin{adjmulticols*}{$column_numbers$}{10mm}{10mm} | 
 | 198 | \normalsize{ | 
 | 199 | \color{bodytextcol} | 
 | 200 | $body$ | 
| brentthorne | 342f0e4 | 2019-01-08 14:56:27 -0500 | [diff] [blame] | 201 | } | 
 | 202 | \end{adjmulticols*} | 
 | 203 | %end the poster | 
 | 204 | \end{document} |