-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeamerthemeconfposter.sty
92 lines (84 loc) · 2.88 KB
/
beamerthemeconfposter.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
\ProvidesPackage{beamerthemeconfposter}
\RequirePackage{tikz}
\usetikzlibrary{arrows,backgrounds}
\usetikzlibrary{calc}
\RequirePackage{lmodern}
\usepackage{exscale}
\RequirePackage{textcomp}
\RequirePackage{amsmath,amssymb}
\newcommand{\makeruleinbox}{{\usebeamercolor[bg]{block alerted title}\centering\hspace*{-0.7cm}\rule{\inboxrule}{0.5cm}}}
\usepackage{ragged2e}
\makeatletter
\def\@listi{\leftmargin\leftmarginii
\topsep 1ex
\parsep 0\p@ \@plus\p@
\itemsep 6pt}
\makeatother
\usecaptiontemplate{\small\structure{\insertcaptionname~\insertcaptionnumber: }\insertcaption} % A fix for figure numbering
% Colors
\definecolor{pennBlue}{HTML}{00144d}
\definecolor{pennLightBlue}{HTML}{045ea7}
\definecolor{pennRed}{HTML}{95001a}
% Set colors for blocks
\setbeamercolor{block title}{fg=black}
\setbeamercolor{block body}{fg=black}
% Set the alert color
\setbeamercolor{alerted text}{fg=pennRed}
% Poster title
\setbeamertemplate{headline}{
\leavevmode
% Comment out different styles for different headers
\vskip-0.5in
\begin{tikzpicture}
\fill[pennBlue] (0, 0) -- (0.13\textwidth, 0) -- (0, -0.13\textwidth) -- (0, 0);
\fill[pennRed] (0, 0) -- (0.08\textwidth, 0) -- (0, -0.08\textwidth) -- (0, 0);
\coordinate (a) at (0, -0.105\textwidth);
\coordinate (b) at (0.105\textwidth, 0);
\fill[white] ($(a)!0.25!(b)$) circle (1);
\fill[white] ($(a)!0.5!(b)$) circle (1);
\fill[white] ($(a)!0.75!(b)$) circle (1);
\fill[pennBlue] (\textwidth, 0) -- (\textwidth-0.13\textwidth, 0) -- (\textwidth, -0.13\textwidth) -- (\textwidth, 0);
\fill[pennRed] (\textwidth, 0) -- (\textwidth-0.08\textwidth, 0) -- (\textwidth, -0.08\textwidth) -- (\textwidth, 0);
\coordinate (a) at (\textwidth, -0.105\textwidth);
\coordinate (b) at (\textwidth-0.105\textwidth, 0);
\fill[white] ($(a)!0.25!(b)$) circle (1);
\fill[white] ($(a)!0.5!(b)$) circle (1);
\fill[white] ($(a)!0.75!(b)$) circle (1);
\end{tikzpicture}
\vskip-5.5in
\begin{columns}
\begin{column}{\linewidth}
\vskip2cm
\centering
\textsf{\usebeamercolor{title in headline}{\color{black}\Huge{\textbf{\inserttitle}}\\[0.5ex]}}
\textsf{\usebeamercolor{author in headline}{\color{black}\Large{\insertauthor}\\[1ex]}}
\end{column}
\end{columns}
\vskip0in
}
% Block definition
\setbeamertemplate{block begin}
{
\par\vskip\medskipamount
\begin{beamercolorbox}[colsep*=0ex,dp={2ex},center]{block title}
\vskip-0.25cm
\huge\textsf{\insertblocktitle}
\end{beamercolorbox}
\begin{tikzpicture}[remember picture,overlay]
\fill[pennLightBlue]
(0,0) rectangle (\textwidth,0.3cm);
\end{tikzpicture}
\vspace{1in}
{\parskip0pt\par}
\ifbeamercolorempty[bg]{block title}
{}
{\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}
\vskip-0.5cm
\begin{beamercolorbox}[colsep*=0ex,vmode]{block body}
\justifying
}
\setbeamertemplate{block end}
{
\end{beamercolorbox}
\vskip\smallskipamount
}