Skip to content
Snippets Groups Projects
Commit e7adfb1d authored by Vít Novotný's avatar Vít Novotný
Browse files

The logo is now added via the savebox mechanism rather than by including

the logo file at every page. This is considerably faster.
parent 1a2dd17a
No related branches found
No related tags found
No related merge requests found
......@@ -189,19 +189,27 @@
% The outer theme also culls the headline and replaces it with
% either a dark or light version of the faculty logo, based on the
% value of the |\iffibeamer@dark| conditional, which is controlled by
% the color theme.
% the color theme. The light and dark logos are kept in the
% \DescribeMacro{\fibeamer@logo@light}|\fibeamer@logo@light| and
% \DescribeMacro{\fibeamer@logo@dark}|\fibeamer@logo@dark|
% saveboxes, respectively.
% \begin{macrocode}
\newsavebox\fibeamer@logo@light
\savebox\fibeamer@logo@light{%
\includegraphics[width=\fibeamer@logowidth]{\fibeamer@logo-light}}
\newsavebox\fibeamer@logo@dark
\savebox\fibeamer@logo@dark{%
\includegraphics[width=\fibeamer@logowidth]{\fibeamer@logo-dark}}
\defbeamertemplate*{headline}{fibeamer}{%
\begin{tikzpicture}[overlay,remember picture]
\node[anchor=north east,xshift=-\fibeamer@logopad]
at (current page.north east) {
\ifthenelse{\boolean{fibeamer@dark}\OR\c@framenumber=0}{
\includegraphics[width=\fibeamer@logowidth]%
{\fibeamer@logo-dark}
}{
\includegraphics[width=\fibeamer@logowidth]%
{\fibeamer@logo-light}
}
at (current page.north east) {%
\ifthenelse{\boolean{fibeamer@dark}\OR\c@framenumber=0}{%
\usebox{\fibeamer@logo@dark}%
}{%
\usebox{\fibeamer@logo@light}%
}%
};
\end{tikzpicture}}
% \end{macrocode}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment