Sunday, September 26, 2010

How to update TikZ library

Sometime you need to update your TikZ library to contain new library files. Then you can do like this,
  1. Go to TikZ Build to find out the latest built version for TikZ.
  2. Download the tar package and extract it to some temporary place.

    ls pgfCVS2010-07-25_TDS.zip
    mkdir pgfInstallFile
    unzip pgfCVS2010-07-25_TDS.zip -d pgfInstallFile/
    doc/ tex/

  3. Go to /usr/share/texmf/tex/

  4. You have to replace the old pgf package file with the new file. You can copy

    cp -r $pgfInstallFile/tex/context/pgf/ /usr/share/texmf/tex/context/pgf/ ;
    cp -r $pgfInstallFile/tex/generic/pgf/ /usr/share/texmf/tex/generic/pgf/ ;
    cp -r $pgfInstallFile/tex/latex/pgf/ /usr/share/texmf/tex/latex/pgf/ ;
    cp -r $pgfInstallFile/tex/plain/pgf/ /usr/share/texmf/tex/plain/pgf/ ;

  5. After that, you can update the tex file configuration,

    texhash ;