marketing

Marketing materials (presentations, posters, flyers)
Log | Files | Refs

mytheme.sty (6963B)


      1 \ProvidesPackage{mytheme}[2013/06/17 ver 0.5]
      2 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
      3 
      4 % Original theme
      5 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
      6 %
      7 % Modifications, Emmanuel Benoist <emmanuel.benoist@bfh.ch>
      8 % 
      9 % This program can be redistributed and/or modified under the terms
     10 % of the LaTeX Project Public License Distributed from CTAN
     11 % archives in directory macros/latex/base/lppl.txt.
     12 
     13 \mode<presentation>
     14 
     15 \definecolor{BFHgrey}{RGB}{105,125,145}
     16 
     17 \usecolortheme[named=BFHgrey]{structure}
     18 
     19 \pgfdeclareimage[width=\paperwidth]{background}{./images/blanc.jpg}
     20 \pgfdeclareimage[width=\paperwidth]{backgroundsection}{./images/background-section-title.bfh.jpg}
     21 \pgfdeclareimage[width=\paperwidth]{backgroundsubsection}{./images/background-subsection-title.bfh.jpg}
     22 \pgfdeclareimage[width=\paperwidth]{backgroundfirstpage}{./images/background-first-page-bfh.jpg}
     23 
     24 
     25 
     26 \institute[BFH]{Berner Fachhochschule $\mid$ Haute école spécialisée
     27   bernoise $\mid$ Berne University of Applied Sciences }
     28 
     29 
     30 \setbeamertemplate{background}{\pgfuseimage{background}} 
     31 
     32 % The title should be on top 
     33 \useheadtemplate{
     34   \vbox{%
     35    \vskip-2pt%
     36     }%
     37   }
     38 %}
     39 
     40 %                                 % Footline
     41 % \usefoottemplate{%
     42 %   \vbox{%
     43 %     \setbox\beamer@tempbox=\hbox{\tiny JJJJJJJJJ\insertshortauthor: \insertshorttitle\hskip1.5cm\insertshortinstitute}%
     44 %     \ifdim\wd\beamer@tempbox>\paperwidth%
     45 %     \insertvrule{1pt}{structure!50!averagebackgroundcolor}%
     46 %     \vskip1.5pt
     47 %     \tinyline{\color{structure}\insertshortauthor:\hfill\insertshortinstitute}%
     48 %     \tinyline{\color{structure}\insertshorttitle\hfill\lower1pt\hbox{\insertnavigationsymbols}}%
     49 %     \else%
     50 %     \setbox\beamer@tempbox=\hbox{\beamerline{\hbox to\paperwidth{\hfill\lower1pt\hbox{\insertnavigationsymbols}}}}%
     51 %     \ht\beamer@tempbox=0pt%
     52 %     \box\beamer@tempbox%
     53 %     \insertvrule{14pt}{structure!50!averagebackgroundcolor}%
     54 %     \vskip1.5pt
     55 %     \tinyline{\color{structure}\insertshortauthor: \insertshorttitle, \insertsubtitle\hfill\insertpagenumber}%
     56 %     \fi}%
     57 %   }
     58 
     59 %\def\logo#1{%
     60 %  \def\insertlogo{#1}%
     61 %   \usefoottemplate{%
     62 %     \vbox{%
     63 %       %\insertvrule{0.4pt}{beamerstructure!50!averagebackgroundcolor}%
     64 %       \vskip1.5pt%
     65 %       %\setbox\beamer@logobox=\hbox{\lower1pt\hbox{\insertlogo}}%
     66 % %      \setbox1=\hbox{\insertsubtitle}%
     67 % %      \tinyline{\hbox{\hskip \wd\beamer@logobox\hskip0.2cm\color{beamerstructure}\insertshorttitle\ifdim\wd1>0pt : \fi\insertsubtitle}\hfill\lower1pt\hbox{\insertnavigationsymbols}}%
     68 %       \setbox1=\hbox{\inserttitle}%
     69 %       \setbox2=\hbox{\insertpart}%
     70 %       %\setbox3=\hbox{\insertsubsection}%
     71 %       %\tinyline{\hbox{\dp\beamer@logobox=0pt\ht\beamer@logobox=0pt\box\beamer@logobox\hskip0.2cm\color{testcol}\ifdim\wd1>0pt{\hfill\inserttitle}\fi\ifdim\wd2>0pt{{\hspace{1.3cm} \insertpart}\ifdim\wd3>0pt{\insertsubsection}\fi}\fi}\hfill\lower1pt\hbox{\color{testcol}\insertpagenumber}}%
     72 %       \tinyline{\hbox{\dp\beamer@logobox=0pt\ht\beamer@logobox=0pt\box\beamer@logobox\hskip0.2cm\color{BFHgrey}\ifdim\wd1>0pt{\hfill}\fi\ifdim\wd2>0pt{{\hspace{1.3cm} }\ifdim\wd3>0pt{\insertsubsection}\fi}\fi}{\color{BFHgrey}\insertinstitute}\hfill\lower1pt\hbox{\color{BFHgrey}\insertpagenumber}}%
     73 
     74 %       }%
     75 %     }%
     76 % %  }
     77 
     78   \usefoottemplate{%
     79     \vbox{%
     80      \vskip1.5pt%
     81     \tinyline{{\color{BFHgrey}\insertinstitute}\hfill\lower1pt\hbox{\color{BFHgrey}\insertpagenumber}}%
     82 
     83       }%
     84     }%
     85 %  }
     86 
     87 
     88 \userightsidebartemplate{0cm}{}
     89 
     90 %Modifications start here
     91 
     92 %First kill off navigation symbols, unwanted on transparencies
     93 \beamertemplatenavigationsymbolsempty   
     94 
     95 %Now set the proportion of greying out of non-current sections
     96 %in toc with [current]; also choose bullet for toc.
     97 \usetemplatetocsection[65!averagebackgroundcolor]{
     98    \color{beamerstructure}\raisebox{0.2ex}{\scriptsize{$\blacksquare$}}\quad\large\inserttocsection}
     99 \usetemplatetocsubsection[65!averagebackgroundcolor]{\leavevmode\leftskip=2.5em\color{black}\inserttocsubsection\par}
    100             
    101 %Set subitem marker to be bullet    
    102 
    103 %\usesubitemizeitemtemplate{\small\hbox{\color{beamerstructure}$\bullet$}}
    104 
    105 
    106 \pgfdeclareimage[width=0.25cm]{mybullet}{./images/bullet-bfh.jpg}
    107 \pgfdeclareimage[width=0.22cm]{mysmallbullet}{./images/bullet-bfh.jpg}
    108 
    109 
    110 \useitemizeitemtemplate{\pgfuseimage{mybullet}}
    111 \usesubitemizeitemtemplate{\pgfuseimage{mysmallbullet}}
    112 
    113 
    114 
    115 % title page
    116 
    117 % \usetitlepagetemplate{
    118 %     \vbox{}
    119 %     \vfill
    120 %     \begin{centering}
    121 %       \insertinstitute\par\vskip3.0em
    122 %       {\huge\structure{XXXXX\inserttitle}}\par
    123 %       \ifx\insertsubtitle\@empty\else\vskip1em{\LARGE{\structure{\insertsubtitle}}}\par\fi
    124 %       \vskip2.5em\par
    125 %       \normalsize\insertauthor\vskip1em\par
    126 %       \insertdate\par\vskip2.0em
    127 %       \inserttitlegraphic\par
    128 %     \end{centering}
    129 %     \vfill
    130 %   }
    131 
    132 \usetitlepagetemplate{
    133 %\pgfuseimage{backgroundfirstpage} 
    134    \vbox{}
    135     \vfill
    136       \inserttitlegraphic\par\vskip4.5em
    137       {\color{White}\huge\bf\inserttitle}\par\vskip1.5em
    138       \par
    139       \ifx\insertsubtitle\@empty\else\vskip1em{\color{White}\LARGE{\structure{\insertsubtitle}}}\par\fi
    140       \vskip0.2em\par
    141       {\color{White} \bf\it\LARGE\insertauthor}\vskip0.3em\par
    142       {\color{White}\Large{\insertdate}}\par\vskip9.0em
    143       \inserttitlegraphic\par
    144    \vfill
    145   }
    146 
    147 % frame title
    148 
    149  \useframetitletemplate{%
    150    \vskip0.25em%
    151    %\begin{centering}
    152       \color{beamerstructure}
    153       \huge\insertframetitle\par%
    154       {\normalsize\structure{\insertframesubtitle}\par}%
    155    %\end{centering}
    156  }
    157 
    158 % new theorem style for definitions etc.
    159 
    160 \usetheoremtemplate{\begin{my@linedtext}}
    161                    {\end{my@linedtext}}
    162 
    163 \newsavebox{\my@algobox}
    164 \newlength{\my@algoheight}
    165 \newlength{\my@algodepth}
    166 \newcommand{\my@algorule}[2]%
    167   {\color{beamerstructure}\rule{#1}{#2}}  %Balken!
    168 
    169 \RequirePackage{calc}
    170 \newenvironment{my@linedtext}%
    171   {\begin{block}{\inserttheoremname}~\\[-13pt]%
    172    \begin{lrbox}{\my@algobox}%
    173    \begin{minipage}[b]{\linewidth-7pt}\raggedright}
    174   {\end{minipage}\end{lrbox}%
    175    \settoheight{\my@algoheight}{\usebox{\my@algobox}}%
    176    \settodepth{\my@algodepth}{\usebox{\my@algobox}}%
    177    \addtolength{\my@algoheight}{\my@algodepth}%
    178    \hspace*{1pt}\my@algorule{1pt}{\my@algoheight+5pt}%
    179    \hspace*{5pt}\raise\my@algodepth\hbox{\usebox{\my@algobox}}%
    180    \end{block}}
    181 
    182 
    183 %% BIE1 add a frame for changing section
    184 %% 
    185 
    186 \AtBeginSection[] % Do nothing for \section*
    187 {%
    188 \setbeamertemplate{background}{\pgfuseimage{backgroundsection}} %
    189 %
    190 \frame<beamer>%
    191 {%
    192 %\frametitle{Outline}
    193 
    194 {\color{White}\huge \insertsection}%
    195 %\tableofcontents[current]
    196 }%
    197 \setbeamertemplate{background}{\pgfuseimage{background}} %
    198 }
    199 
    200 \AtBeginSubsection[] % Do nothing for \section*
    201 {%
    202 \setbeamertemplate{background}{\pgfuseimage{backgroundsubsection}} %
    203 %
    204 \frame<beamer>%
    205 {%
    206 %\frametitle{Outline}
    207 
    208 {\color{White}\huge \insertsubsection}%
    209 %\tableofcontents[current]
    210 }%
    211 \setbeamertemplate{background}{\pgfuseimage{background}} %
    212 }
    213 
    214 
    215 \mode
    216 <all>