I would like illustrate a deliberately overfull progressbar. I am using \progressbar
and tikz
, but the relative positioning (east
) is always off by a bit in the X direction and I don't know why. Consider the following example:
\documentclass{beamer}
\usepackage{progressbar}
\begin{document}
\begin{frame}
\begin{overprint}
\begin{tikzpicture}[remember picture]
\node<1-2> (progressbar) [inner sep=0,outer sep=0] {\progressbar[heightr=1, width=0.3\textwidth, emptycolor=white, filledcolor=red]{1}};
\end{tikzpicture}
\tikz[remember picture] \draw<2>[overlay] node at (progressbar.east) [inner sep=0,outer sep=0] {\progressbar[heightr=1, width=0.1\textwidth, linecolor=white!0, emptycolor=white, filledcolor=red, subdivisions=1, roundnessr=0]{1}};
\end{overprint}
\end{frame}
\end{document}
The first slide (cropped) looks like this:
The second slide (cropped) looks like this (note the second \progressbar
at around 85%, not 100):
How can I position the second \progressbar
relative to the first so that they don't overlap (disregarding the ugly white border)?