Skip to content
Snippets Groups Projects
Commit ad7df890 authored by SCHREIBER's avatar SCHREIBER
Browse files

Add beamer template with new CD

parent 85f62dcd
No related branches found
No related tags found
No related merge requests found
# Soleil2BeamerTemplate
Template for SOLEIL II latex beamer. Uses the new corporate design since April 24
## How to Use
Copy the file ``Soleil2Beamer.cls`` as well as the ``images`` directory next to your tex file.
Then you can follow the ``example.tex`` or follow these steps
In the preamble:
1. Use ``\documentclass{Soleil2Beamer}``
2. Set the title with ``\title{}``
3. Optionally: Set a subtitle ``\subtitle{}``
4. Optionally: Set an author with ``\author{}``. To indicate the main author to be used on each slide with ``\author[main author]{list of authors}``. If no main author is given the full list will be shown on each slide
5. Optionally: Set an event name with ``\event{}``
6. Optionally: To show Author, Date and Event on the titleslide use ``\showauthordate`` in the preamble
In the document:
7. Optionally: Set the titlepage with ``\soleiltitle``. This will already create the correct frame
8. Optionally: Create sections. To set a section title page use ``\sectiontitle[<color>]{Optional subtitle}`` where ``\<color\>`` is either ``blue`` or ``white``
9. Normally write your slides as with any other LaTeX beamer template
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{Soleil2Beamer}[2024/04/23 Beamer Presentation Class for SOLEIL II]
%
% Copyright: Patrick Schreiber
% Major Modifications:
% 04/2024 Initial version adapted to new corporate design
\LoadClass[10pt,aspectratio=169]{beamer}
\RequirePackage{tikz}
\usetikzlibrary{calc,shapes.misc}
\RequirePackage{transparent}
\RequirePackage{xcolor}
\RequirePackage{geometry}
\RequirePackage{helvet}
\RequirePackage{changepage}
\RequirePackage{xifthen}
\RequirePackage{setspace}
\makeatletter
\def\@author{}
\def\@mainauthor{}
\renewcommand{\author}[2][]{\def\@author{#2}\def\@mainauthor{#1}}
\renewcommand{\insertauthor}{\@author}
\newcommand{\insertmainauthor}{\@mainauthor}
\def\theevent{}
\newcommand{\event}[1]{\def\theevent{#1}}
\def\@showmetadata{0}
\newcommand{\showauthordate}{\def\@showmetadata{1}}
\makeatother
\definecolor{soleilyellow}{RGB}{255,204,0}
\definecolor{soleilblue}{RGB}{14,65,148}
\definecolor{soleilgrey}{RGB}{64,64,64}
\setbeamerfont{frametitle}{series=\bfseries}
\usebackgroundtemplate{% Background Template for all slides
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=0.79cm,yshift=-0.51cm] at (current page.north west) {\includegraphics[width=1.41cm,trim={0cm 0cm 4.8cm 0cm},clip]{./images/soleil_logo.png}};
\node[xshift=0.36cm,yshift=0.850cm] at (current page.south west) {\includegraphics[width=0.735cm]{./images/soleil_bottomleft.png}};
\filldraw[fill=soleilblue,draw=soleilblue] ($ (current page.north west)+ (1.84cm, -0.75cm)$) rectangle ($ (current page.north west)+ (20cm, -0.75cm)$);
\end{tikzpicture}
}
% Set Colors
\setbeamercolor{titlelike}{parent=structure,fg=soleilblue}
\setbeamercolor{itemize/enumerate body}{fg=soleilblue}
\setbeamercolor{itemize/enumerate subbody}{fg=soleilgrey}
\setbeamercolor{itemize/enumerate subsubbody}{fg=soleilgrey}
% Itemize symbols
\setbeamertemplate{itemize item}{\tikz[baseline=-0.5ex]\draw[soleilblue, fill=soleilblue,radius=1.1pt] (0,0) circle ;}
\setbeamertemplate{itemize subitem}{\color{soleilgrey}--}
\setbeamertemplate{itemize subsubitem}{\tikz[baseline=-0.5ex]\draw[soleilgrey, fill=soleilgrey,radius=1.1pt] (0,0) circle ;}
% Frame Title
\makeatletter
\setbeamertemplate{frametitle}{
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
\@tempdima=\textwidth%
\advance\@tempdima by\beamer@leftmargin%
\advance\@tempdima by\beamer@rightmargin%
\begin{beamercolorbox}[sep=0.19cm,wd=\paperwidth]{frametitle}
\usebeamerfont{frametitle}%
\vbox{}\vspace{0.0mm}%
\fontsize{13.25}{13.25}\selectfont
\strut\hfill\insertframetitle\hspace{6.35mm}\strut\par%
{%
\ifx\insertframesubtitle\@empty%
\vspace{3mm}
\else%
\vskip3pt
{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\hfill\insertframesubtitle\hspace{6.35mm}\strut\par}%
\fi
}%
\vskip-1ex%
\end{beamercolorbox}%
}
% Footer
\setbeamertemplate{footline}
{%
\leavevmode%
\vskip6pt%
\usebeamercolor[fg]{frametitle}
\hspace{1.5cm}
\insertsection
\setbox0=\hbox{\subsecname\unskip}
\ifdim\wd0=0pt
\else%
\usebeamercolor[fg]{framesubtitle}
\setbox0=\hbox{\secname\unskip}
\ifdim\wd0=0pt
\else
~--~
\fi
\insertsubsectionhead%
\fi%
\hfill
\color{soleilblue}
\fontsize{4.0}{4.0}\selectfont
\inserttitle%
\makeatletter%
\ifthenelse{\equal{\@mainauthor}{}}{
\ifthenelse{\equal{\@author}{}}{}{%
\ ~--~\ \insertauthor%
}
}{
\ ~--~\ \insertmainauthor%
}
\makeatother%
\hspace{0.1cm}{\color{soleilyellow}\vrule width 0.6pt}\hspace{0.1cm}%
\parbox{0.5cm}{\textbf\insertframenumber}\hspace{1.70cm}
\vskip10.0pt%
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.18cm,yshift=0.50cm] at (current page.south east) {\includegraphics[width=1.40cm,trim={4.8cm 0cm 0cm 0cm},clip]{./images/soleil_logo.png}};
\end{tikzpicture}
}
\makeatother
\beamertemplatenavigationsymbolsempty
% Define Title Page
\makeatletter
\setbeamertemplate{title page}
{
\begin{adjustwidth}{-1cm}{0cm} % Shift titlepage to counter act text margin left = 2cm ... 1 is default
\vskip0pt plus 1filll
\begin{tikzpicture}[remember picture,overlay]
\filldraw[fill=white,draw=white] (current page.north west) rectangle (current page.south east); % hide normal slide background
\node[xshift=-0.13cm,yshift=-0.124cm,anchor=south west] at (current page.south west) {\includegraphics[width=\paperwidth]{./images/title_bg.jpg}};
\node[xshift=-1.26cm,yshift=0.73cm] at (current page.south east) {\includegraphics[width=2.40cm,trim={4.8cm 0cm 0cm 0cm},clip]{./images/soleil_logo_white.png}};
\node[xshift=-0.58cm,yshift=-0.70cm] at (current page.north east) {\includegraphics[width=5.60cm]{./images/title_topright.png}};
\node[xshift=-1.46cm,yshift=-0.65cm] at (current page.north east) {\includegraphics[width=2.18cm,trim={0cm 0cm 4.8cm 0cm},clip]{./images/soleil_logo.png}};
\filldraw[line width=0.06mm,fill=white,draw=white] ($ (current page.north west)+ (1.85cm, 10.8cm)$) -- ($ (current page.north west)+ (1.85cm, -10cm)$);
\filldraw[rounded corners=0.05cm,fill=soleilyellow,draw=soleilyellow] ($ (current page.north west)+ (1.802cm, -5.18cm)$) rectangle ($ (current page.north west)+ (1.898cm, -6.55cm)$);
\node[anchor=north west] at ($( current page.north west) + (2.0cm, -5.2cm)$) {\usebeamerfont{title}\fontsize{21}{21}\selectfont\color{white}\textbf{\inserttitle}};
\node[anchor=north west] at ($( current page.north west) + (2.0cm, -5.98cm)$) {\usebeamerfont{subtitle}\fontsize{11}{11}\selectfont\color{white}\insertsubtitle};
\node[xshift=0.36cm,yshift=0.850cm] at (current page.south west) {\includegraphics[width=0.735cm]{./images/soleil_bottomleft.png}};
\ifthenelse{\equal{\@showmetadata}{0}}{}{
\ifthenelse{\equal{\theevent}{}}{
\node[anchor=north west] at ($( current page.north west) + (2.0cm, -6.98cm)$) {%
\parbox{11.5cm}{
\setstretch{1.5}
\usebeamerfont{subtitle}\fontsize{7}{7}\selectfont\color{white}\insertauthor \\%
\insertdate%
}
};
}{
\node[anchor=north west] at ($( current page.north west) + (2.0cm, -7.00cm)$) {%
\parbox{11.5cm}{
\setstretch{1.5}
\usebeamerfont{subtitle}\fontsize{7}{7}\selectfont\color{white}\theevent \\%
\insertauthor \\%
\insertdate%
}
};
}
}
\end{tikzpicture}
\end{adjustwidth}
\setbeamertemplate{footline}{}
}
\makeatother
\newcommand{\sectiontitle}[2][]{
\begin{frame}[plain]
\begin{adjustwidth}{-1cm}{0cm} % Shift titlepage to counter act text margin left = 2cm ... 1 is default
\vskip0pt plus 1filll
\begin{tikzpicture}[remember picture,overlay]
\filldraw[fill=white,draw=white] (current page.north west) rectangle (current page.south east); % hide normal slide background
\ifthenelse{\equal{#1}{blue}}{
\node[xshift=-0.13cm,yshift=-0.124cm,anchor=south west] at (current page.south west) {\includegraphics[width=\paperwidth]{./images/soleil_section_bg_blue.jpg}};
\node[xshift=1.13cm,yshift=-0.68cm] at (current page.north west) {\includegraphics[width=2.38cm,trim={0cm 0cm 4.8cm 0cm},clip]{./images/soleil_logo_white.png}};
\node[xshift=-2.50cm,yshift=0.68cm] at (current page.south east) {\includegraphics[width=2.38cm,trim={4.8cm 0cm 0cm 0cm},clip]{./images/soleil_logo_white.png}};
\def\@color{white}
}{
\node[xshift=-0.13cm,yshift=-0.124cm,anchor=south west] at (current page.south west) {\includegraphics[width=\paperwidth]{./images/soleil_section_bg.jpg}};
\node[xshift=1.13cm,yshift=-0.68cm] at (current page.north west) {\includegraphics[width=2.38cm,trim={0cm 0cm 4.8cm 0cm},clip]{./images/soleil_logo.png}};
\node[xshift=-2.50cm,yshift=0.68cm] at (current page.south east) {\includegraphics[width=2.38cm,trim={4.8cm 0cm 0cm 0cm},clip]{./images/soleil_logo.png}};
\def\@color{soleilblue}
}
\filldraw[line width=0.06mm,fill=\@color,draw=\@color] ($ (current page.north west)+ (14.75cm, 10.8cm)$) -- ($ (current page.north west)+ (14.75cm, -10cm)$);
\ifthenelse{\equal{#2}{}}{
\filldraw[rounded corners=0.05cm,fill=soleilyellow,draw=soleilyellow] ($ (current page.north west)+ (14.70cm, -2.72cm)$) rectangle ($ (current page.north west)+ (14.80cm, -3.85cm)$);
\node[anchor=north east] at ($( current page.north west) + (14.5cm, -2.88cm)$) {\usebeamerfont{title}\fontsize{17}{17}\selectfont\color{\@color}\textbf{\insertsectionhead}};
}{
\filldraw[rounded corners=0.05cm,fill=soleilyellow,draw=soleilyellow] ($ (current page.north west)+ (14.70cm, -2.72cm)$) rectangle ($ (current page.north west)+ (14.80cm, -3.85cm)$);
\node[anchor=north east] at ($( current page.north west) + (14.5cm, -2.70cm)$) {\usebeamerfont{title}\fontsize{17}{17}\selectfont\color{\@color}\textbf{\insertsectionhead}};
\node[anchor=north east] at ($( current page.north west) + (14.5cm, -3.38cm)$) {\usebeamerfont{title}\fontsize{9.5}{9.5}\selectfont\color{\@color} #2 };
}
\node[xshift=0.36cm,yshift=0.850cm] at (current page.south west) {\includegraphics[width=0.735cm]{./images/soleil_bottomleft.png}};
\end{tikzpicture}
\end{adjustwidth}
\end{frame}
}
\newcommand{\soleiltitle}{
\begin{frame}[plain]
\maketitle
\end{frame}
}
\makeatletter
\newcommand{\globalcolor}[1]{%
\color{#1}\global\let\default@color\current@color
}
\makeatother
\AtBeginDocument{\globalcolor{soleilgrey}}
File added
\documentclass{Soleil2Beamer}
\title{Titre du document}
\subtitle{Sous-titre du document}
\author[First Author]{List, Of, Authors}
\date{01.01.1970}
\event{The Event/Meeting/Workshop/Conference}
\showauthordate
\begin{document}
\soleiltitle
\section{Titre de la Partie}
\sectiontitle[blue]{Sous-titre de la partie}
\begin{frame}[t]{Titre de la diapositive}{Sous-titre de la diapositive}
\begin{itemize}
\item Texte
\begin{itemize}
\item Texte
\begin{itemize}
\item Texte
\end{itemize}
\end{itemize}
\end{itemize}
\end{frame}
\end{document}
BeamerTemplate/images/soleil2_logo_white.png

81.2 KiB

BeamerTemplate/images/soleil_bottomleft.png

28.1 KiB

BeamerTemplate/images/soleil_logo.png

34.2 KiB

BeamerTemplate/images/soleil_logo_white.png

24 KiB

BeamerTemplate/images/soleil_section_bg.jpg

171 KiB

BeamerTemplate/images/soleil_section_bg_blue.jpg

111 KiB

BeamerTemplate/images/title_bg.jpg

217 KiB

BeamerTemplate/images/title_topright.png

7.01 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment