Instead of slide numbers, I find it very nice to have something like a unobtrusive progressbar at the bottom which grows each slide about (width of screen)/(slide numbers).
I've found here (page in German) the following code snippet:
%%-----------------------------------------------------------------------
%% progress bar in footline
%% http://www.mrunix.de/forums/showpost.php?p=316577&postcount=3
%% -----------------------------------------------------------------------
\definecolor{lightgr}{rgb}{0.7 0.7 0.7}
\makeatletter
\addtobeamertemplate{footline}{%
\color{lightgr}% to color the progressbar
\hspace*{-\beamer@leftmargin}%
\rule{\beamer@leftmargin}{2pt}%
\rlap{\rule{\dimexpr
\beamer@startpageofframe\dimexpr
\beamer@rightmargin+\textwidth\relax/\beamer@endpageofdocument}{1pt}}
% next 'empty' line is mandatory!
\vspace{0\baselineskip}
{}
}
It work fine in the beginning, but after I added a certain number of frames, suddenly it caused the following error message:
! Dimension too large.
<argument> ...amer@rightmargin +\textwidth \relax
/\beamer@endpageofdocument
l.517 \lyxframeend
It took me several hours to figure out that the progress bar caused the error message, because it is thrown only when I add certain images. But I couldn't figure out any system, when there is an error and when not. Sometimes it is possible to add new frames without problems, sometimes not. Sometimes when I use pdfpages to add a page the error occurs.
I use LyX (as you can see) and the Pittsburgh theme, but I suppose such a (running) progress bar snippet would be interesting for many users (also those with other themes and without LyX).
A screenshot of a frame to illustrate the result:
My Questions:
- Is there a way to get this code more stable and compatible with any theme?
- Would it be easy to turn this into an package?
- How can I change the
\beamer@startpageofframe
to the real PDF page number? (Otherwise there are quite big and sudden jumps of the progressbar.)
(Please comment if I should provide more information, e.g. my whole LyX file.)
Best Answer
Here you have some customizable progress bars (part of a project I am working on):
And a close-up image of the bar:
Two little variations; first using a circle as progress indicator:
And the close-up:
And now using a triangle as progress-indicator (inspired by the theme Ignasi mentioned in his answer):
And the close-up: