Optimization and remove comments.

This commit is contained in:
Trullemans Gregory 2016-12-15 11:39:14 +01:00
parent b1dadb562f
commit 57141e2252
3 changed files with 31 additions and 54 deletions

View File

@ -14,6 +14,6 @@ Se placer dans le répertoire source du projet LaTeX et taper la commande :
##### Auteur(s)
### Auteur(s)
Trullemans Gregory

View File

@ -1,44 +1,37 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright 2010 Jasper Bosch <p.j.bosch@student.rug.nl> %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Some parts of this theme are based on the 'diepentheme' %
% by Guido Diepen <diepen@cs.uu.nl> %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{calc}
\RequirePackage{tikz}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CopyLeft Gregory Trullemans %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Some parts of this theme are based on the 'diepentheme' by Guido Diepen <diepen@cs.uu.nl> %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% link to the backgroundimage
% image should be in the same directory as the other files
% link to the backgroundimage : image should be in the same directory as the other files
\def\blackboard@backgroundimagefile{slide.png}
\DeclareOptionBeamer{backgroundimagefile}{\def\blackboard@backgroundimagefile{#1}}
\ProcessOptionsBeamer
\mode<presentation>
% Ca je sais pas (encore) à quoi cela sert !!!
\pgfdeclareimage[interpolate=true, height=\the\paperheight, width=\the\paperwidth]{backgroundImage}{\blackboard@backgroundimagefile}
% stretch background image over the entire page
% Stretch background image over the entire page
\setbeamertemplate{background}{
% \begin{tikzpicture}
% \useasboundingbox (0,0) rectangle (\the\paperwidth, \the\paperheight);
% \pgftext[at=\pgfpoint{0cm}{0cm}, left, base]{\pgfuseimage{backgroundImage}};
% \end{tikzpicture}
\ifnum\c@framenumber=1 %First slide
\includegraphics[width=\paperwidth,height=\paperheight]{first.png}
\else %Other slides
\includegraphics[width=\paperwidth,height=\paperheight]{slide.png}
\fi%
\fi
}
% use a small dash ('-') for a bulletpoint list
%\setbeamertemplate{itemize items}{\usebeamercolor[fg]{item}\small{•}}
%\setbeamertemplate{itemize itemize item}{\usebeamercolor[fg]{item}\small{*-}}
% Use a small bulletpoint for a list
\setbeamertemplate{itemize items}{\usebeamercolor[fg]{item}\small{•}}
\setbeamertemplate{itemize itemize item}{\usebeamercolor[fg]{item}\small{*-}}
\defbeamertemplate*{frametitle}{ffg theme}[1][right]
{
\begin{beamercolorbox}{frametitle}
\vskip5pt %17pt
\vskip5pt
\insertframetitle \\
\usebeamerfont{framesubtitle}\insertframesubtitle
\end{beamercolorbox}

View File

@ -1,16 +1,16 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CopyLeft Gregory Trullemans %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Some parts of this theme are based on the 'diepentheme' %
% by Guido Diepen <diepen@cs.uu.nl> %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Some parts of this theme are based on the 'diepentheme' by Guido Diepen <diepen@cs.uu.nl> %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{beamerthemeffg}
\RequirePackage{beamerbasethemes}[2004/10/07]
\RequirePackage{calc}
\RequirePackage{ifthen}
\RequirePackage[T1]{fontenc}
% \RequirePackage[utf8]{inputenc}
\RequirePackage[no-math]{fontspec}
\RequirePackage{ragged2e}
\RequirePackage{graphics}
@ -19,25 +19,11 @@
\RequirePackage{xcolor}
\RequirePackage{tikz}
% define the FfG's orange
\definecolor{ffgorange}{RGB}{239, 125, 55}
\useoutertheme{ffg}
%% This template uses typical OS X and Adobe fonts
%\defaultfontfeatures{Mapping=tex-text} % This seems to be important for mapping glyphs properly
%\setmainfont{Chalkduster} % Beamer ignores "main font" in favor of sans font
%\setsansfont{Chalkduster} % This is the font that beamer will use by default
%\setmainfont{Gill Sans Light} % Prettier, but harder to read
%\setnormalfont{Chalkduster}
%\setbeamerfont{title}{family=\fontspec{Chalkduster}}
%\addtobeamertemplate{block begin}{}{\justifying}% new code
%\apptocmd{\frame}{\justifying}{}{}%new code
% remove navigation symbols
%\setbeamertemplate{frametitle}{\vskip-6pt}
\setbeamertemplate{frametitle}{
\vskip3pt
\hspace{2.8cm}
@ -47,7 +33,7 @@
\par
\vskip15pt
}
%\setbeamertemplate{framesubtitle}{\insertframesubtitle\par\vskip-15pt}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
@ -61,8 +47,6 @@
% Set text colors for different objects
% Set color for titles
\usecolortheme[named=black]{structure}
% Set color for the text
%\setbeamercolor{normal text}{fg=black}
% First Page Color
\setbeamercolor{title}{fg=white}
@ -74,14 +58,14 @@
\setbeamercolor{frametitle}{fg=ffgorange}
\setbeamercolor{structure}{fg=black}
\setbeamercolor{normal text}{fg=black}
%\setbeamercolor{alerted text}{fg=black}
%\setbeamercolor{example text}{fg=black}
%title
% Title
\setbeamercolor{block title alerted}{fg=white, bg=orange}
%body
% Body
\setbeamercolor{block body alerted}{fg=red,bg=white}
% parent of all alerts default is red
% Parent of all alerts default is red
\setbeamercolor{alerted text}{fg=green}
% Set color for bullet