1

I am trying to create pictures of graphs in TikZ in which I'd like some edges to be dashdotted. I am using TeXShop on both my office computer (Mac) and my personal laptop (Mac), and the file is compiling fine on my office computer but when I try to compile the same file on my laptop, I am getting the following error:

Package pgfkeys Error: I do not know the key '/tikz/dashdotted' and
I am going to ignore it. Perhaps you misspelled it...

I reinstalled the latest version of MacTex on my laptop to see if this fixed the problem, but it has not.

Here is the code I have in my test document which will not compile:

\documentclass{article}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\draw[dashdotted] (0,0)--(10,0);
\end{tikzpicture}

\end{document}
12
  • 1
    Which version of PGF/TikZ do you have on your Laptop? Check with \pgfversion. Mar 8, 2013 at 19:42
  • I have 2.00-cvs.
    – Alyson B
    Mar 8, 2013 at 19:57
  • On the office computer I have version 2.10, if that helps.
    – Alyson B
    Mar 8, 2013 at 19:59
  • That’s an old CVS version. I guess you installed that manually a long time ago in a local texmf tree. Delete it and compile your document again. Maybe you need to update PGF/TikZ then, too. Either way, the current version is 2.10. Mar 8, 2013 at 20:02
  • Great. How would I locate that old version to delete it?
    – Alyson B
    Mar 8, 2013 at 20:04

0

Browse other questions tagged .