0

I'm just learning circuitikz and I'm trying to draw just simple elements, such as :

\draw (0,0) to [V=$V$] (0,2);

And all I'm getting is the label (V) displayed, and not a voltage source.

I thought I might be doing something wrong, so I took some simple circuitikz code (from the circuitikz manual), and pasted it straight into my document (required some reformatting) and still got nothing. I'm defining circuitikz in my preamble and I'm not getting any errors. It may be a newb error, or even an installation problem (just installed tex live 2015), but I can't figure it out.

4
  • 4
    Please give us a compilable code. We can not guess how you are entering that snippet you gave us to your main document.
    – LaRiFaRi
    Commented Sep 15, 2015 at 15:17
  • 6
    This should work for you : \documentclass{article} \usepackage{circuitikz} \begin{document} \begin{circuitikz}[american voltages] \draw (0,0) to [V=$V$] (0,2); \end{circuitikz} \end{document}. If not give a MWE.
    – user11232
    Commented Sep 15, 2015 at 15:21
  • Nope - Just a math mode capital v in the middle of the page Commented Sep 15, 2015 at 18:34
  • @HarishKumar may not have seen that comment, as you didn't use a @-ping as I did here (in general only owners of posts are notified of comments). This is a long time ago, did you figure it out? If not, do you generate the PDF directly, or are you looking at a DVI? Commented Sep 1, 2016 at 10:44

1 Answer 1

2

I took your code snippet and created a MWE, which works perfectly fine for me.

\documentclass{article}
\usepackage{circuitikz}

\begin{document}
    \begin{circuitikz}
        \draw
            (0,0) to [V=$V$] (0,2)
        ;
    \end{circuitikz}
\end{document}

Try updating your packages by going to the MiKTeX Update (Admin). (Just press the windows key and search for "update", it'll pop up.)

2
  • 1
    About the updating, he's using TeX Live, not MikTeX. But anyway, How do I update my TeX distribution? is probably a useful reference with regard to updating. Commented Sep 1, 2016 at 10:39
  • @TorbjørnT. Oh, oops, my bad. I missed that little fact there.
    – Abby
    Commented Sep 1, 2016 at 10:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .