-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeamerthemeMolSSI.sty
166 lines (130 loc) · 4.85 KB
/
beamerthemeMolSSI.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
155
156
157
158
159
160
161
162
163
164
%==============================================================================
% Beamer style for posters
% // based on 'cpbgposter' beamer theme //
%==============================================================================
\ProvidesPackage{beamerthemeMolSSI}
\RequirePackage{tikz}
\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,calc}
\RequirePackage{amsmath,amssymb}
\usepackage{fontspec}
\setmainfont{din-regular-opentype.otf}[
Path = ./fonts/,
BoldFont = dincond-bold-opentype.otf]
\usepackage{ragged2e}
% multicols
\usepackage{multicol}
\setlength{\columnsep}{80pt}
% captions
\usepackage[justification=justified,listformat=simple,format=plain,labelformat=simple]{caption}
% for logo path
\usepackage{url}
%
%==============================================================================
% define basic colors
%==============================================================================
\definecolor{molssired} {RGB}{237,28,36} %%% title color %%% MolSSI red
\definecolor{molssiblack} {RGB}{57,53,54} %%% border and colorbar color %%% MolSSI black
\definecolor{black} {RGB}{0,0,0} %%% text color
\definecolor{white} {RGB}{255,255,255} %%% background color
%==============================================================================
%
\setbeamercolor{colorbar}{fg=molssiblack,bg=molssiblack}
\setbeamercolor{normal text}{fg=black}
% background color
\beamertemplatesolidbackgroundcolor{white}
%set the fonts
\setbeamerfont{section in head/foot}{series=\bfseries}
\setbeamerfont{block title}{series=\bfseries}
\setbeamerfont{block alerted title}{series=\bfseries}
\setbeamerfont{frametitle}{series=\bfseries}
\setbeamerfont{frametitle}{size=\Large}
\setbeamerfont{caption}{size=\normalsize}
\setbeamerfont{caption name}{size=\normalsize}
%set some beamer theme options
\setbeamertemplate{title page}[default][colsep=-4bp,rounded=true]
\setbeamertemplate{sections/subsections in toc}[square]
\setbeamertemplate{items}[circle]
\setbeamertemplate{blocks}[width=0.0]
\beamertemplatenavigationsymbolsempty
%set bibliography style
\setbeamertemplate{bibliography item}[text]
\setbeamercolor{bibliography item}{fg=black,bg=white}
\setbeamercolor{bibliography entry author}{fg=black,bg=white}
\setbeamerfont{bibliography item}{size=\small}
\setbeamerfont{bibliography entry author}{size=\small}
%==============================================================================
% build the poster title
%==============================================================================
\setbeamertemplate{headline}{
\leavevmode
\rmfamily
\begin{columns}
\begin{column}{0.15\linewidth}
\begin{center}
% replace with your institutions seal
\includegraphics[width=0.55\linewidth]{{\instlogo}}
\end{center}
\end{column}
\begin{column}{.7\linewidth}
\vskip2cm
\centering
%\usebeamercolor{title in headline}
{\color{molssired} \textbf{\huge{\inserttitle}}\\[1ex]}
\vskip 1.5cm
%\usebeamercolor{author in headline}
{\color{fg} \Large{\insertauthor}\\[1ex]}
%\usebeamercolor{institute in headline}
{\color{fg} \large{\insertinstitute}\\[1ex]}
{\color{fg} \large{\mentor}\\[1ex]}
\vskip2cm
\end{column}
\begin{column}{.15\linewidth}
\begin{center}
\hspace{-8cm}
\includegraphics[width=1.0\linewidth]{./images/molssi_main_logo.png}
\end{center}
\end{column}
\vspace{1cm}
\end{columns}
%%% additional bar under titles
\begin{beamercolorbox}[colsep=-2.8cm,ht=3.3cm]{colorbar}
\end{beamercolorbox}
}
%
%==============================================================================
% Section and subsection re-definitions
%==============================================================================
\renewcommand{\section}[1]{
\par\vskip\medskipamount%
\begin{flushleft}
%\vskip1cm
{\textcolor{black}{\textbf{\Large #1}}}
{\parskip0pt\par}
\end{flushleft}
\vspace{-1.0cm}
\begin{beamercolorbox}[ht=0.2cm]{colorbar}
\end{beamercolorbox}
{\parskip0pt\par}
\justifying
}
%%%
\renewcommand{\subsection}[1]{
\begin{flushleft}
%\vskip1cm
{\textcolor{black}{\textbf{\Normal #1}}}
{\parskip0pt\par}
\end{flushleft}
\vspace{-1.0cm}
\begin{beamercolorbox}[ht=0.2cm]{colorbar}
\end{beamercolorbox}
}
%==============================================================================
%==============================================================================
% build the poster boarder
%==============================================================================
\setbeamertemplate{background canvas}{
\begin{tikzpicture}[remember picture,overlay]
\draw [line width=1cm,molssiblack] (current page.south east) rectangle (current page.north west);
\draw [line width=1cm,molssiblack] (current page.south east) rectangle (current page.north west);
\end{tikzpicture}
}