Commit ed43e7b5 authored by Florian Goth's avatar Florian Goth
Browse files

initial checkin

parent 0c719be5
%% Jrme Lelong (September 2007)
%%
%% this stuff fixes the frame numbering in beamer when using an appendix such
%% that the slides of the appendix are not counted in the total framenumber
\makeatletter
\let\appendixtotalframenumber\empty
\def\mainend{-1}
\let\appendixorig\appendix
\def\appendix{
\edef\mainend{\theframenumber}
\immediate\write\@auxout{\string\global\string\@namedef{mainendframenumber}{\mainend}}
\appendixorig
\def\inserttotalframenumber{\appendixtotalframenumber}%
\setcounter{framenumber}{0}
}
\def\pageatend{
\edef\appendixend{\theframenumber}
\ifnum\mainend>0%
\immediate\write\@auxout{\string\global\string\@namedef{appendixtotalframenumber}{\appendixend}}%
\immediate\write\@auxout{\string\global\string\@namedef{inserttotalframenumber}{\mainend}}%
\immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {%
\noexpand \def\noexpand \inserttotalframenumber{\mainend}}}}%
\immediate\write\@auxout{\string\@writefile{nav}{\noexpand \headcommand {%
\noexpand \def\noexpand \appendixtotalframenumber{\appendixend}}}}%
\else
\fi
}
\AtEndDocument{\pageatend}
\makeatother
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
\mode<presentation>
\definecolor{myblue}{RGB}{0,114,178}%the dark blue of the badges
%\definecolor{titleblue}{RGB}{0,83,137}%David's dark blue
\definecolor{darkskyblue}{RGB}{24,124,182}%the bright blue of the badges
\definecolor{skyblue}{RGB}{86,180,233}%the bright blue of the badges
\definecolor{brightskyblue}{RGB}{159,212,243}%the bright blue of the badges
\definecolor{fororange}{RGB}{230,159,0}
\definecolor{strongfororange}{RGB}{255,177,10}
\definecolor{vermillion}{RGB}{213,94,10}
\definecolor{vermillioncmyk}{cmyk}{0,0.8,1.0,0}
\definecolor{myorange}{RGB}{230,159,0}
\definecolor{bluishgreen}{RGB}{0,158,115}
\definecolor{myyellow}{RGB}{240,228,66}
\definecolor{reddishpurple}{RGB}{204,121,167}
\definecolor{titleblue}{RGB}{0,90,180}
\setbeamercolor{structure}{fg=darkskyblue,bg=}
\setbeamercolor{palette primary}{fg=myblue,bg=black}
\setbeamercolor{palette secondary}{fg=skyblue,bg=black!75}
\setbeamercolor{palette tertiary}{fg=brightskyblue,bg=black!50}
\setbeamercolor{palette quaternary}{fg=white,bg=black!25}
\setbeamercolor{section in toc}{fg=titleblue,bg=black}
\setbeamercolor{titlelike}{parent=palette primary,fg=titleblue}
\setbeamercolor{block title}{fg=myblue,bg=black!25}
\setbeamercolor{block title alerted}{use=alerted text,bg=block title.bg!75!bg}
\setbeamercolor{block title example}{use=example text,bg=block title.bg!75!bg}
\setbeamercolor{alerted text}{fg=vermillioncmyk,bg=}
\setbeamercolor{example text}{fg=bluishgreen,bg=}
\setbeamercolor{page number in head/foot}{fg=skyblue,bg=black}
\setbeamercolor*{title}{fg=titleblue,bg=black}
\setbeamercolor*{frametitle}{fg=titleblue,bg=black}
% \setbeamercolor*{part title}{bg=black,fg=black}
% \setbeamercolor*{item}{use=palette secondary}
% \setbeamercolor{sidebar left}{bg=}
% \setbeamercolor*{mini frames}{fg=myblue,bg=}
% \setbeamercolor*{section in head/foot}{fg=myblue,bg=}
\setbeamercolor*{separation line}{}
\setbeamercolor*{fine separation line}{}
%\setbeamerfont*{page number in head/foot}{family=\fontfamily{fxb}}
%\setbeamerfont{page number in head/foot}{family=\scriptsize}
%\setbeamercolor*{section in head/foot}{fg=darkblue}
\pgfdeclarehorizontalshading{singleShade}%a gray horizontal gradient
{.5pt}{color(0cm)=(pgftransparent!100); color(.8\textwidth)=(red); color(\textwidth)=(gray)}
\pgfdeclareverticalshading{verticalshade}%a gray vertical gradient
{
%1.5pt
0.2\paperwidth
}{color(0)=(transparent!0);
color(0.5\paperheight)=(pgftransparent!30);
color(0.99\paperheight)=(pgftransparent!100)}
%font specifications
\setbeamerfont{title}{family=\biolinum,size*={15}{16}}
\setbeamerfont{alerted text}{series=\bfseries}
\mode
<all>
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
\mode<presentation>
% Logo to use in the alternative title page.
\def\beamer@FOR@titlepagelogo{}
\DeclareOptionBeamer{unilogo}{\def\beamer@FOR@titlepagelogo{#1}}
% Bullet shape.
\ProcessOptionsBeamer
% Colors.
\setbeamercolor*{lineup}{parent=palette primary}
\setbeamercolor*{linemid}{parent=palette secondary}
\setbeamercolor*{linebottom}{parent=palette tertiary}
%\setbeamercolor*{title page header}{fg=darkblue,bg=white}
% Lengths.
% Margins.
\newlength{\beamer@FOR@normalmargin}
\setlength{\beamer@FOR@normalmargin}{.06\paperwidth}
\setbeamersize{text margin left=
%0.001\paperwidth
0.01\beamer@FOR@normalmargin
}
\setbeamersize{sidebar width left=0.8\cubewidth}%hopefully a good guess
\setbeamersize{text margin right=0.5\beamer@FOR@normalmargin}
\setlength\leftmargini{.6\beamer@FOR@normalmargin}%controls distance between items and border...
\setlength\leftmarginii{.6\beamer@FOR@normalmargin}
\setlength\leftmarginiii{.6\beamer@FOR@normalmargin}
% Normal title page.
\defbeamertemplate{title page}{FOR1807_simpletitle}[1][]
{
\setbox0\hbox{
\begin{tikzpicture}
\clip (2\badgewt,\value{projecta} \badgeht) rectangle (3\badgewt,\value{projectb} \badgeht);
\pgftext[left,base]{\pgfuseimage{badges}};
\end{tikzpicture}
}
\setbox1\hbox{
\begin{tikzpicture}
\node at (0.02,-0.01) { \textcolor{black!50}{
\usebeamerfont{title}
\begin{minipage}{0.8\textwidth}\begin{center}\inserttitle\end{center}\end{minipage} } } ;
\node at (0.,0.0) { \usebeamercolor[fg]{title}{
\usebeamerfont{title}
\begin{minipage}{0.8\textwidth}\begin{center}\inserttitle\end{center}\end{minipage} } } ;
\end{tikzpicture}
}
\settoheight{\myboxht}{\usebox1}
\vbox{}
\vfill
\begin{minipage}{0.15\linewidth}
\begin{tikzpicture}
% \fill [red] (0,0) circle (2pt); % to find out where I'm at...
\node at (0.82\textwidth,0) {\resizebox{!}{1.1\myboxht}{\usebox0}};
\end{tikzpicture}
\end{minipage}
\begin{minipage}{0.82\linewidth}
\usebox1
\end{minipage}
\vfill
}
\defbeamertemplate*{title page}{FOR1807_defaulttitle}[1][]
{
\vbox{}
\vfill
\hspace{-0.8\cubewidth}
\thispagestyle{empty}
% \begin{minipage}{0.78\paperwidth}
\begin{centering}
\begin{tikzpicture}
\node at (0.02,-0.01) { \textcolor{black!50}{
\usebeamerfont{title}
\begin{minipage}{0.8\textwidth}\begin{center}\inserttitle\end{center}\end{minipage} } } ;
\node at (0.,0.0) { \usebeamercolor[fg]{title}{
\usebeamerfont{title}
\begin{minipage}{0.8\textwidth}\begin{center}\inserttitle\end{center}\end{minipage} } } ;
\end{tikzpicture}
%\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
% {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
{\hspace{-0.8\cubewidth}\fontfamily{fxb}\fontsize{10}{11}\selectfont\usebeamercolor[fg]{titlelike}\insertsubtitle\par}%
\fi%
% \end{beamercolorbox}%
\vskip1em\par
\hspace{-0.8\cubewidth}
\begin{beamercolorbox}[sep=8pt,center,#1]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\par\hspace{-0.8\cubewidth}
\begin{beamercolorbox}[sep=8pt,center,#1]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\par\hspace{-0.8\cubewidth}
\begin{beamercolorbox}[sep=8pt,center,#1]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\end{centering}
% \end{minipage}
\vfill
}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{section in toc}[default]
\setbeamertemplate{subsection in toc}[default]
% Items.
\defbeamertemplate{itemize item}{squarealt}%
{\tiny\raise.5ex\hbox{\donotcoloroutermaths$\blacksquare$}}
\defbeamertemplate{itemize subitem}{squarealt}%
{\tiny\raise.4ex\hbox{\donotcoloroutermaths$\square$}}
\defbeamertemplate{itemize subsubitem}{squarealt}%
{\tiny\raise.3ex\hbox{\donotcoloroutermaths$\blacksquare$}}
\defbeamertemplate{itemize item}{circlealt}%
{\small\raise.2ex\hbox{\donotcoloroutermaths$\bullet$}}
\defbeamertemplate{itemize subitem}{circlealt}%
{\small\raise.1ex\hbox{\donotcoloroutermaths$\circ$}}
\defbeamertemplate{itemize subsubitem}{circlealt}%
{\scriptsize\raise.1ex\hbox{\donotcoloroutermaths$\bullet$}}
\def\circletext{circle}
\ifx\beamer@FOR@bullet\circletext
\setbeamertemplate{items}[circlealt]
\else
\setbeamertemplate{items}[squarealt]
\fi
\mode<all>
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
\mode<presentation>
\pgfdeclareimage[width=3\badgewt,interpolate=true]{badges}{./gfx/badges}
% String used between the current page and the total page count.
\def\beamer@FOR@pageofpages{/}
\DeclareOptionBeamer{pageofpages}{\def\beamer@FOR@pageofpages{#1}}
% Show a line below the frame title.
\DeclareOptionBeamer{titleline}[true]{\def\beamer@FOR@titleline{#1}}
% Image used for the watermark.
\def\beamer@FOR@watermarkorig{}
\DeclareOptionBeamer{watermark}{\def\beamer@FOR@watermarkorig{#1}}
% Height of the watermark.
\def\beamer@FOR@watermarkheight{100px}
\DeclareOptionBeamer{watermarkheight}{\def\beamer@FOR@watermarkheight{#1}}
% The original image height is watermarkheightmult * watermarkheight.
\def\beamer@FOR@watermarkheightmult{1}
\DeclareOptionBeamer{watermarkheightmult}{\def\beamer@FOR@watermarkheightmult{#1}}
\ExecuteOptionsBeamer{titleline=false}
\ProcessOptionsBeamer
% Enable/disable the watermark.
\def\watermarkon{%
\def\beamer@FOR@watermark{\beamer@FOR@watermarkorig}%
}
\def\watermarkoff{\def\beamer@FOR@watermark{}}
% Initially enable the watermark.
\watermarkon
% Colors.
\setbeamercolor*{lineup}{parent=palette primary}
\setbeamercolor*{linemid}{parent=palette secondary}
\setbeamercolor*{linebottom}{parent=palette tertiary}
\setbeamercolor*{page header}{parent=titlelike}
\setbeamertemplate{section in toc shaded}[default][50]
% Lengths
\newlength{\headerheight}
\setlength{\headerheight}{.0045\paperheight}
\newlength{\beamer@FOR@lineup}
\setlength{\beamer@FOR@lineup}{.025\paperheight}
\newlength{\beamer@FOR@linemid}
\setlength{\beamer@FOR@linemid}{.015\paperheight}
\newlength{\beamer@FOR@linebottom}
\setlength{\beamer@FOR@linebottom}{.01\paperheight}
% The height of the watermark part below the 3 bottom lines.
\newlength{\beamer@FOR@watermarkheightbottom}
\addtolength{\beamer@FOR@watermarkheightbottom}{\beamer@FOR@lineup}
\addtolength{\beamer@FOR@watermarkheightbottom}{\beamer@FOR@linemid}
\addtolength{\beamer@FOR@watermarkheightbottom}{\beamer@FOR@linebottom}
% The height of the watermark part over the 3 bottom lines before shrinking.
\newlength{\beamer@FOR@watermarkheightupperorig}
\setlength{\beamer@FOR@watermarkheightupperorig}{\beamer@FOR@watermarkheight}
\addtolength{\beamer@FOR@watermarkheightupperorig}{-\beamer@FOR@watermarkheightbottom}
\multiply\beamer@FOR@watermarkheightupperorig by \beamer@FOR@watermarkheightmult
\providecommand\insertframetitle{} %necessary magic to get the frametitle working in the headline...
% Footer.
\defbeamertemplate*{footline}{FOR theme}
{%
\ifthenelse{\number\beamer@fakher@mode < 1}%
{%
\hspace{1.21\cubewidth}\makebox[11pt][r]{\usebeamercolor[fg]{page number in head/foot}\insertshorttitle}%
\hfill{\makebox[11pt][r]{\usebeamercolor[fg]{page number in head/foot}\insertframenumber/\inserttotalframenumber}}%
}%
{}%
%empty footline
}
\defbeamertemplate*{headline}{FOR1807_headline}%this defines our headline with the fading line
{
\pgfdeclarehorizontalshading{horizontalshade}%a gray horizontal gradient
{0.2\paperheight}{color(0)=(transparent!100); color(0.2\paperwidth)=(pgftransparent!20); color(\paperwidth)=(pgftransparent!0)}
\pgfdeclarefading{horizontalfading}
{\pgfuseshading{horizontalshade}}
% \setbox0\hbox{
% \begin{tikzpicture}
% \clip (2\badgewt,\value{projecta} \badgeht) rectangle (3\badgewt,\value{projectb} \badgeht);
% \pgftext[left,base]{\pgfuseimage{badges}};
% \end{tikzpicture}
% }
\ifthenelse{\beamer@poster@loaded=0}
{
\vskip-4pt\hskip2pt%
\hspace*{\cubewidth}
{\usebeamercolor[fg]{titlelike}\fontsize{10}{10}\selectfont\raisebox{0pt}[15pt]{\strut\insertframetitle}}%
\hfill
\vskip1pt
\hskip0.5\cubewidth
\begin{tikzpicture}
% \fill [red] (0,0) circle (2pt); % to find out where I'm at...
%\node[scale=0.13] at (0.82\textwidth,0) {\usebox0};
%\pgfpointorigin
% \fill [red] (0,0) circle (2pt); % to find out where I'm at...
%\begin{scope}
\pgfsetfading{horizontalfading}{\pgftransformshift{\pgfpoint{0.52\paperwidth}{0}}};
\fill [black] (0,-0.305\cubeheight) rectangle (\paperwidth,-0.32\cubeheight);
%\end{scope}
\end{tikzpicture}
}
{
\vskip0.03\paperheight
\sbox{\mytmpbox}
{\vbox{
\begin{centering}
%\fbox{
\begin{tikzpicture}
\node at (0.2,-0.1) { \textcolor{black!50}{
\usebeamerfont{title}
\Huge
\begin{minipage}{\linewidth}\begin{center}\inserttitle\end{center}\end{minipage}
}
} ;
\node at (0.,0.0) { \usebeamercolor[fg]{title}{
\usebeamerfont{title}\Huge
\begin{minipage}{\linewidth}\begin{center}\inserttitle\end{center}\end{minipage} } } ;
\end{tikzpicture}
%}
%\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.01\paperheight%
% {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
{\fontfamily{fxb}\Large\selectfont\usebeamercolor[fg]{titlelike}\insertsubtitle\par}%
\fi%
\vskip0.01\paperheight\par
\begin{center}
%\fbox{
\usebeamercolor[fg]{author}
\usebeamerfont{author}\large{\insertauthor}
%}
\end{center}
\vskip1em\par
\begin{center}
%\fbox{
\hspace*{0.6\cubewidth}
\usebeamercolor[fg]{institute}
\usebeamerfont{institute}\large{\vbox{\insertinstitute}}
%}
\end{center}\par
\end{centering}
}}
\hspace{0.02\paperwidth}
\hfill
\usebox{\mytmpbox}
\settoheight{\myboxht}{\usebox{\mytmpbox}}
%\vskip4ex%
\hfill
\smash{%
\begin{tikzpicture}
% \fill [red] (0,0) circle (1cm); % to find out where I'm at...
\node at (%
\ifportrait
0.93\textwidth%
\else%
0.95\textwidth%
\fi%
,0.015\paperheight) {\resizebox{!}{%
\ifportrait%
0.9\myboxht%
\else%
\myboxht%
\fi%
}{\usebox0}};
\pgfpointorigin
\begin{scope}
\pgfsetfading{horizontalfading}{\pgftransformshift{\pgfpoint{0.62\paperwidth}{0}}};
\fill [black] (0,-0.5\myboxht) rectangle (\paperwidth,-0.49\myboxht);
\end{scope}
\end{tikzpicture}
}}
}
[action]
{
}
\defbeamertemplate{headline}{FOR1807_empty}%this defines our headline with an empty badge
{
\pgfdeclarehorizontalshading{horizontalshade}%a gray horizontal gradient
{0.2\paperheight}{color(0)=(transparent!100); color(0.3\paperwidth)=(pgftransparent!20); color(\paperwidth)=(pgftransparent!0)}
\pgfdeclarefading{horizontalfading}
{\pgfuseshading{horizontalshade}}
\setbox0\hbox{
\begin{tikzpicture}
\clip (2\badgewt,\value{projecta} \badgeht) rectangle (3\badgewt,\value{projectb} \badgeht);
\pgftext[left,base]{\pgfuseimage{badges}};
\end{tikzpicture}
}
\vskip1pt\hskip2pt%
\hspace*{\cubewidth}
{\usebeamercolor[fg]{titlelike}\fontsize{10}{10}\selectfont\raisebox{0pt}[15pt]{\strut\insertframetitle}}%
\hfill
\vskip2pt
\vskip-20pt
\hskip\cubewidth
\begin{tikzpicture}
% \fill [red] (0,0) circle (2pt); % to find out where I'm at...
\node[scale=0.13] at (0.82\textwidth,0) {\phantom{\usebox0}};
\node at (0.85\textwidth,0.2\baselineskip) {\pgftext[right,base]{\normalsize Advanced Computational Methods}};
\node at (0.85\textwidth,-1.7\baselineskip) {\pgftext[right,base]{\normalsize for strongly Correlated Quantum Systems}};
\pgfpointorigin
\begin{scope}
\pgfsetfading{horizontalfading}{\pgftransformshift{\pgfpoint{0.52\paperwidth}{0}}};
\fill [black] (0,-0.3\cubeheight) rectangle (\paperwidth,-0.32\cubeheight);
\end{scope}
\end{tikzpicture}
}
\defbeamertemplate*{sidebar left}{FOR theme}
{
% \pgfdeclareverticalshading{verticalshade}%a gray vertical gradient
% {
% %1.5pt
% 0.2\paperwidth
% }{color(0)=(transparent!0);
% color(0.5\paperheight)=(pgftransparent!30);
% color(0.99\paperheight)=(pgftransparent!100)}
\pgfdeclarefading{verticalfading}
{\pgfuseshading{verticalshade}}
\hskip0.05\cubewidth
\begin{tikzpicture}
\ifthenelse{\boolean{hasuniversity}}{
% \fill [red] (0,0) circle (2pt); % to find out where I'm at...
\pgftext[left,x=0,y=0.1\paperheight,rotate=90]{\pgfuseimage{UniLogo}}%that way it looks OK on my laptop...
}%
{%
\pgftext[left,x=0,y=0.1\paperheight,rotate=90]{\strut}
}%
\begin{scope}
\pgfsetfading{verticalfading}{\pgftransformshift{\pgfpoint{0.32\cubewidth}{0.49\paperheight}}};
\fill [black] (0.305\cubewidth,0.99\paperheight) rectangle (0.32\cubewidth,0);
\end{scope}
\end{tikzpicture}
}
[action]
{
%\pgfdeclareimage[height=0.8\cubewidth,interpolate=true]{UniLogo}{../gfx/unilogobw.pdf}
}
\defbeamertemplate*{frametitle}{FOR theme}[1][left]
{
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
\@tempdima=\textwidth%
\advance\@tempdima by\beamer@leftmargin%
\advance\@tempdima by\beamer@rightmargin%
\vbox{}\vskip-.5\beamer@leftmargin%
\begin{beamercolorbox}[sep=\beamer@leftmargin,#1,wd=\the\@tempdima]{}
\usebeamerfont{frametitle}\usebeamercolor[bg]{framesubtitle}%
\vbox{}\vskip0ex%
\if@tempswa\else\csname beamer@fte#1\endcsname\fi%
%\strut\insertframetitle\strut\par%
{%
\ifx\insertframesubtitle\@empty%
\else%
{\usebeamerfont{framesubtitle}\usebeamercolor[bg]{framesubtitle} \insertframesubtitle\strut\par}%
\fi
}%
\vskip-1ex%
\if@tempswa\else\vskip-\beamer@leftmargin\fi
\end{beamercolorbox}%
\def\beamer@FOR@truetext{true}%
\ifx\beamer@FOR@titleline\beamer@FOR@truetext%
\vskip-.5\beamer@leftmargin%
\begin{beamercolorbox}[wd=\textwidth,ht=.1ex,dp=0ex]{linemid}%
\end{beamercolorbox}%
\fi
}
% Frame title continuations, default
\defbeamertemplate*{frametitle continuation}{FOR theme}{(\insertcontinuationcount)}
\defbeamertemplate*{sidebar right}{FOR theme}
{
\vskip.1\beamer@leftmargin%
\llap{\insertlogo\hskip.5\beamer@leftmargin}%
\vfill%
\if\beamer@FOR@watermark\@empty\else%
\llap{\includegraphics[height=\beamer@FOR@watermarkheight]{\beamer@FOR@watermark}}%
\vskip-\beamer@FOR@watermarkheightbottom%
\fi
}
%\resizebox{1.5\height}{!}{
%beginning of changes to the templates
\defbeamertemplate*{background canvas}{FOR theme}
{
\raisebox{0pt}[0pt][0pt]{%
\ifthenelse{\beamer@poster@loaded=0}%
{%No Poster
\raisebox{-0.95\cubeheight}{%
\begin{pgfpicture}%{0.0cm}{-\paperheight}{\paperwidth}{0.0cm} %somehow the result is only OK without the specification of the size
\pgfpathmoveto{\pgfpoint{0}{1cm}}%
%\pgfpathrectangle{\pgfpointorigin}{\pgfpoint{1cm}{1cm}}
\pgfuseshading{greysphere}%
%\pgfpointorigin%
%\pgftext[x=0.05\cubewidth,y=0\cubeheight,left,base]{\pgfuseimage{cube}}%it seems the coordinates here are relative...
%\pgftext[left,x=0.05\cubewidth,y=-0.75\paperheight,rotate=90]{\pgfuseimage{UniLogo}}%that way it looks OK on my laptop...
\end{pgfpicture}}%
}%
{%Branch for poster
\sbox{\mytmpbox}{%create a box with a representative of the title content
\vbox{
\vskip0.03\paperheight
\begin{centering}
\begin{tikzpicture}
\node at (0.,0.0) { \usebeamercolor[fg]{title}{
\usebeamerfont{title}\Huge
\begin{minipage}{\linewidth}\begin{center}\inserttitle\end{center}\end{minipage} } } ;
\end{tikzpicture}
%\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.01\paperheight%
% {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
{\fontfamily{fxb}\Large\selectfont\usebeamercolor[fg]{titlelike}\insertsubtitle\par}%
\fi%
\vskip0.01\paperheight\par
\begin{center}
\usebeamercolor[fg]{author}
\usebeamerfont{author}\large\insertauthor
\end{center}
\vskip1em
\begin{center}
\usebeamercolor[fg]{institute}
\usebeamerfont{institute}\large{\vbox{\insertinstitute}}
\end{center}
\end{centering}
\vskip4ex%
}}
\settoheight{\myboxht}{\usebox{\mytmpbox}}
%\fbox{
\resizebox{%
\ifportrait
0.62\myboxht
\else
0.65\myboxht
\fi
}{!}{%
\raisebox{%
-0.95\cubeheight
}{%
\begin{pgfpicture}%{0.0cm}{-\paperheight}{\paperwidth}{0.0cm} %somehow the result is only OK without the specification of the size
\pgfpathmoveto{\pgfpoint{0}{1cm}}%
%\pgfpathrectangle{\pgfpointorigin}{\pgfpoint{1cm}{1cm}}
\pgfuseshading{greysphere}%
%\pgfpointorigin%
%\pgftext[x=0.01\cubewidth,y=0\cubeheight,left,base]{\pgfuseimage{cube}}%it seems the coordinates here are relative...
%\pgftext[left,x=0.05\cubewidth,y=-0.75\paperheight,rotate=90]{\pgfuseimage{UniLogo}}%that way it looks OK on my laptop...
\end{pgfpicture}}%
}%