Brent Thorne | e153f5d | 2019-01-09 20:33:17 -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} |
| 15 | \RequirePackage{lmodern} |
| 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 | |
| 26 | %For kable extra package :) |
| 27 | \RequirePackage{booktabs} |
| 28 | \RequirePackage{longtable} |
| 29 | \RequirePackage{array} |
| 30 | \RequirePackage{multirow} |
| 31 | \RequirePackage{wrapfig} |
| 32 | \RequirePackage{float} |
| 33 | \RequirePackage{colortbl} |
| 34 | \RequirePackage{pdflscape} |
| 35 | \RequirePackage{pagecolor} |
| 36 | \RequirePackage{tabu} |
| 37 | \RequirePackage{threeparttable} |
| 38 | \RequirePackage{threeparttablex} |
| 39 | \RequirePackage[normalem]{ulem} |
| 40 | \RequirePackage{makecell} |
| 41 | |
| 42 | %%%%%%%%% COLOURS %%%%%%%% |
| 43 | |
| 44 | %Fill/ Line Colours |
| 45 | \definecolor{titlebgcol}{HTML}{$title_bgcol$} |
| 46 | \definecolor{columnlinecol}{HTML}{$columnline_col$} |
| 47 | \definecolor{posterbgcol}{HTML}{$poster_bgcol$} |
| 48 | \definecolor{headerbgcol}{HTML}{$header_bgcol$} |
| 49 | |
| 50 | % Text Colours |
| 51 | \definecolor{titletextcol}{HTML}{$title_textcol$} |
| 52 | \definecolor{authortextcol}{HTML}{$author_textcol$} |
| 53 | \definecolor{affiliationtextcol}{HTML}{$affiliation_textcol$} |
| 54 | \definecolor{headertextcol}{HTML}{$header_textcol$} |
| 55 | \definecolor{bodytextcol}{HTML}{$body_textcol$} |
| 56 | \definecolor{footnotetextcol}{HTML}{$footnote_textcol$} |
| 57 | \definecolor{citecol}{HTML}{$cite_col$} |
| 58 | \definecolor{urlcol}{HTML}{$url_col$} |
| 59 | \definecolor{linkcol}{HTML}{$link_col$} |
| 60 | |
| 61 | \newcommand*{\myfont}{\fontfamily{qag}\selectfont} |
| 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$} |
| 169 | |
| 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} |
| 187 | {\myfont \Huge{$title$}} \\[0.3in] |
| 188 | \color{authortextcol} \Large{$author$} \\[0.2in] |
| 189 | \color{affiliationtextcol} \large{$affiliation$} \par |
| 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$ |
| 201 | } |
| 202 | \end{adjmulticols*} |
| 203 | %end the poster |
| 204 | \end{document} |