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