# Conflict between TikZ with decorations.text library, caption and booktabs packages and progressbar theme [duplicate]

Possible Duplicate:
No room for a new \dimen

I obtain an error when using simultaneously the above 4 elements. When removing one of them (which I do not wish), the output is fine.

\documentclass{beamer}
\usepackage{tikz}                 % 1
\usetikzlibrary{decorations.text} % 1
\usepackage{caption}              % 2
\usepackage{booktabs}             % 3
\usetheme{progressbar}            % 4

\begin{document}
\begin{frame}

\end{frame}
\end{document}


The progressbar theme comes from Sylvain Bouveret's webpage.

The error message output by pdfLaTeX is the following (LaTeX does not return any error):

*geometry* detected driver: pdftex
(/usr/local/texlive/2012/texmf-dist/tex/context/base/supp-pdf.mkii
! No room for a new \dimen .
\ch@ck ...\else \errmessage {No room for a new #3}
\fi
l.1253 \newdimen\MPscratchDim
% will be assigned global
?

-

## marked as duplicate by Axel Sommerfeldt, lockstep, Andrew Swann, Claudio Fiandrino, ThorstenFeb 1 '13 at 15:07

It works if XeLaTeX or TeX->PS->PDF route is used with warnings about fadings of TikZ. So one of them is eating up the dimen registers in the PDF driver. –  percusse Feb 1 '13 at 12:10
Welcome to TeX.sx! This seems to be a case already dealt with in No room for a new \dimen. If this solves your issue, please tell us, so that this question can be closed; otherwise, tell why the suggested workaround does not apply. –  egreg Feb 1 '13 at 12:20
Just after \documentclass{beamer}, add \usepackage{etex}. –  Paul Gaborit Feb 1 '13 at 12:36
Loading the etex package solves the issue, indeed. Thank you all. I am surprised that this minimal example saturates Pdftex. –  Jef Feb 1 '13 at 12:51

To use the extended pool for \dimen, you need to use the etex package:

\documentclass{beamer}
\usepackage{etex}
\usepackage{tikz}                 % 1
\usetikzlibrary{decorations.text} % 1
\usepackage{caption}              % 2
\usepackage{booktabs}             % 3
\usetheme{progressbar}            % 4

\begin{document}
\begin{frame}

\end{frame}
\end{document}

-
Thank you, that works! –  Jef Feb 1 '13 at 12:49
Your answer solved a slightly different problem. Thanks anyway. –  Dohn Joe May 7 '14 at 20:02