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