2

I am making a beamer presentation using this outertheme based on the more famous progressbar outertheme.

It all works fine when I compile the first time:

enter image description here

However, when I compile the second time in order for the progressbar to show the actual progress based on the number of slides, the progressbar is raised from the bottom of the page:

enter image description here

Here's the MWE that generates the slide above:

\documentclass{beamer}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\useoutertheme{progressbarjma}

\begin{document}

\frame{Test slide 1}
\frame{Test slide 2}

\end{document}

Any idea why this might be?

poxx
  • 329
  • 1
    While you wait for an answer to this question, can you go back to your previous ones and look if the answers solve your problems and accept them, if they do? – samcarter_is_at_topanswers.xyz May 31 '18 at 10:59
  • They don't, except in one case where the answer is in the comments and I cannot accept it. – poxx May 31 '18 at 11:12
  • 1
    In that case, you can ask that user to post a proper answer. In the other cases, you do of course have the option of posting a comment explaining what is wrong with/missing from a given answer. – Torbjørn T. May 31 '18 at 11:31

1 Answers1

5

In line 454 of beamerouterthemeprogressbarjma.sty, add a % after \end{tikzpicture}. I.e. go from

\end{tikzpicture}

to

\end{tikzpicture}%

The tikzpicture itself is \paperwidth wide, the space made by the linebreak after \end{tikzpicture} seems to add a new line in the output, thus pushing the progressbar up. Adding the % gives this:

enter image description here

For more on end-of-line %, see What is the use of percent signs (%) at the end of lines?, Why the end-of-line % in macro definitions? and Where are the necessary places to be appended with % to remove unwanted spaces?

Torbjørn T.
  • 206,688