{circuitikz} is a package for drawing electrical networks with TikZ.

learn more… | top users | synonyms

19
votes
8answers
9k views

Electric circuits in TeX, LaTeX, and Friends

What are some ways to draw electric circuits in TeX systems? I'm making this community wiki since I haven't found a question related to this. I was thinking along the lines of circuitikz. What do ...
4
votes
3answers
1k views

Including +/- signs to battery in Circuitikz

I'm attempting to draw a battery (using the battery1 component) that includes positive and negative signs at the appropriate ends. A previous question that was answered here (using version 2.4) shows ...
8
votes
2answers
3k views

Rotate voltmeter CircuiTikz

I'm using Latex and CircuiTikz to draw circuits but I can't rotate de voltmeter without making a disaster. Any idea? Here is an example. \begin{circuitikz} \draw (0,0) to[ammeter] (3,0) to ...
7
votes
1answer
2k views

Relationship between tikz circuit library and circuitikz?

Is there any relationship between tikz circuit library and circuitikz, for example that one is build on top of the other. Are they compatible in some way? Is one of them in some way obsolete?
3
votes
2answers
1k views

Does a workaround or solution exists for the label conflict of circuitikz and TikZ?

I would like to use circuitikz with TikZ. However, I find that circuitikz modifies or does not recognize TikZ labels. The author of circuitiz has commented that in the "released version of CircuiTikz ...
12
votes
3answers
20k views

Drawing circuit diagrams (with logic gates) in LaTeX

I'm having some difficult drawing circuit diagrams with logic gates in LaTeX. I've tried with circuitikz and pst-circ. \begin{pspicture}(-1,-1)(5,3) \logicand[ninputs=2,invertinputa=true, ...
9
votes
2answers
3k views

AC source symbol in TikZ circuits.ee.IEC library

I can draw an AC source manually: \begin{tikzpicture} \draw (0,0) sin (1,1) cos (2,0) sin (3,-1) cos (4,0); \draw (2,0) circle (2.5); \end{tikzpicture} How do I declare an ACsource symbol so ...
5
votes
1answer
2k views

Circuitikz place text above and below component

Lets say I create a component like this (0,0) to [R, l^=$R1$] (0,2) How can I make it so that the value, R1, is say, on the right hand side, and the resistance, say, 1kohm is on the left hand side? ...
9
votes
1answer
1k views

Set label name on two lines in CircuiTikZ

I'm a very beginner in using circuitikz in my tex documents. I'd like to obtain a label that shows both the part name and the component value. Looking in this forum I found this solution: ...
11
votes
2answers
3k views

CircuiTikZ — create new component

How can I create a new component and include it in CircuiTikZ? For example a 4 bit adder?
2
votes
1answer
3k views

3-input logic gate on circuitikz

How can I draw a 3-input logic gate with circuitikz? Is there a way to do so? For example, \begin{circuitikz} \draw (0,0) node[and port](myand){} (myand.in 1) node[left]{A} (myand.in 2) ...
8
votes
3answers
2k views

Circuitikz doesn't recognize units

For example when I use \ohm or \micro it throws an error. For example, in the MWE: \documentclass{article} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0) to ...
5
votes
2answers
811 views

How to plot quantum logical gates with tikz?

I have seen many examples of classical circuit with tikz but none of quantum logical gates. Here are some of the quantum logical gates A whole circuit maybe look like
3
votes
2answers
1k views

Spacing circuit element labels from their elements with CircuiTikz

I want to draw a resistor with a resistance value showing and a voltage label showing as well. This is content-wise an MWE of everything I want: \documentclass{article} ...
1
vote
2answers
437 views

Making FFT Figure using LaTeX Tikz

I've been writing a paper on the FFT, and need to implement an image showing the basic premise of the 2-radix algorithm used. The image I want to create using Tikz is as follows. However, I've hardly ...
7
votes
1answer
1k views

Compiling CircuiTikZ with -shell-escape (pdflatex)

I'm trying to use both CircuiTikZ and pgfplots. In order not to overflow LaTeX memory, I use the TikZ externalize library with -shell-escape command in pdfLaTeX. It compiles the pgfplots nicely, but ...
6
votes
1answer
782 views

Voltage labels too close to circuit element with circuitikz 2.4

Since upgrading to circuitikz 2.4, I noticed that the voltage labels are way too close to the circuit elements. For example: \documentclass{article} \usepackage[american ...
5
votes
1answer
3k views

Voltage sign convention (European vs. American) in Circuitikz

This time I dive into Circuitikz. Anyway, I've got a problem with the american and european styles of e.g. voltages. IIRC Voltage drops are counted positive which means the voltage arrow in the ...
4
votes
2answers
1k views

Lining amplifiers up in circuitikz

I'm struggling to get amplifiers to sit nicely in my circuits. Here's the code: \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{circuitikz} \begin{figure}[H] \centering ...
3
votes
2answers
351 views

Circuitikz american controlled voltage signs

Hello, friends. Well, a picture is worth a thousand words. I would like the behavior on the left rather than on the right, the latters are CircuitTikZ defaults. A helpful guy helped me to do it with ...
3
votes
4answers
3k views

Battery symbol in circuitikz [duplicate]

Is it possible to make circuitikz draw battery-symbols like this:
2
votes
1answer
509 views

Miktex 2.9 pgfplots, circuitikz library collision problem [duplicate]

In my book, I use both libraries. After Miktex update yesterday evening (circuitikz ver 0.3 pgfplots 1.11), I have problem with compiling following code: \documentclass{article} \usepackage{tikz} ...
1
vote
1answer
296 views

Can I use the circuitikz tripole shapes without loading the complete circuitikz package?

I'm using the tikz circuit library for my drawings. But I just realized that I need Transistors. These exist for circuitikz, but not in the tikz library. Is there a way to only use the circuitikz ...
11
votes
2answers
1k views

Diagonal Resistor Label Font Size and Curved Arrows

I'm trying to draw a Wheatstone Bridge and this is the code I have so far: \documentclass[12pt]{article} \usepackage[americanvoltages,fulldiodes,siunitx]{circuitikz} \usepackage[pdftex]{graphicx} ...
8
votes
1answer
2k views

Scaling components in CircuiTikz

I would like to know how to scale a single component in CircuiTikZ. There are several possibilities to scale paths, a hole diagram, etc., but I didn't find a way to do so with a single component. ...
7
votes
2answers
2k views

CircuitTikZ - Combine Tripoles with resistors

I'm just learning how to use CircuitTikZ to draw circuits, and I am trying to draw a good looking BJT biasing circuit. But I am having making the resistors across from each other look even, and since ...
4
votes
1answer
252 views

New component in circuitikz

I want to create a new element to use in a circuit diagram. So far I have used CircuiTikz for the circuit diagram, but I am not familiar with the low level PGF commands that defines the standard ...
4
votes
1answer
1k views

Complicated logic circuit drawing with Tikz - two input buffer gate?

i'm trying to draw similar image with Tikz and Circuit Library, so far i'm stucked at drawing buffer gate with two labeled inputs (IBUFGDS and IBUFDS), standard library have a gate with only one ...
9
votes
2answers
589 views

Circuitikz inverter bubble

I'm using circuitikz to create some logic gate diagrams. In my course we use "inversion bubbles" as a convenient shortcut instead of drawing inverters everywhere. As in inputs A and B in this image: ...
6
votes
3answers
1k views

Use circuitikz voltage source icon as a node

I'm using circuitikz to draw a single line diagram: But I have no idea how to get rid of the line on top of the voltage source. Is there a simple way to do it? Here's my current code: ...
6
votes
1answer
3k views

Circuitikz - IC circuit with relative coordinates

I've represented an IC circuit using circuitikz, but it's a bit too rough to what I prefer. In particular I would like to use relative coordinates in this case and connect them to the ``IC device'' so ...
6
votes
1answer
4k views

Scaling in CircuiTikZ

When scaling a circuit with the scale option: \begin{circuitikz}[scale = 'some_scale_factor'] all the coordinates are well scaled but not the components. How to correctly scale the whole scheme?
5
votes
1answer
598 views

Is there a predefined bandpass filter block in tikz?

I want to create this block diagram. \documentclass{article} \usepackage{tikz} \usepackage{circuitikz} \usepackage{pst-solides3d} \usetikzlibrary{shapes,decorations} ...
5
votes
2answers
2k views

Labeling a circuit element with its symbol and value on both sides

I have modified the circuit code given in Voltage sign convention (European vs. American) in Circuitikz to serve my presentation in circuit making. However, I am unable to change the voltage source ...
4
votes
1answer
6k views

Block Diagrams in TikZ

for my thesis i need to put some block diagrams in my LaTeX document. I was recommended to use TikZ for that. This is the only sample code i could find. Do you guys maybe have some tutorials / doc ...
3
votes
2answers
179 views

How to center a circuitikz figure

I want to center the following code: \documentclass{article} \usepackage[european]{circuitikz} \usepackage{amsmath} \begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ...
3
votes
1answer
2k views

straight voltage arrows in circuitikz

I want straight voltage arrows in circuitikz, but all are bowed. Someone has a new solution? The bowed arrows are totally ugly. \documentclass[a4paper,10pt]{scrartcl} \usepackage{tikz} ...
3
votes
1answer
2k views

Circuitikz label in middle of open circuit

I've just started using Circuitikz and and I'd like to know how one would go about getting a label say, 'v', in the middle of the open circuit (perhaps with a plus and minus either side of it). Also, ...
2
votes
1answer
2k views

circuit schematic symbol for buffer with control input

circuitikz has an op amp component type with two inputs, output, and up and down ports, usually used for power supply rails. There's also a buffer component type (which I think is provided by tikz ...
9
votes
2answers
3k views

How to combine two dipole and tripoles efficiently in circuitikz?

I'm trying to learn how to use circuitikz to draw some circuit diagrams. So far it is going pretty well, except that now I've run into a problem when trying combine dipole circuit elements (such as ...
8
votes
1answer
5k views

Circuitikz symbols in TikZ circuit library

Some time ago, I asked about Relationship between tikz circuit library and circuitikz?. wh1t3 wrote: "However, as far as I know there is nothing the circuitikz package does that the TikZ circuit ...
6
votes
1answer
311 views

Transform/Mapping of path in asymptote

I have recently started using asymptote for some plotting and drawings for my research. I have however stumbled upon something that I would like to do - but I don't know if it is possible. I have a ...
5
votes
2answers
564 views

Help with my tikz circuit

Im trying to implement the circuit in the picture, my attempt is ordinary. Any help improving would be appreciated. \documentclass[border=10pt]{standalone} ...
5
votes
1answer
3k views

Different switch symbols in circuitikz?

I'm wondering if there are other commands associated with the switch symbol so that one doesn't have to specify if the switch is open or closed. I would like the switch symbol with two connectors and ...
4
votes
1answer
641 views

How to rotate Circuitikz circuit as a whole?

I've drawn a circuit path using CircuiTikZ library. Now I want to rotate the circuit as a whole. The nodes of circuit are transform correctly. However the circuit elements do not get rotated at all. ...
4
votes
2answers
308 views

error while drawing currents in circuitikz

This is my first complete circuit in circuitiks. I'm trying to draw a circuit to show Kirchoff's Law. I was able to draw the nodes and voltages, but putting currents with arrow is giving me trouble. ...
4
votes
1answer
243 views

circuitikz label malfunction

This may be a total newbie problem, but I cannot find a single reference of this behaviour anywhere I look and thus this question: This is my code: \documentclass{article} ...
4
votes
1answer
3k views

Creating custom electronic components in TikZ

In Tikz there is an opportunity to draw logical gates,... I was wondering if it is possible (and easy) to make custom components, like a CMOS-transistor, a Multiplexer, flip-flop,... Perhaps these ...
3
votes
1answer
851 views

How to put a label on a wire using CircuiTikz

I would like to put a label on a short circuit element. I have tried something like this: \draw (2,2) to [short=$L = \lambda/4$, *-*] (5.5,2) (2,0) to [short, *-*] (5.5,0); but ...
3
votes
2answers
1k views

Circuitikz: polar capacitor terminals polarity labels are wrong

When using circuitikz to draw some circuit pictures, I noticed that the terminal polarity labels are incorrect (I believe) for polar capacitors. Consider the following: \documentclass{article} ...