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 @@ ...@@ -37,8 +37,19 @@
\newif\iftpt@logoipp\tpt@logoippfalse \newif\iftpt@logoipp\tpt@logoippfalse
\tptthemekeys{% \tptthemekeys{%
infolines/.is if=tpt@infolines, infolines/.is if=tpt@infolines,
navsymbols/.is if=tpt@navsymbols, navsymbols/.is choice,
nonavsymbols/.style={navsymbols=false}, 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, titleaffiliation/.is if=tpt@titleaffiliation,
affiliation/.is if=tpt@affiliation, affiliation/.is if=tpt@affiliation,
logosaclay/.is if=tpt@logosaclay, logosaclay/.is if=tpt@logosaclay,
...@@ -256,7 +267,7 @@ ...@@ -256,7 +267,7 @@
} }
\defbeamertemplate*{sidebar right}{tpt default} {} \defbeamertemplate*{sidebar right}{tpt default}{}
% %
...@@ -330,20 +341,21 @@ ...@@ -330,20 +341,21 @@
\newsavebox\tpt@tempbox \newsavebox\tpt@tempbox
\defbeamertemplate*{footline}{tpt default}{% \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}% \sbox\tpt@tempbox{\insertlogo\insertAffLogo}%
\setlength\@tempdima{\dimexpr \paperwidth - \wd\tpt@tempbox}%
% %
% FIXME nav symbols % FIXME nav symbols
% %
\iftpt@navsymbols\vskip 2pt% \iftpt@navsymbols\vskip 2pt%
\begin{beamercolorbox}[left, wd=.9\paperwidth, ht=\footlineheight]{} \begin{beamercolorbox}%
[wd=\@tempdima,\tpt@navsymbols@align]{navigation symbols}
\usebeamertemplate***{navigation symbols}% \usebeamertemplate***{navigation symbols}%
\end{beamercolorbox} \end{beamercolorbox}
\vskip -14pt%
\fi \fi
\leavevmode \leavevmode
\mbox{% \mbox{%
\tptbottomboxes{\dimexpr \paperwidth - \wd\tpt@tempbox}% \tptbottomboxes{\@tempdima}%
\hspace*{\footlinespacing}% \hspace*{\footlinespacing}%
\hfill% \hfill%
\smash{\raisebox{\tptfooterlogoyshift}{\usebox{\tpt@tempbox}}}% \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