## LaTeX forum ⇒ Others ⇒ pgf | Installation of Package and Libraries on PCTeX

Information and discussion about other TeX distributions not listed above; installation, administration; field reports
ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am

### pgf | Installation of Package and Libraries on PCTeX

When I try to typeset the following document:
1. \documentclass[11pt]{article}
2. \usepackage[T1]{fontenc}
3. \usepackage{tikz}
4. \usetikzlibrary{matrix}
5.
6. \begin{document}
7. \begin{tikzpicture}
8. \matrix (matrix) [
9. matrix of nodes,
10. nodes in empty cells,
11. nodes={anchor=center,minimum size=2em},
12. row sep=0em
13. ]{
14. a & |[draw]| \\
15. b & |[draw]| \\
16. c & |[draw]| \\
17. d & |[draw]| \\
18. };
19. \end{tikzpicture}
20. \end{document}

Using PCTeX, I get the following error:
1. ! Undefined control sequence.
2. l.875 \pgfsetsnakesegmenttransformation
3. {\pgf@snake@mirror\pgf@snake@raise}

And the file named "tikz.code" opens in editor. Why is this happening?

Stefan Kottwitz
Posts: 9403
Joined: Mon Mar 10, 2008 9:44 pm
Your version of tikZ is too old, update it.

Stefan

ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am
And how can I do that?

but I didnt fund anything that could help me.

Stefan Kottwitz
Posts: 9403
Joined: Mon Mar 10, 2008 9:44 pm
Since you use PCTeX, refer to the PCTeX documentation for how to install a package. I can tell it just for free TeX distributions, such as MiKTeX and TeX Live. You use a commercial TeX, for which you can expect support by the publisher or distributor, regarding it's TeX software maintainance.

Stefan

ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am
I know that, where can I(if I can) find file on internet?

Stefan Kottwitz
Posts: 9403
Joined: Mon Mar 10, 2008 9:44 pm
Have a look at http://www.pctex.com/. There, click on "Support" and there "Installation" or "PCTeX Forums" to get support.

Stefan

ditka
Posts: 85
Joined: Fri Jul 13, 2012 11:59 am
I know that, I have tikz.code file in the same data as my other documents, and if I want to update it I proably need new one.

I think the editor type has nothing with that.

Stefan Kottwitz
Posts: 9403
Joined: Mon Mar 10, 2008 9:44 pm
ditka wrote:I think the editor type has nothing with that.

PCTeX is not just the editor. It contains an editor, but it is a complete TeX system with its own package management. That's why it's needed to integrate pgf with PCTeX. It's not just copying tikz.code into your directory. pgf is a complex package with a lot of files sorted in folders which go to different places in the TeX directory structure.

If you cannot use PCTeX features for installing, you can download and manually install the pgf tds file. Have a look at Downloading and Installing Packages. There's a nice explanation.

With TeX Live or MiKTeX, instead of PCTeX, it's just a few clicks in the package manager.

Stefan