Commit 1e3e7ae5 authored by Cédric Ware's avatar Cédric Ware
Browse files

Fix navigation symbols, implement align option.

parent dd8ea404
......@@ -37,8 +37,19 @@
\newif\iftpt@logoipp\tpt@logoippfalse
\tptthemekeys{%
infolines/.is if=tpt@infolines,
navsymbols/.is if=tpt@navsymbols,
nonavsymbols/.style={navsymbols=false},
navsymbols/.is choice,
navsymbols/.default=left,
navsymbols/left/.style={navsymbols enable,navsymbols align=left},
navsymbols/right/.style={navsymbols enable,navsymbols align=right},
navsymbols/center/.style={navsymbols enable,navsymbols align=center},
navsymbols align/.store in=\tpt@navsymbols@align,
navsymbols align={},
navsymbols enable/.code={%
\setbeamertemplate{navigation symbols}[default]%
\tpt@navsymbolstrue},
nonavsymbols/.code={%
\setbeamertemplate{navigation symbols}{}%
\tpt@navsymbolsfalse},
titleaffiliation/.is if=tpt@titleaffiliation,
affiliation/.is if=tpt@affiliation,
logosaclay/.is if=tpt@logosaclay,
......@@ -256,7 +267,7 @@
}
\defbeamertemplate*{sidebar right}{tpt default} {}
\defbeamertemplate*{sidebar right}{tpt default}{}
%
......@@ -330,20 +341,21 @@
\newsavebox\tpt@tempbox
\defbeamertemplate*{footline}{tpt default}{%
%
% On commence par typesetter le logo.
% On commence par typesetter le logo pour calculer la largeur restante.
\sbox\tpt@tempbox{\insertlogo\insertAffLogo}%
\setlength\@tempdima{\dimexpr \paperwidth - \wd\tpt@tempbox}%
%
% FIXME nav symbols
%
\iftpt@navsymbols\vskip 2pt%
\begin{beamercolorbox}[left, wd=.9\paperwidth, ht=\footlineheight]{}
\begin{beamercolorbox}%
[wd=\@tempdima,\tpt@navsymbols@align]{navigation symbols}
\usebeamertemplate***{navigation symbols}%
\end{beamercolorbox}
\vskip -14pt%
\fi
\leavevmode
\mbox{%
\tptbottomboxes{\dimexpr \paperwidth - \wd\tpt@tempbox}%
\tptbottomboxes{\@tempdima}%
\hspace*{\footlinespacing}%
\hfill%
\smash{\raisebox{\tptfooterlogoyshift}{\usebox{\tpt@tempbox}}}%
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment