# TikZ in LyX - compiles, but acrobat says the pdf has an error [closed]

I'm using LyX. I'm trying to use TikZ for the first time (to draw graphs, specically - trees).

The LyX code compiles and the pdf is created, but when I open the pdf, Acrobat reader says:

Here's my LaTeX preamble:

\date{}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage[compact]{titlesec}
\titlespacing*{\section}{0pt}{*0}{0pt}
\usepackage{colortbl}
\definecolor{lightgray}{gray}{0.8}


and here's what I wrote inside the TeX box in the LyX editor:

\begin{tikzpicture}
\draw (0,0) -- (1,0);
\end{tikzpicture}


I get the same error message in acrobat even if I remove the \draw line and only leave the \begin and \end lines.

EDIT: Here are links to my PDF and LyX files:

I am using LyX 2.0.0, MiKTeX 2.9, Acrobat Reader 10.1.1 (all in Windows). I am writing in Hebrew.

-

## closed as too localized by percusse, lockstep, Martin Schröder, egreg, Andrew SwannMar 12 '13 at 15:22

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

No problem here when viewing output (compiling) in LyX 2.0.4 under Adobe Acrobat 9. What versions are you using? Your document show work when only including tikz. Does it still show errors when you drop everything else in your preamble but \usepackage{tikz}? Can you post the PDF file somewhere for download? Also, how about exporting the entire LyX file and posting that somewhere as well? –  Werner Oct 17 '12 at 3:45
@Werner: The error still shows if I only include tikz. I uploaded the files and indicated the versions I use in the edited post. –  user302099 Oct 17 '12 at 5:49
@user302099: Just a suggestion - does it still cause problems after an update of LyX (from 2.0.0 to 2.0.4)? –  Werner Oct 17 '12 at 13:58
@Werner: I will try. What should I do to update? Download LyX 2.0.4 and install it, or is there an internal update mechanism (I'm a little afraid to do that, because installing LyX with Hebrew took some effort). –  user302099 Oct 17 '12 at 14:51
@Werner: Did you try my pdf? Does it show an error message in your viewer too? –  user302099 Oct 17 '12 at 14:52