# Option clash between TikZ, psplot, geometry, and hyperref [duplicate]

I know someone who is working on a LaTeX document requiring pst-plot, geometry, and hyperref, and I recently gifted him some TikZ improvements of diagrams that didn't seem to be working out for him.

However, TikZ is clashing with the other packages, hyperref being the most critical. How does one circumnavigate around such an obstacle without sacrificing much?

Edit: Minimal example:

\documentclass[z,11pt]{amsart}
\usepackage{pst-plot}
\input xy
\xyoption{all}
\usepackage{mathptmx,tikz}
\usetikzlibrary{matrix,arrows}
\begin{document}
Test
\end{document}


The error produced seems to be

/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code
.tex:19: No room for a new \dimen .
\ch@ck ...\else \errmessage {No room for a new #3}
\fi
l.19 \newdimen\tikz@lastxsaved


## marked as duplicate by egreg, Svend Tveskæg, user13907, Guido, Stefan Kottwitz♦Aug 8 '14 at 21:26

• In general, TiKZ, geometry, PSTrick and hyperref coexist happily: we are going to need some form of examples to help here. – Joseph Wright Aug 8 '14 at 18:35
• \usepackage{etex} – user2478 Aug 8 '14 at 19:49
\usepackage{etex}

directly after the line with \documentclass solves the problem. This answer explains why this works.