I have certain codes written in LaTeX with several diagrams in tikz-cd. I must compile these codes in other computer (with Ubuntu 12.04 LTS) and when I compile appear this error:

tikz-cd.sty not found

What should I do?

I have already tried downloading the tikz-cd.sty file and putting it in home/myuser/texmf and it doesn't work.

  • If you are not familiar with TDS (TeX Directory Structure), copy the file tikz-cd.sty in your current working directory. Apr 5 '15 at 6:23
  • @AkiraKakuto Thanks, but now a new wrror appears: "I can't find file tikzlibraryquotes.code.tex" but I haven't a file with that name in order to do the same. Do you know what should I do?
    – user
    Apr 5 '15 at 7:21
  • You have to install pgf-tikz. Please ask ubuntu people. Apr 5 '15 at 8:23
  • @AkiraKakuto I have already installed pgf-tikz. Last time I asked a question regarding a latex package in askubuntu I was asked to post that question here. So..
    – user
    Apr 5 '15 at 8:49
  • Did you create ls-Rs by sudo mktexlsr? Apr 5 '15 at 8:53

You got two possibilities:

  • Use Ubuntu repositories; install tikz-cd via the Ubuntu package managing, such as by

    sudo apt-get install texlive-pictures
  • Download from CTAN, but then you need to update the PGF package as well! Because tikz-cd requires TikZ 3.0, specifically its quotes library.

You could consider changing to a current original TeX Live. Staying with Ubuntu's TeX version is pretty safe, as long as you don't add packages with newer dependencies.


If you are using TexLive (mine is 2015), you may try the following commands:

sudo tlmgr install pgf
sudo tlmgr install tikz-cd

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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