| brentthorne | b2fdd57 | 2019-01-04 23:32:17 -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{tabu} | 
 | 27 | \usepackage{threeparttable} | 
 | 28 | \usepackage{threeparttablex} | 
 | 29 | \usepackage[normalem]{ulem} | 
 | 30 | \usepackage{makecell} | 
 | 31 |  | 
 | 32 | \usepackage{hyperref} | 
 | 33 | \hypersetup{ | 
 | 34 |     colorlinks=true, | 
 | 35 |     linkcolor=blue, | 
 | 36 |     citecolor=red, | 
 | 37 |     filecolor=magenta, | 
 | 38 |     urlcolor=cyan, | 
 | 39 | } | 
 | 40 |  | 
 | 41 | % Maybe Define a department param in the YAML?????? | 
 | 42 | \def\department#1{\gdef \@department{#1}} | 
 | 43 |  | 
 | 44 | $if(department)$ | 
 | 45 | \department{$department$} | 
 | 46 | $endif$ | 
 | 47 |  | 
 | 48 |  | 
 | 49 |  | 
 | 50 |  | 
 | 51 | %For figure and table placement | 
 | 52 | \usepackage{float} | 
 | 53 | \floatplacement{figure}{H} | 
 | 54 | \floatplacement{table}{H} | 
 | 55 |  | 
 | 56 | %spacing between figure/ table and caption | 
 | 57 | \setlength{\abovecaptionskip}{0.4in} | 
 | 58 | \setlength{\belowcaptionskip}{0.2in} | 
 | 59 | \captionnamefont{\footnotesize\sffamily\bfseries} | 
 | 60 | \captiontitlefont{\footnotesize\sffamily} | 
 | 61 |  | 
 | 62 | %define column options | 
 | 63 | \setlength{\columnseprule}{1pt} | 
 | 64 | \def\columnseprulecolor{\color{red}} | 
 | 65 | \setsubsubsecheadstyle{\small\color{red}\textbf}% Set \section style | 
 | 66 | \setsecheadstyle{\small\color{red}} | 
 | 67 | \setsecnumformat{} | 
 | 68 | \def\sectionmark#1{\markboth{#1}{#1}} | 
 | 69 |  | 
 | 70 | %----------------------------------------------------- | 
 | 71 |  | 
 | 72 | \thispagestyle{empty} | 
 | 73 | \definecolor{light-gray}{gray}{0.9} | 
 | 74 |  | 
 | 75 | %biblatex options | 
 | 76 | \usepackage[sorting=none,backend=biber]{biblatex} | 
 | 77 | \renewcommand*{\bibfont}{\tiny} | 
 | 78 | \bibliography{$bibliography$} | 
 | 79 | \defbibheading{bibliography}[\bibname]{% | 
 | 80 | \section*{#1}% | 
 | 81 | \markboth{#1}{#1}} | 
 | 82 | \AtBeginDocument{% | 
 | 83 |   \renewcommand{\bibname}{References} | 
 | 84 | } | 
 | 85 |  | 
 | 86 | %bring in the users information | 
 | 87 | \author{$author$} | 
 | 88 | \title{$title$} | 
 | 89 | \counterwithout{section}{chapter} | 
 | 90 | \makechapterstyle{mydefault}{ | 
 | 91 | \addtocounter{secnumdepth}{2} | 
 | 92 | \setsecheadstyle{\Large\color{$header_textcol$}\textbf} | 
 | 93 | \setsubsecheadstyle{\itshape} | 
 | 94 | \setsubsubsecheadstyle{\itshape} | 
 | 95 | } | 
 | 96 |  | 
 | 97 | \chapterstyle{mydefault} | 
 | 98 |  | 
 | 99 | %define column spacing | 
 | 100 | \setlength\columnsep{1in} | 
 | 101 |  | 
 | 102 | \setlength\parindent{1em} | 
 | 103 | \setlength\parskip{1em} | 
 | 104 | \setlength\hangparas{0} | 
 | 105 |  | 
 | 106 | %spacing after section head title | 
 | 107 | \setaftersecskip{0.3in} | 
 | 108 | \setbeforesecskip{1in} | 
 | 109 | \setlength\textfloatsep{0.3in} | 
 | 110 | \setlength\floatsep{0.3in} | 
 | 111 | \setlength\intextsep{0.3in} | 
 | 112 |  | 
 | 113 |  | 
 | 114 |  | 
 | 115 | \setstocksize{$poster_height$}{$poster_width$} | 
 | 116 | \settrimmedsize{\stockheight}{\stockwidth}{*} | 
 | 117 | \settypeblocksize{$poster_height$}{$poster_width$}{*} | 
 | 118 | \setlrmargins{*}{*}{1} | 
 | 119 | \setulmarginsandblock{2.5cm}{*}{*} | 
 | 120 | \setmarginnotes{0em}{0cm}{0cm} | 
 | 121 | \setlength{\footskip}{0cm} | 
 | 122 | \setlength{\footnotesep}{0cm} | 
 | 123 | \setlength{\headheight}{0pt} | 
 | 124 | \setlength{\headsep}{0pt} | 
 | 125 | \setlength{\trimtop}{0pt} | 
 | 126 | \setlength{\trimedge}{0pt} | 
 | 127 | \setlength{\uppermargin}{0pt} | 
 | 128 | \checkandfixthelayout | 
 | 129 |  | 
 | 130 | \definecolor{myframecolour}{HTML}{$title_bgcol$} | 
 | 131 |  | 
 | 132 | \mdfdefinestyle{brentsmdfstyle}{% | 
 | 133 |   backgroundcolor=myframecolour, | 
 | 134 |   linecolor=Red, | 
 | 135 |   topline=false, | 
 | 136 |   leftline=false, | 
 | 137 |   rightline=false, | 
 | 138 |   linewidth=2mm, | 
 | 139 |   settings={\definecolor{linkcolor}{RGB}{255,255,255}}} | 
 | 140 |  | 
 | 141 | %Footnote to white | 
 | 142 | \usepackage{footmisc} | 
 | 143 | \def\footnotelayout{\centering\color{white}} | 
 | 144 |  | 
 | 145 | % see https://stackoverflow.com/a/47122900 | 
 | 146 | $if(highlighting-macros)$ | 
 | 147 | $highlighting-macros$ | 
 | 148 | $endif$ | 
 | 149 |  | 
 | 150 | \usepackage{palatino} | 
 | 151 | \renewcommand*\familydefault{\sfdefault} | 
 | 152 |  | 
 | 153 | %begin the document | 
 | 154 | \begin{document} | 
 | 155 |  | 
 | 156 | \begin{mdframed}[style=brentsmdfstyle] | 
 | 157 | %sets footnote to be white hopefully | 
 | 158 | \renewcommand\footnoterule{} | 
 | 159 | \renewcommand{\thempfootnote}{\footnotesize\color{red}{\arabic{mpfootnote}}} | 
 | 160 |  | 
 | 161 | % group which adds title author and other infor | 
 | 162 | % Used instead of \maketitle for better spacing options | 
 | 163 | \begingroup | 
 | 164 |   \centering | 
 | 165 |   \color{White} | 
 | 166 | \vspace{0.5in} | 
 | 167 |   \Huge{$title$} \\[0.3in] | 
 | 168 |   \color{cyan} \Large{$author$} \\[0.2in] | 
 | 169 |   \color{white} \large{$department$} \par | 
 | 170 |   \vspace{0.2in} | 
 | 171 |  | 
 | 172 | % end title section ------------------- | 
 | 173 |   \endgroup | 
 | 174 | \end{mdframed} | 
 | 175 |  | 
 | 176 | % Brgin body of poster | 
 | 177 | \begin{adjmulticols*}{$column_numbers$}{10mm}{10mm} | 
 | 178 | \normalsize{ | 
 | 179 | \color{black} | 
 | 180 | $body$ | 
 | 181 | \printbibliography | 
 | 182 | } | 
 | 183 | \end{adjmulticols*} | 
 | 184 | %end the poster | 
 | 185 | \end{document} |