-
Notifications
You must be signed in to change notification settings - Fork 2
/
beamerthemeSOCIBposter.sty
107 lines (81 loc) · 4.36 KB
/
beamerthemeSOCIBposter.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
\ProvidesPackage{beamerthemeSOCIBposter} % this style was created by Philippe Dreuw
\usepackage{marvosym}
\usepackage{xcolor}
\usepackage{fontspec}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<presentation>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\defaultfontfeatures{Ligatures=TeX}
\setmainfont[Path = /home/ctroupin/.fonts/,Mapping=tex-text]{Cube-Regular2}
\setsansfont[Path = /home/ctroupin/.fonts/,Mapping=tex-text]{Cube-Regular2}
% Define custom colors, based on Tomeu's template
\definecolor{bluesocib}{RGB}{66,175,182} % blue
\definecolor{blacksocib}{RGB}{17,31,47} % black
\definecolor{redsocib}{RGB}{255,102,0} % red - orange
% headline colors and fonts
\setbeamercolor{headline}{fg=white,bg=blacksocib}
\setbeamercolor{footline}{fg=white,bg=blacksocib}
\setbeamerfont{footline}{size=\normalsize}
\setbeamercolor*{normal text}{fg=white,bg=blacksocib}
\setbeamercolor*{block body}{bg=blacksocib,fg=white}
\setbeamercolor*{block title}{fg=white}
\setbeamercolor{caption name}{fg=bluesocib}
\setbeamerfont{block title}{size=\huge,series=\bfseries}
\setbeamerfont{block body}{size=\large}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{items}[triangle]
\setbeamertemplate{navigation symbols}{} % no navigation on a poster
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{headline}{
\leavevmode
\begin{beamercolorbox}[wd=\paperwidth]{headline}
\vskip4ex
\centering
% 1st column %-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
\usebeamercolor{title in headline}{\color{fg}\textbf{\fontsize{3.6cm}{1em}\selectfont{\inserttitle}}\\[1ex]}
\end{beamercolorbox}
\vskip2ex
\begin{beamercolorbox}[wd=\paperwidth]{lower separation line head}
\rule{0pt}{2pt}
\end{beamercolorbox}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{footline}{
\begin{beamercolorbox}[wd=\paperwidth]{upper separation line foot}
\rule{\textwidth}{2pt}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=3.5cm,leftskip=1cm,rightskip=1cm]{footline}%
\includegraphics[height=2.5cm]{logo_socib_long}\hspace{2cm} \includegraphics[height=2.5cm]{logo_mineco}\hspace{2cm} \includegraphics[height=2.5cm]{logo_govern2}\hspace{2cm} \includegraphics[height=2.5cm]{logo_euro1} \hspace{2cm} \includegraphics[height=2.5cm]{CreativeCommons_Attribution_License} \hspace{2cm} \raisebox{1em}{Authors: \insertauthor}
\vskip1ex
\end{beamercolorbox}
% \begin{beamercolorbox}[wd=\paperwidth]{lower separation line foot}
% \rule{\textwidth}{2pt}
% \end{beamercolorbox}
}
\newcommand{\longdash}{-\!-\!-\!-\!}
\newcommand{\sepblock}{\vspace*{-1cm}\rule{\columnwidth}{.2cm}}
\newcommand{\sepblocksub}{\vspace*{-1.25cm}\rule{\columnwidth}{.1cm}}
\newcommand{\numbox}[1]{\raisebox{-1.25cm}{\fcolorbox{bluesocib}{bluesocib}{\textcolor{white}{\,\raisebox{1cm}{\fontsize{4.cm}{1cm} #1}\,\rule{0cm}{3cm}}}}}
\newcommand{\subsecnum}[1]{\tikz[baseline=(char.base)]{%
\node[shape=circle,fill=white,draw=bluesocib,inner sep=3pt] (char) {\textcolor{blacksocib}{#1}};}}
\newcommand{\subsecnumsmall}[1]{\tikz[baseline=(char.base)]{%
\node[shape=circle,fill=white,draw=bluesocib,inner sep=1pt] (char) {\textcolor{black}{#1}};}}
\NewDocumentEnvironment{vertline}{O{0.25em} O{-1cm} O{white}}%
{% \begin{coderule}[<rule width>][<rule sep>][<rule colour>]
\begin{mdframed}%
[topline=false,rightline=false,bottomline=false,%
innertopmargin=5pt,innerrightmargin=0pt,innerbottommargin=5pt,%
skipabove=\parskip,skipbelow=0.3\baselineskip,%
innerleftmargin=#2,outerlinewidth=#1,linecolor=#3,backgroundcolor=blacksocib]
}
{\end{mdframed}}% \end{coderule}
\newenvironment{enumline}{
\begin{vertline}\begin{enumerate}[label= \longdash \protect\subsecnum{\arabic*},font=\sffamily,leftmargin=*,labelindent=1cm,before=\color{white}]
}{
\end{enumerate}\end{vertline}
}
\newenvironment{itemline}{
\begin{vertline}\begin{enumerate}[label= \longdash \protect$\bullet$,font=\sffamily,leftmargin=*,labelindent=1cm,before=\color{white}]
}{
\end{enumerate}\end{vertline}
}