I updated my Ubuntu to the newest version 11.10 recently. Today when I use PGF again, i find many of my old examples cannot compile. It always give the error information as:
! Package PGF Math Error: The function `reciprocal' already exists.
See the PGF Math package documentation for explanation.
Type H <return> for immediate help.
...
l.156 ...@\pgfmath@reciprocaltemp0000000\pgfmath@}
! Package PGF Math Error: The function `div' already exists.
See the PGF Math package documentation for explanation.
Type H <return> for immediate help.
...
l.212 }
! Package PGF Math Error: The function `mod' already exists.
See the PGF Math package documentation for explanation.
Type H <return> for immediate help.
...
l.228 }
Does anyone have the same problem?
EDIT: I have followed the suggestions by many people here that I have installed TeXLive 2011 manually and updated the path, and logout and login again. The sad thing is that the problem still exists. I am wondering whether the problem really comes from the TeXlive 2009? 🙁
Best Answer
You could update your PGF version, either
If the problem persists, check which related packages you are using, such as
pgfplots
, which could cause the problem. Identify (by commenting out) and update, if necessary, to get a version which is compatible to your PGF version.Note that the tlcontrib texlive repository has an up to date version of pgf-cvs but you cannot use it for two reasons:
tlmgr
is disabled with debian/ubuntu packaged texlive;