-
Notifications
You must be signed in to change notification settings - Fork 7
/
template.tex
168 lines (136 loc) · 3.63 KB
/
template.tex
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
165
166
167
% Latex Beamer template following CERN template guidelines (or trying!)
\documentclass[aspectratio=169]{beamer}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{tikz}
% Code listings with syntax highlighting
% Require Pygments
\usepackage{minted}
\usetheme{CERN}
\newcommand{\interludeTitle}{We are here!}
\AtBeginSection[] {
\frame{
\frametitle{\interludeTitle}
\begin{multicols}{2}
\tableofcontents[
currentsection,
sectionstyle=show/shaded,
]
\end{multicols}
}
}
\AtBeginSubsection[] {
\frame{
\frametitle{\interludeTitle}
\begin{multicols}{2}
\tableofcontents[
currentsubsection,
subsectionstyle=show/shaded,
]
\end{multicols}
}
}
% Talk date
% Uncomment this to define a presentation date distinct from \today
% \def\mydate{20 Feb 2000}
% Preamble
\title[]{Title}
\subtitle{Subtitle}
\author[Author]{\texorpdfstring{\url{[email protected]}}{Author}}
% Body
\begin{document}
\cernSplashBlue
% Title
{
\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{}
\frame{\titlepage}
}
\setcounter{framenumber}{0}
% TOC
\frame{
\frametitle{Table of Contents}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
}
\section{Introduction}
\frame{
\frametitle{This is the first slide}
%Content goes here
\begin{block}{Ideas}
See how this loooks
\end{block}
\begin{itemize}
\item Item 1
\item Item 2
\end{itemize}
}
% This block includes a picture full slide
{ % all template changes are local to this group.
\setbeamertemplate{navigation symbols}{}
\begin{frame}[plain]
\begin{tikzpicture}[remember picture,overlay]
\node[at=(current page.center)] {
\includegraphics[width=\paperwidth]{images/image.png}
};
\end{tikzpicture}
\end{frame}
}
% This slide has code block with syntax highlighting using the Minted package
% Minted requires Pygments and building the PDF with the --shell-escape argument
% for pdflatex
\begin{frame}[fragile]
\frametitle{This slide has code blocks}
\begin{minted}[
frame=lines,
framesep=2mm,
baselinestretch=1.2,
fontsize=\footnotesize,
linenos
]{python}
import numpy as np
def incmatrix(genl1,genl2):
m = len(genl1)
n = len(genl2)
M = None #to become the incidence matrix
VT = np.zeros((n*m,1), int) #dummy variable
\end{minted}
\end{frame}
\subsection{Intro subsection}
\frame{
\frametitle{This is the second slide}
\framesubtitle{A bit more information about this}
%More content goes here
\begin{alertblock}{Alert block}
Alert text
\end{alertblock}
}
\section{Section 1}
\frame{
\frametitle{Generic slide}
\framesubtitle{A bit more information about this}
%More content goes here
}
\section{Section 2}
\frame{
\frametitle{Generic slide}
\framesubtitle{A bit more information about this}
%More content goes here
}
\section{Conclusion}
\frame{
\frametitle{Generic slide}
\framesubtitle{A bit more information about this}
%More content goes here
}
\section{Acknowledgements}
\frame{
\frametitle{Generic slide}
\framesubtitle{A bit more information about this}
%More content goes here
}
\section{}
\cernSplashWhite
\end{document}