2

This question already has an answer here:

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

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.

  • 3
    give a small example which shows the option clash – user2478 Aug 8 '14 at 18:14
  • 3
    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
  • 1
    \usepackage{etex} – user2478 Aug 8 '14 at 19:49
3

As Herbert pointed out in his comment, adding

\usepackage{etex}

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.