Commit f711884c authored by Leonid Bloch's avatar Leonid Bloch

Initial commit

Signed-off-by: Leonid Bloch's avatarLeonid Bloch <leonid.bloch@esrf.fr>
parents
% Copyright 2016 by Leonid Bloch.
%
% This file is distributed under the GNU Public License.
% You can redistribute and/or modify this file under the terms of
% the GNU General Public License as published by the
% Free Software Foundation, either version 2 of the License, or
% (at your option) any later version.
%
% This file is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% For the complete text of the GNU General Public License, please
% see: http://www.gnu.org/licenses
\documentclass{beamer}
%\documentclass[aspectratio=169]{beamer} % For widescreen format
\usetheme{Grenoble}
\graphicspath{{graphics/}}
\author{My Name}
\title{The Title}
\subtitle{Or what a great presentation it is...} % Delete the subtitle if not needed
\date{This conference, \today}
\begin{document}
\begin{frame}[t,noframenumbering,plain]
\titlepage
\end{frame}
%%%%%%
\begin{frame}[t]{Alternative title/subtitle page}
% Alternative title page
% Receives an image (MUST BE 500X800 OR ANY 5X8 ASPECT RATIO) and a text.
% Usage: \AlterTitPage{IMAGE WITHOUT THE FILE EXTENSION}{TEXT}
\AlterTitPage{ESRF-img}{
\begin{center}
\vskip2.5em
\usebeamerfont{title}\inserttitle\par
\usebeamerfont{subtitle}\insertsubtitle\par
\vskip2em
\usebeamerfont{author}\insertauthor\par
\vskip0.25em
\usebeamerfont{institute}\insertinstitute\par
\usebeamerfont{date}\insertdate\par
\end{center}
\emph{\footnotesize ... This type of frame ( \texttt{{\textbackslash}AlterTitPage} ) can be
used as an alternative title page, or for switching between subjects. Notice, that the
image \textbf{MUST} be of an $5 \times 8$ aspect ratio ...}
}
\end{frame}
%%%%%%
\begin{frame}[t,plain]
% Yet another alternative title page
% Receives an image (MUST BE 3x1 aspect ratio), a text, and another block of text - for description.
% Usage: \AlterTitPage{IMAGE WITHOUT THE FILE EXTENSION}{TEXT1}{TEXT2}
% Please note: this title page requires a second compilation if changed.
\TitPageWide{ESRF-img-wide}{
\begin{center}
\vskip2.5em
\usebeamerfont{title}\inserttitle\par
\usebeamerfont{subtitle}\insertsubtitle\par
\vskip2em
\usebeamerfont{author}\insertauthor\par
\vskip0.25em
\usebeamerfont{institute}\insertinstitute\par
\usebeamerfont{date}\insertdate\par
\end{center}
}{
\emph{\footnotesize This can be
used as an alternative title page. It fits especially well for the wide screen format,
but may be used with the traditional layout as well. Notice, that the
image \textbf{MUST} be of an $3 \times 1$ aspect ratio.}
}
\end{frame}
%%%%%%
\begin{frame}[t]{ESRF {\LaTeX} Beamer template}
The following packages are needed for this theme:
\begin{itemize}
\item Beamer
\item TikZ
\end{itemize}
If your {\LaTeX} distribution is installed without them, please update and install these packages.
The following colours are defined in the template:
\begin{center}
\begin{tikzpicture}[rounded corners=3pt]
\foreach \x/\y/\name in {
0/0/ESRFblue1,
1.5/0/ESRFblue2,
3/0/ESRFgreen,
4.5/0/ESRFcyan,
6/0/ESRFmagenta,
7.5/0/ESRFyellow,
0/-1.5/ESRForange1,
1.5/-1.5/ESRForange2,
3/-1.5/ESRForange3,
4.5/-1.5/ESRFdarkerGrey,
6/-1.5/ESRFmidGrey,
7.5/-1.5/ESRFlightGrey,
} {
\fill[\name] (\x,\y) rectangle (\x+1.2,\y+1.2);
};
\end{tikzpicture}
\end{center}
No more than three secondary colours should be used together in a composition. Grey will complement all of the colours.
\end{frame}
%%%%%%
\begin{frame}[t,fragile]{Tips \& tricks}{This is a slide subtitle (optional!)}
\begin{itemize}
\item For uncovering content in stages check out:
\begin{itemize}
\item The \verb!\pause! option
\item \verb!\includegraphics<1>!, \verb!\includegraphics<2>!, ...
\item \verb!\only<1>!, \verb!\only<2>!, ...
\item Within TikZ pictures:
\begin{itemize}
\item \verb!\uncover<1>!, \verb!\uncover<2->!, \verb!\uncover<3>!, ...
\item This works for any element in any sequence.
\end{itemize}
\item etc...
\end{itemize}
\item A great tool for showing {\LaTeX} presentations is \textbf{pdfpc}.
\begin{itemize}
\item It supports screen spitting, with overview of all the slides
\item Support for videos in pdf presentations
\item Support for notes
\item A timer
\item Open source software
\item Command line interface
\end{itemize}
\item A lot of other possibilities to explore -- Beamer is more powerful than it looks!
\end{itemize}
\end{frame}
\end{document}
A4A3A4
ED7703
F4A300
FFDD00
51A026
0098D4
AF007C
132577
B7B9BA
D1D2D4
F4F4F4
4E5B99
F26B43
1F497D
EEECE1
4F81BD
C0504D
9BBB59
8064A2
4BACC6
F79646
0000FF
800080
# ESRF LaTeX Beamer Presentation Template
This introduces the **Grenoble** theme to the Beamer package for presentations' preparation using LaTeX.
## Usage
* Needed LaTeX packages:
* Beamer
* TikZ
* Compile using: `pdflatex <TEXFILENAME>.tex`.
* Compile twice if using `\TitPageWide` style page.
* All the graphics need to be in the **graphics** directory, or the path to them should be specified.
* Familiarize yourself with the many features Beamer has to offer - there are much more features than seems at first.
* The format of the presentation can be 4x3 (default) or 16x9 (widescreen). See the *.tex* file for details.
* The file *Extra_colors.tex* contains the hex codes for some additional colors that can be used.
% Copyright 2016 by Leonid Bloch.
%
% This file is distributed under the GNU Public License.
% You can redistribute and/or modify this file under the terms of
% the GNU General Public License as published by the
% Free Software Foundation, either version 2 of the License, or
% (at your option) any later version.
%
% This file is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% For the complete text of the GNU General Public License, please
% see: http://www.gnu.org/licenses
\usepackage{tikz}
% Colors
\definecolor{ESRFblue1}{RGB}{19,37,119}
\definecolor{ESRFblue2}{RGB}{78,91,153}
\definecolor{ESRForange1}{RGB}{242,107,67}
\definecolor{ESRForange2}{RGB}{237,119,3}
\definecolor{ESRForange3}{RGB}{244,163,0}
\definecolor{ESRFlightGrey}{RGB}{244,244,244}
\definecolor{ESRFmidGrey}{RGB}{209,210,212}
\definecolor{ESRFdarkerGrey}{RGB}{183,185,186}
\definecolor{ESRFmagenta}{RGB}{175,0,124}
\definecolor{ESRFcyan}{RGB}{0,152,212}
\definecolor{ESRFgreen}{RGB}{81,160,38}
\definecolor{ESRFyellow}{RGB}{255,221,0}
\setbeamercolor*{frametitle}{bg=white,fg=white}
\setbeamercolor*{item}{fg=ESRFblue1}
\setbeamercolor*{testcol}{bg=green,fg=red}
% Bullets
\setbeamertemplate{itemize item}{\tiny\raise1.2pt\hbox{\donotcoloroutermaths$\blacksquare$}}
\setbeamertemplate{itemize subitem}{\tiny\raise1.0pt\hbox{\donotcoloroutermaths$\square$}}
\setbeamertemplate{itemize subsubitem}{\tiny\raise0.5pt\hbox{\donotcoloroutermaths$\diamond$}}
% ESRF logo
% Usage: \ESRFlogo{SCALE}{LOGO FONT SIZE}{ONELINE FONT SIZE}{ABOVE LINE}{[R|L]}
% SCALE: as needed.
% LOGO FONT SIZE | ONELINE FONT SIZE: font sizes for the logo text and the one line next to it.
% ABOVE LINE: distance of the "ESRF" line above the bottom logo line.
% R or L: (optional) if you want the text line to appear to the right/left of the logo, leave empty for no text line.
% Examples: \ESRFlogo{8.5}{\LARGE}{\Large}{-0.1}{R} or: \ESRFlogo{4}{\scriptsize}{\tiny}{-0.6}{}
\newcommand{\ESRFlogo}[5]{
\def\Direction{#5}
\def\Left{L}
\def\Right{R}
\begin{tikzpicture}[line cap=round, ESRFblue1]
\begin{scope}[rotate=-90]
\draw[line width=0.45*#1 pt, dash pattern=on 0pt off pi*#1/5.5] (0,0) circle (#1 pt);
\draw[line width=0.28*#1 pt, dash pattern=on 0pt off pi*1.48*#1/11] (0,0) circle (1.48*#1 pt);
\draw[line width=0.22*#1 pt, dash pattern=on 0pt off pi*1.85*#1/11] (0,0) circle (1.85*#1 pt);
\draw[line width=0.16*#1 pt, dash pattern=on 0pt off pi*2.2*#1/11] (0,0) circle (2.2*#1 pt);
\end{scope}
\draw[line width=0.1*#1 pt] (-2.95*#1 pt,-2.2*#1 pt) -- (-1.33*#1 pt,-2.2*#1 pt);
\draw[line width=0.1*#1 pt] (1.33*#1 pt,-2.2*#1 pt) -- (2.95*#1 pt,-2.2*#1 pt);
\draw[line width=0.1*#1 pt] (-2.95*#1 pt,-4.4*#1 pt) -- (2.95*#1 pt,-4.4*#1 pt) node[pos=0.5, above=#4*#1 pt] {#2\bf \textrm{ESRF}};
\ifx\Direction\Right
\draw[line width=0.1*#1 pt] (4.3*#1 pt,-4.4*#1 pt) -- (4.3*#1 pt,-2.2*#1 pt) node[pos=0.35, right=0.3*#1 pt] {#3 The European Synchrotron};
\fi
\ifx\Direction\Left
\draw[line width=0.1*#1 pt] (-4.3*#1 pt,-4.4*#1 pt) -- (-4.3*#1 pt,-2.2*#1 pt) node[pos=0.35, left=0.6*#1 pt] {#3 The European Synchrotron};
\fi
\end{tikzpicture}
}
% Title page
\defbeamertemplate*{title page}{custom}[1][]
{
\vfill
\begin{centering}
\ESRFlogo{8.5}{\LARGE}{\Large}{-0.1}{R}
\vskip1.5em
\usebeamerfont{title}\inserttitle\par
\usebeamerfont{subtitle}\insertsubtitle\par
\vskip2em
\usebeamerfont{author}\insertauthor\par
\vskip0.25em
\usebeamerfont{institute}\insertinstitute\par
\usebeamerfont{date}\insertdate\par
\end{centering}
}
% Alternative title page
% Receives an image (MUST BE 500X800 OR ANY 5X8 ASPECT RATIO) and a text.
\newcommand{\AlterTitPage}[2]{
\begin{tikzpicture}
\useasboundingbox[fill=white](0,0) rectangle (\paperwidth-33.5 pt,0.744\paperheight);
\node at (0.2325\paperheight+4.5 pt,0.372\paperheight) {\includegraphics[height=0.744\paperheight]{#1}};
\fill[ESRFblue2] (0.465\paperheight+7.5 pt,0) rectangle (\paperwidth-33.5 pt,0.744\paperheight);
\node[white,anchor=north west,text width=\paperwidth-0.465\paperheight-49 pt] at (0.465\paperheight+7.5 pt,0.744\paperheight){#2};
\end{tikzpicture}
}
% Yet another alternative title page - especially fitting for wide screen, but for traditional AR as well.
% Receives an image (MUST BE 3x1 aspect ratio), a text, and another block of text - for description.
% Please note: this title page requires a second compilation if changed.
\newcommand{\TitPageWide}[3]{
\begin{tikzpicture}[remember picture,overlay]
\node at (current page.center) {\includegraphics[width=\paperwidth]{#1}};
\filldraw[ESRFblue1,opacity=0.9] (0,5pt) -- (0,-0.33\paperheight) arc (-180:85:0.35\paperheight) -- cycle;
\node[white,anchor=north west,text width=0.67\paperheight] at (0,0){#2};
\node[anchor=north west,text width=0.7\paperwidth] at (0.17\paperwidth,-0.78\paperheight){#3};
\end{tikzpicture}
}
% Header
\defbeamertemplate*{frametitle}{texsx}[1][]
{
\vskip4pt%
\begin{beamercolorbox}[wd=\paperwidth,ht=25pt]{frametitle}
\begin{tikzpicture}
\useasboundingbox[fill=white](0,0) rectangle (\paperwidth,25pt);
\fill[ESRFblue1] (5pt,0) rectangle (30pt,25pt);
\fill[ESRFblue1] (33pt,0) rectangle (\paperwidth-5 pt,25pt);
\ifx\insertframesubtitle\@empty%
\node[anchor=west,white,font=\Large] at (33pt,13pt){\insertframetitle};
\else%
\node[anchor= west,white,font=\large] at (33pt,16pt){\insertframetitle};
\node[anchor= west,white,font=\footnotesize] at (33pt,5.5pt){\insertframesubtitle};
\fi
\end{tikzpicture}
\end{beamercolorbox}
}
% Footer
\setbeamertemplate{footline}
{
\hbox{%
\begin{beamercolorbox}[wd=0.665\paperwidth,ht=1.3em,dp=0.5em,left]{section in head/foot}%
\hspace{0.9em}{\tiny Page \insertframenumber{}}\hspace{0.6em}$\vert$%
\hspace{0.6em}\insertshortdate\hspace{0.6em}$\vert$%
\hspace{0.6em}\insertshortauthor%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=0.335\paperwidth,ht=1.3em,dp=0.5em,right]{section in head/foot}%
\raisebox{-0.5em}{\ESRFlogo{4}{\scriptsize}{\tiny}{-0.2}{L}}
\end{beamercolorbox}%
}
}
\setbeamertemplate{navigation symbols}{}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment