-
Notifications
You must be signed in to change notification settings - Fork 26
/
better_poster.sty
154 lines (140 loc) · 3.92 KB
/
better_poster.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
% load this first
\usepackage[dvipsnames,table,xcdraw]{xcolor}
% other packages
\usepackage[export]{adjustbox}
\usepackage{anyfontsize}
\usepackage[T1]{fontenc}
\usepackage{framed}
\usepackage{graphicx}
\usepackage{hyphenat}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{lmodern}
\usepackage{multicol}
\usepackage{vwcol}
\usepackage{paralist}
\usepackage{sfmath}
\usepackage{tikz}
\usepackage{pgfpages}
% set page size
\newcommand{\postersize}[1]{
\pgfpagesuselayout{resize to}[#1]
}
% set margins
\newcommand\postermargin{1cm}
\usepackage[margin=\postermargin, top=0cm, bottom=0cm]{geometry}
% sans serif font
\renewcommand{\familydefault}{\sfdefault}
% sets page numbering off
\pagenumbering{gobble}
% images path
\graphicspath{{./images/}}
% poster color
\colorlet{exp}{PineGreen}
\colorlet{methods}{Maroon}%or BrickRed
\colorlet{theory}{MidnightBlue}
% makes title
\makeatletter
\def\@maketitle{
\vspace{0.5cm}
{\Huge \bf
\begin{flushleft}
\@title
\end{flushleft}
}\vspace{-0.5em}
{\large \@author}
}
\makeatother
% makes header
\newcommand{\makefinding}[1]{
\vspace*{-1cm} % get rid of random white space
\noindent\makebox[\linewidth][c]{%
\colorbox{\postertype}{%
\parbox[t][0.3\paperheight][c]{\paperwidth}{%
\hspace*{\dimexpr\hoffset+\oddsidemargin+1in\relax}%
\begin{minipage}{\textwidth}
\textcolor{white}
{\fontsize{40}{50} \selectfont
\begin{center}
\nohyphens{#1}
\end{center}
}
\end{minipage}%
}%
}%
}\par\medskip
}
% makes footer
\newcommand{\makefooter}[2]{
\vspace*{\fill}
\noindent\makebox[\linewidth][c]{%
\colorbox{\postertype}{%
\parbox[c][0.14\paperheight][c]{\paperwidth}{%
\hspace*{\dimexpr\hoffset+\oddsidemargin+1in\relax}%
\begin{minipage}[c][0.14\paperheight][c]{0.15\textwidth}
\includegraphics[height=0.11\paperheight, left]{#2}
\end{minipage}
\begin{minipage}[c][0.14\paperheight][c]{0.3\textwidth}
\textcolor{white}
{\large{
$\leftarrow$ Download the paper }
}
\end{minipage}
\hfill
\begin{minipage}[c][0.14\paperheight][c]{0.2\textwidth}
\includegraphics[height=0.11\paperheight, left]{#1}
\end{minipage}
}%
}%
}\par\medskip
}
% alternative footer
\newcommand{\makealtfooter}[2]{
\vspace*{\fill}
\noindent\makebox[\linewidth][c]{%
\colorbox{\postertype}{%
\parbox[c][0.14\paperheight][c]{\paperwidth}{%
\hspace*{\dimexpr\hoffset+\oddsidemargin+1in\relax}%
\begin{minipage}[c][0.14\paperheight][c]{0.3\textwidth}
% your logo here
\includegraphics[height=0.11\paperheight, left]{#1}
\end{minipage}
\hfill
\begin{minipage}[c][0.14\paperheight][c]{0.4\textwidth}
\begin{flushright}
\textcolor{white}
{\large{
Download the paper $\rightarrow$}
}
\end{flushright}
\end{minipage}
\begin{minipage}[c][0.14\paperheight][c]{0.2\textwidth}
\includegraphics[height=0.11\paperheight, left]{#2}
\end{minipage}
}%
}%
}\par\medskip
}
% makes main column
\newcommand{\makemain}[1]{
\noindent
\parbox[t][0.55\paperheight][t]{0.65\linewidth}{%
{\let\newpage\relax\maketitle}
{\large
#1
}
}
}
% makes additional figures column
\newcommand{\makeextracolumn}[1]{
\hfill\begin{tikzpicture}[overlay]
\draw[\postertype, very thick] (0,0.01\paperheight) -- (0,-0.56\paperheight);
\end{tikzpicture}
\hfill
\parbox[t][0.55\paperheight][t]{0.3\linewidth}{
\section*{Extra figures}
{\scriptsize
#1
}
}
}