blob: 080c22f6d5ee4317f74011747e3e4aae85b5f392 [file] [log] [blame]
brentthorne5d1588e2019-01-08 09:48:41 -05001%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
brentthorneb2fdd572019-01-04 23:32:17 -05009
10\documentclass[article,$font_size$,extrafontsizes]{memoir}
11
12%utf-8 seems to be important
brentthorne5d1588e2019-01-08 09:48:41 -050013\RequirePackage[utf8]{inputenc}
14\RequirePackage[T1]{fontenc}
Brent Thornee153f5d2019-01-09 20:33:17 -050015\RequirePackage{lmodern}
brentthorne5d1588e2019-01-08 09:48:41 -050016\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}
brentthorneb2fdd572019-01-04 23:32:17 -050025
brentthornec7c1c5a2019-01-10 01:54:11 -050026
brentthorneb2fdd572019-01-04 23:32:17 -050027%For kable extra package :)
brentthorne5d1588e2019-01-08 09:48:41 -050028\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}
brentthornec7c1c5a2019-01-10 01:54:11 -050042\RequirePackage{wrapfig}
brentthorneb2fdd572019-01-04 23:32:17 -050043
brentthorne342f0e42019-01-08 14:56:27 -050044%%%%%%%%% COLOURS %%%%%%%%
45
46%Fill/ Line Colours
47\definecolor{titlebgcol}{HTML}{$title_bgcol$}
48\definecolor{columnlinecol}{HTML}{$columnline_col$}
49\definecolor{posterbgcol}{HTML}{$poster_bgcol$}
brentthorne342f0e42019-01-08 14:56:27 -050050\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
brentthorne5d1588e2019-01-08 09:48:41 -050063\RequirePackage{hyperref}
brentthorneb2fdd572019-01-04 23:32:17 -050064\hypersetup{
65 colorlinks=true,
brentthorne342f0e42019-01-08 14:56:27 -050066 linkcolor=linkcol,
67 citecolor=citecol,
brentthorneb2fdd572019-01-04 23:32:17 -050068 filecolor=magenta,
brentthorne342f0e42019-01-08 14:56:27 -050069 urlcolor=urlcol,
brentthorneb2fdd572019-01-04 23:32:17 -050070}
71
brentthorneb2fdd572019-01-04 23:32:17 -050072%For figure and table placement
brentthorne5d1588e2019-01-08 09:48:41 -050073\RequirePackage{float}
brentthorneb2fdd572019-01-04 23:32:17 -050074\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}
brentthorne342f0e42019-01-08 14:56:27 -050085\def\columnseprulecolor{\color{columnlinecol}}
86
87\setsubsubsecheadstyle{\small\color{headertextcol}\textbf}% Set \section style
88\setsecheadstyle{\small\color{headertextcol}}
brentthorneb2fdd572019-01-04 23:32:17 -050089\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
brentthorne5d1588e2019-01-08 09:48:41 -050098\RequirePackage[sorting=none,backend=biber]{biblatex}
brentthorneb2fdd572019-01-04 23:32:17 -050099\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}
brentthorne342f0e42019-01-08 14:56:27 -0500114\setsecheadstyle{\centering\Large\color{headertextcol}\textbf}
brentthorneb2fdd572019-01-04 23:32:17 -0500115\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
brentthorneb2fdd572019-01-04 23:32:17 -0500135\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
brentthorneb2fdd572019-01-04 23:32:17 -0500150\mdfdefinestyle{brentsmdfstyle}{%
brentthorne342f0e42019-01-08 14:56:27 -0500151 backgroundcolor=titlebgcol,
152 linecolor=columnlinecol,
brentthorneb2fdd572019-01-04 23:32:17 -0500153 topline=false,
154 leftline=false,
155 rightline=false,
brentthorne342f0e42019-01-08 14:56:27 -0500156 linewidth=2mm}
brentthorneb2fdd572019-01-04 23:32:17 -0500157
158%Footnote to white
brentthorne5d1588e2019-01-08 09:48:41 -0500159\RequirePackage{footmisc}
brentthorne342f0e42019-01-08 14:56:27 -0500160\def\footnotelayout{\centering\color{footnotetextcol}}
brentthorneb2fdd572019-01-04 23:32:17 -0500161
162% see https://stackoverflow.com/a/47122900
163$if(highlighting-macros)$
164$highlighting-macros$
165$endif$
166
brentthorne83e6c112019-01-07 21:02:49 -0500167% choose font family
brentthorne5d1588e2019-01-08 09:48:41 -0500168\RequirePackage{$font_family$}
Brent Thornee153f5d2019-01-09 20:33:17 -0500169
brentthorne342f0e42019-01-08 14:56:27 -0500170\newpagecolor{posterbgcol}
171
brentthorneb2fdd572019-01-04 23:32:17 -0500172%begin the document
173\begin{document}
174
175\begin{mdframed}[style=brentsmdfstyle]
brentthorne342f0e42019-01-08 14:56:27 -0500176
brentthorneb2fdd572019-01-04 23:32:17 -0500177%sets footnote to be white hopefully
178\renewcommand\footnoterule{}
brentthorne342f0e42019-01-08 14:56:27 -0500179\renewcommand{\thempfootnote}{\footnotesize\color{footnotetextcol}{\arabic{mpfootnote}}}
brentthorneb2fdd572019-01-04 23:32:17 -0500180
181% group which adds title author and other infor
182% Used instead of \maketitle for better spacing options
183\begingroup
184 \centering
brentthorne342f0e42019-01-08 14:56:27 -0500185 \color{titletextcol}
brentthorneb2fdd572019-01-04 23:32:17 -0500186\vspace{0.5in}
brentthornec7c1c5a2019-01-10 01:54:11 -0500187 \Huge{$title$} \\[0.3in]
brentthorne342f0e42019-01-08 14:56:27 -0500188 \color{authortextcol} \Large{$author$} \\[0.2in]
brentthornec7c1c5a2019-01-10 01:54:11 -0500189 \color{affiliationtextcol} \large{$affiliation$}
brentthorneb2fdd572019-01-04 23:32:17 -0500190 \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{
brentthorne342f0e42019-01-08 14:56:27 -0500199\color{bodytextcol}
brentthorneb2fdd572019-01-04 23:32:17 -0500200$body$
brentthorneb2fdd572019-01-04 23:32:17 -0500201}
202\end{adjmulticols*}
203%end the poster
204\end{document}