Commit 8ba3aca8 authored by Pierre-antoine Comby's avatar Pierre-antoine Comby

initial and final commit

parents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%% BEAMER THEME FOR ENSPS %%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% place in same folder as your .tex
% \usetheme{ens} in preamble
% also need ENSPS-revert.png
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{ensbeamer}[2019/09/04 Beamer Theme]
\RequirePackage{tikz}
\RequirePackage{xcolor}
\makeatletter
\newif\if@section\@sectionfalse
\DeclareOption{sectiontitle}{
\@sectiontrue
}
\ProcessOptions\relax
\definecolor{bleuens}{RGB}{0,119,139} % bleu ens !
\definecolor{vertens}{RGB}{0,230,180}
\definecolor{violetens}{RGB}{125,85,199}
\setbeamercolor{structure}{fg=bleuens}
%\setbeamercolor{sidebar}{fg=bleuens,bg=white}
\setbeamercolor{sidebar}{bg=bleuens,fg=white}
\setbeamercolor{title in sidebar}{fg=white}
\setbeamercolor{section in sidebar}{fg=white}
\setbeamercolor{section in sidebar shaded}{fg=bleuens!40}
\setbeamercolor{subsection in sidebar}{fg=white}
\setbeamercolor{subsection in sidebar shaded}{fg=bleuens!60}
\setbeamercolor{frametitle}{fg=bleuens,bg=white}
\def\swidth{2cm}
\useoutertheme[height=0pt,width=\swidth, hideothersubsections]{sidebar}
\setbeamertemplate{sidebar left}
{
{\vspace{1em}
\begin{minipage}{\swidth}
\centering
\insertlogo
\end{minipage}
\usebeamerfont{title in sidebar}%
\vskip1em%
\usebeamercolor[fg]{title in sidebar}%
\insertshorttitle[width=\swidth,center,respectlinebreaks]\par%
\vskip.5em%
}%
\insertverticalnavigation{\swidth}%
\vfill
\hbox to2cm{\hskip0.6cm\usebeamerfont{section in sidebar} \strut\usebeamercolor[fg]{section in sidebar}\insertframenumber/\inserttotalframenumber\hfill}%
\vskip3pt%
}%
% --------------------------------------------------------------------------
% Section as frame title
\if@section
\addtobeamertemplate{frametitle}{
\let\insertframetitle\insertsectionhead}{}
\addtobeamertemplate{frametitle}{
\let\insertframesubtitle\insertsubsectionhead}{}
\makeatletter
\CheckCommand*\beamer@checkframetitle{\@ifnextchar\bgroup\beamer@inlineframetitle{}}
\renewcommand*\beamer@checkframetitle{\global\let\beamer@frametitle\relax\@ifnextchar\bgroup\beamer@inlineframetitle{}}
\fi
\setbeamertemplate{caption}{\raggedright\insertcaption\par}
\setbeamertemplate{navigation symbols}[horizontal]
% ---------------------------------------------------
% BLOC
\setbeamertemplate{blocks}[rounded][shadow=false]
\setbeamercolor{block body}{fg=black,bg=bleuens!20}
\setbeamercolor{block title}{fg=black,bg=bleuens!40}
\setbeamercolor{block body example}{fg=black,bg=vertens!40}
\setbeamercolor{block title example}{fg=black,bg=vertens}
\setbeamercolor{block body alerted}{fg=black,bg=violetens!40}
\setbeamercolor{block title alerted}{fg=black,bg=violetens}
\setbeamercolor{subitem}{fg=violetens}
\makeatother
% LOGO :
\logo{\includegraphics[scale=0.3]{ENSPS-revert.png}}
\documentclass[handout]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[francais]{babel}
\usepackage{graphicx}
%\usepackage[european,cuteinductors,siunitx,straightvoltages]{circuitikz} % les circuits en latex -- PA
\usetheme[sectiontitle]{ens}
\title{Title}
% A subtitle is optional and this may be deleted
\subtitle{subtitle}
\author[]{\textsc{Auteur}}
\institute{Encadrant}
\date{\today}
\tikzset{every picture/.style={execute at begin picture={\shorthandoff{:;!?};}}}
\begin{document}
\begin{frame}
\centering
\titlepage
\end{frame}
\begin{frame}{Sommaire}
\tableofcontents[subsubsectionstyle=hide]
\end{frame}
\section{Example}
\subsection{Block}
\begin{frame}
\begin{block}{Title block}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\end{block}
\begin{block}{}
No title Block \\
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
\end{block}
\begin{exampleblock}{Example Block}
Example text (ugly)
\end{exampleblock}
\begin{alertblock}{Alert Block}
Alert Text
\end{alertblock}
\end{frame}
\subsection{Lists}
\begin{frame}
\begin{itemize}
\item Item 1
\item Item 2
\begin{itemize}
\item Subitem 1
\item Subitem 2
\end{itemize}
\end{itemize}
\begin{enumerate}
\item item 1
\begin{enumerate}
\item item 1.1
\end{enumerate}
\item
\item
\item
\end{enumerate}
\end{frame}
\end{document}
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