From 57141e2252300ea82bbcbc54b1f1b20ba6d57c9c Mon Sep 17 00:00:00 2001 From: Trullemans Gregory Date: Thu, 15 Dec 2016 11:39:14 +0100 Subject: [PATCH] Optimization and remove comments. --- README.md | 2 +- beamerouterthemeffg.sty | 37 ++++++++++++++------------------- beamerthemeffg.sty | 46 ++++++++++++++--------------------------- 3 files changed, 31 insertions(+), 54 deletions(-) diff --git a/README.md b/README.md index 8f244ad..e557ae1 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,6 @@ Se placer dans le répertoire source du projet LaTeX et taper la commande : -##### Auteur(s) +### Auteur(s) Trullemans Gregory diff --git a/beamerouterthemeffg.sty b/beamerouterthemeffg.sty index 39c0730..b1fbdc4 100755 --- a/beamerouterthemeffg.sty +++ b/beamerouterthemeffg.sty @@ -1,45 +1,38 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Copyright 2010 Jasper Bosch % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Some parts of this theme are based on the 'diepentheme' % -% by Guido Diepen % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\RequirePackage{calc} -\RequirePackage{tikz} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% CopyLeft Gregory Trullemans % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% Some parts of this theme are based on the 'diepentheme' by Guido Diepen % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% 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 -% 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} -} \ No newline at end of file +} diff --git a/beamerthemeffg.sty b/beamerthemeffg.sty index 9a55574..75fe079 100755 --- a/beamerthemeffg.sty +++ b/beamerthemeffg.sty @@ -1,16 +1,16 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% CopyLeft Gregory Trullemans % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Some parts of this theme are based on the 'diepentheme' % -% by Guido Diepen % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% CopyLeft Gregory Trullemans % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% Some parts of this theme are based on the 'diepentheme' by Guido Diepen % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \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 @@ -101,4 +85,4 @@ \setbeamerfont{author}{size=\Large, series=\bfseries} \setbeamerfont{date}{size=\tiny} \setbeamerfont{institute}{size=\footnotesize} -\setbeamerfont{block title}{series=\bfseries} \ No newline at end of file +\setbeamerfont{block title}{series=\bfseries}