First commit.

This commit is contained in:
Trullemans Gregory 2016-06-03 14:59:48 +02:00
commit 4cc12e6c8a
4 changed files with 148 additions and 0 deletions

45
beamerouterthemeffg.sty Executable file
View File

@ -0,0 +1,45 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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}
% 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
\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%
}
% use a small dash ('-') for a bulletpoint 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
\insertframetitle \\
\usebeamerfont{framesubtitle}\insertframesubtitle
\end{beamercolorbox}
}

103
beamerthemeffg.sty Executable file
View File

@ -0,0 +1,103 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CopyLeft Gregory Trullemans %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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}
\RequirePackage[frenchb]{babel}
\RequirePackage{nicefrac}
\RequirePackage{xcolor}
\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}
\insertframetitle\\
\hspace{3.1cm}
\usebeamerfont{framesubtitle}\insertframesubtitle
\par
\vskip15pt
}
%\setbeamertemplate{framesubtitle}{\insertframesubtitle\par\vskip-15pt}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{title}{
\vskip3pt
\maketitle
}
\mode<presentation>
% 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}
\setbeamercolor{author}{fg=white}
\setbeamercolor{date}{fg=white}
\setbeamercolor{institute}{fg=white}
% Other page
\setbeamercolor{frametitle}{fg=ffgorange}
\setbeamercolor{structure}{fg=black}
\setbeamercolor{normal text}{fg=black}
%\setbeamercolor{alerted text}{fg=black}
%\setbeamercolor{example text}{fg=black}
%title
\setbeamercolor{block title alerted}{fg=white, bg=orange}
%body
\setbeamercolor{block body alerted}{fg=red,bg=white}
% parent of all alerts default is red
\setbeamercolor{alerted text}{fg=green}
% Set color for bullet
\setbeamercolor{enumerate item}{fg=black}
\setbeamercolor{enumerate subitem}{fg=black}
\setbeamercolor{enumerate subsubitem}{fg=black}
\setbeamercolor{itemize item}{fg=black}
\setbeamercolor{itemize subitem}{fg=black}
\setbeamercolor{itemize subsubitem}{fg=black}
\setbeamersize{text margin left=4ex}
% Set fonts
\setbeamerfont{frametitle}{size=\huge, series=\bfseries}
\setbeamerfont{framesubtitle}{size=\footnotesize, series=\normalfont}
\setbeamerfont{title}{size=\Huge, series=\bfseries}
\setbeamerfont{subtitle}{size=\large, series=\normalfont}
\setbeamerfont{author}{size=\Large, series=\bfseries}
\setbeamerfont{date}{size=\tiny}
\setbeamerfont{institute}{size=\footnotesize}
\setbeamerfont{block title}{series=\bfseries}

BIN
first.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
slide.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB