This question already has an answer here:

The following minimal example



gives the error

/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/modules/pgfmoduledecorations .code.tex:31: No room for a new \dimen . \ch@ck ...\else \errmessage {No room for a new #3} \fi l.31 ...\pgfdecoratedinputsegmentremainingdistance

This error is not produced if beamer or one of the three packages is not used. The relevant file list is:

  • beamer.cls 2013/12/02 3.33 A class for typesetting presentations (rcs-revision 332bfd3ce558)
  • booktabs.sty 2005/04/14 v1.61803 publication quality tables
  • empheq.sty 2014/07/16 v2.14 Emphasizing equations
  • pgfplots.sty 2014/08/04 v1.11 Data Visualization (1.11-3-g4c99d7a)

Does anyone know of a workaround?

marked as duplicate by egreg, percusse pgfplots Nov 7 '14 at 0:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Try with \usepackage{etex} before all? However probably empheq can be replaced with tcolorbox etc. ? – percusse Nov 7 '14 at 0:15