# How to use Circuitikz with TikZEdt

I'm using circuitikzt in TikzEdit, I have put \usepackage{circuitikz} in the setting, but in output I saw only node position ! I tried to simplify, but the problem persists.

In Log file I get : ! Package pgfkeys Error: I do not know the key '/tikz/R' and I am going to ignore it. Perhaps you misspelled it.

Code :

\begin{tikzpicture}
\draw (0,0) to [R, l_=$Z_1$,*-] (3,0);
\end{tikzpicture}

settings:

\documentclass{article}
\usepackage{tikz,amsmath, amssymb,bm}
\usepackage{circuitikz}
\usepackage[active,tightpage]{preview}
\usetikzlibrary{shapes,arrows.meta}
\PreviewEnvironment{tikzpicture}

• Hi! I never used TikZEdt, so I can help only a little --- did the .log file (wherever it could be) show any error? Jan 13 at 17:04
• As a wild guess, tikz uses xcolor, try to remove the loading of color... probably not that, but... Jan 13 at 17:05
• Moreover: 1) you are doing \pgfplotsset{compat=1.13} without loading pgfplots; arrows is deprecated (use arrows.meta); calc is loaded by circuitikz; european is a global setting and not a local one (use \circuitikzset{european} just once). Try to adjust that and comment back. BTW, next time add your code as text also, not only in an image. Thanks! Jan 13 at 17:30
• I tried to simplify, but the problem persists. In Log file I get : ! Package pgfkeys Error: I do not know the key '/tikz/R' and I am going to ignore it. Perhaps you misspelled it. \begin{tikzpicture} \draw (0,0) to [R, l_=$Z_1$,*-] (3,0); \end{tikzpicture} settings \documentclass{article} \usepackage{tikz,amsmath, amssymb,bm} \usepackage{circuitikz} \usepackage[margin=0cm,nohead]{geometry} \usepackage[active,tightpage]{preview} \usetikzlibrary{shapes,arrows.meta} \PreviewEnvironment{tikzpicture} Jan 13 at 18:06
• Please next time add the data to the question, no in comments... you can edit your question. It seems that circuitikz is not loaded. Try to prepare a small file and check it outside TikZEdt. Jan 13 at 18:12