I'm a Latex newbie just trying to get to grips with TikZ, using Kile on OpenSuSE 11. I am working through the pgfmanual and after some early successes I am now hitting a brick wall. The following code:
Code: Select all
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\tikzset{grid1/.style=very thin,color=blue!50}
\tikzset{axis1/.style=thin}
\draw[grid1] (-1.4,-1.4) grid (1.4,1.4);
\draw[axis1] (-1.5,0) -- (1.5,0);
\draw[axis1] (0,-1.5) -- (0,1.5);
\draw (0,0) circle (1cm);
\end{tikzpicture}
\end{document}
tikz1.tex => tikz1.dvi (latex)
[LaTeX] finished with exit status 1
tikz1.tex:7:Undefined control sequence. \tikzset
tikz1.tex:8:Undefined control sequence. \tikzset
tikz1.tex:9:Package tikz Error: I do not know what to do with the option ``grid1''. \draw[grid1]
tikz1.tex:10:Package tikz Error: I do not know what to do with the option ``axis1''. \draw[axis1]
tikz1.tex:11:Package tikz Error: I do not know what to do with the option ``axis1''. \draw[axis1]
[/quote]
Any help would be greatly appreciated.
Sandy