0

This question already has an answer here:

In the circuitikz package a specific element called sinusoidal voltage source is available (it is presented in the manual, page 18, first image).

The code (or part of it) is in the tex/pgfcircbipoles.tex inside the package. I tried to use it in a new document with tikz, but it doesn't work.

Is it possible to create and use this shape in tikz (that is: inside a \begin{tikzpicture}...\end{tikzpicture} block)? How?

marked as duplicate by Bobyandbob, Community Nov 23 '17 at 16:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Just \documentclass[10pt,a4paper]{article} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0) to[sinusoidal voltage source, o-o] (3,0); \end{circuitikz} \end{document} – Bobyandbob Nov 23 '17 at 14:33
  • @Bobyandbob Sorry, maybe my question was not clear enough. I don't want to use it in a circuitikz block, but in a tikz block. I edited the question to make it more clear. – BowPark Nov 23 '17 at 14:43
  • 1
    Ah. Then your problem should be solved with use circuitikz picture inside tikzpicture or Circuitikz symbols in TikZ circuit library. – Bobyandbob Nov 23 '17 at 14:46
  • @Bobyandbob Thank you, it works. If you want to write an answer, I'll choose it. – BowPark Nov 23 '17 at 14:57
  • Which link solved your problem? I will flag this as an duplicat. – Bobyandbob Nov 23 '17 at 15:16
0

Using command as "sV"

\documentclass{standalone}
\usepackage{circuitikz}

\begin{document}
    \begin{circuitikz}[american]
        \draw (0,0) to [sV, l={$v$}, i^>={$i$}](0,3) to (3,3) to [R, l={$R$}](3,0) to (0,0);

    \end{circuitikz}
\end{document}

enter image description here

  • Sorry, maybe my question was not clear enough. I don't want to use it in a circuitikz block, but in a tikz block. I just edited the question to make it more clear. – BowPark Nov 23 '17 at 14:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.