blob: 42da3c543e259db59ec2ae935bf048fafffe26d5 [file] [log] [blame]
brentthorne342f0e42019-01-08 14:56:27 -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%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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{multicol}
16\RequirePackage{graphicx}
17\RequirePackage{blindtext}
18\RequirePackage[svgnames,table]{xcolor}
19\RequirePackage{tikz}
20\RequirePackage[framemethod=tikz]{mdframed}
21\RequirePackage{color}
22\RequirePackage{geometry}
23\RequirePackage{adjmulticol}
24
25%For kable extra package :)
26\RequirePackage{booktabs}
27\RequirePackage{longtable}
28\RequirePackage{array}
29\RequirePackage{multirow}
30\RequirePackage{wrapfig}
31\RequirePackage{float}
32\RequirePackage{colortbl}
33\RequirePackage{pdflscape}
34\RequirePackage{pagecolor}
35\RequirePackage{tabu}
36\RequirePackage{threeparttable}
37\RequirePackage{threeparttablex}
38\RequirePackage[normalem]{ulem}
39\RequirePackage{makecell}
40
41%%%%%%%%% COLOURS %%%%%%%%
42
43%Fill/ Line Colours
44\definecolor{titlebgcol}{HTML}{$title_bgcol$}
45\definecolor{columnlinecol}{HTML}{$columnline_col$}
46\definecolor{posterbgcol}{HTML}{$poster_bgcol$}
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\RequirePackage{hyperref}
62\hypersetup{
63 colorlinks=true,
64 linkcolor=linkcol,
65 citecolor=citecol,
66 filecolor=magenta,
67 urlcolor=urlcol,
68}
69
70%For figure and table placement
71\RequirePackage{float}
72\floatplacement{figure}{H}
73\floatplacement{table}{H}
74
75%spacing between figure/ table and caption
76\setlength{\abovecaptionskip}{0.4in}
77\setlength{\belowcaptionskip}{0.2in}
78\captionnamefont{\footnotesize\sffamily\bfseries}
79\captiontitlefont{\footnotesize\sffamily}
80
81%define column options
82\setlength{\columnseprule}{1pt}
83\def\columnseprulecolor{\color{columnlinecol}}
84
85\setsubsubsecheadstyle{\small\color{headertextcol}\textbf}% Set \section style
86\setsecheadstyle{\small\color{headertextcol}}
87\setsecnumformat{}
88\def\sectionmark#1{\markboth{#1}{#1}}
89
90%-----------------------------------------------------
91
92\thispagestyle{empty}
93\definecolor{light-gray}{gray}{0.9}
94
95%biblatex options
96\RequirePackage[sorting=none,backend=biber]{biblatex}
97\renewcommand*{\bibfont}{\tiny}
98\bibliography{$bibliography$}
99\defbibheading{bibliography}[\bibname]{%
100\section*{#1}%
101\markboth{#1}{#1}}
102\AtBeginDocument{%
103 \renewcommand{\bibname}{References}
104}
105
106%bring in the users information
107\author{$author$}
108\title{$title$}
109\counterwithout{section}{chapter}
110\makechapterstyle{mydefault}{
111\addtocounter{secnumdepth}{2}
112\setsecheadstyle{\centering\Large\color{headertextcol}\textbf}
113\setsubsecheadstyle{\itshape}
114\setsubsubsecheadstyle{\itshape}
115}
116
117\chapterstyle{mydefault}
118
119%define column spacing
120\setlength\columnsep{1in}
121
122\setlength\parindent{1em}
123\setlength\parskip{1em}
124\setlength\hangparas{0}
125
126%spacing after section head title
127\setaftersecskip{0.3in}
128\setbeforesecskip{1in}
129\setlength\textfloatsep{0.3in}
130\setlength\floatsep{0.3in}
131\setlength\intextsep{0.3in}
132
133\setstocksize{$poster_height$}{$poster_width$}
134\settrimmedsize{\stockheight}{\stockwidth}{*}
135\settypeblocksize{$poster_height$}{$poster_width$}{*}
136\setlrmargins{*}{*}{1}
137\setulmarginsandblock{2.5cm}{*}{*}
138\setmarginnotes{0em}{0cm}{0cm}
139\setlength{\footskip}{0cm}
140\setlength{\footnotesep}{0cm}
141\setlength{\headheight}{0pt}
142\setlength{\headsep}{0pt}
143\setlength{\trimtop}{0pt}
144\setlength{\trimedge}{0pt}
145\setlength{\uppermargin}{0pt}
146\checkandfixthelayout
147
148\mdfdefinestyle{brentsmdfstyle}{%
149 backgroundcolor=titlebgcol,
150 linecolor=columnlinecol,
151 topline=false,
152 leftline=false,
153 rightline=false,
154 linewidth=2mm}
155
156%Footnote to white
157\RequirePackage{footmisc}
158\def\footnotelayout{\centering\color{footnotetextcol}}
159
160% see https://stackoverflow.com/a/47122900
161$if(highlighting-macros)$
162$highlighting-macros$
163$endif$
164
165% choose font family
166\RequirePackage{$font_family$}
167\renewcommand*\familydefault{\sfdefault}
168\newpagecolor{posterbgcol}
169
170%begin the document
171\begin{document}
172
173\begin{mdframed}[style=brentsmdfstyle]
174
175%sets footnote to be white hopefully
176\renewcommand\footnoterule{}
177\renewcommand{\thempfootnote}{\footnotesize\color{footnotetextcol}{\arabic{mpfootnote}}}
178
179% group which adds title author and other infor
180% Used instead of \maketitle for better spacing options
181\begingroup
182 \centering
183 \color{titletextcol}
184\vspace{0.5in}
185 \Huge{$title$} \\[0.3in]
186 \color{authortextcol} \Large{$author$} \\[0.2in]
187 \color{affiliationtextcol} \large{$affiliation$} \par
188 \vspace{0.2in}
189
190% end title section -------------------
191 \endgroup
192\end{mdframed}
193
194% Brgin body of poster
195\begin{adjmulticols*}{$column_numbers$}{10mm}{10mm}
196\normalsize{
197\color{bodytextcol}
198$body$
199\printbibliography
200}
201\end{adjmulticols*}
202%end the poster
203\end{document}