Tag Info

New answers tagged

1

As far as I can see, the cause of the original error message was the auto option, which seems to be incompatible with the way currents are typeset in circuitikz. I ran into the same problem and had to debug for quite some time before I found out that the culprit was a \tikzset{auto} that I had in the file header, that I needed for a number of other tikz ...


1

You are missing the to in line 10: (0,2) to [V=20<\volt>] (2,2); %%%% draw a voltage source


1

Not a solution but my words on this. I also use MiKTeX 2.9 on my windows machine and updated MiKTeX 2 days ago via the MiKTeX update manager. Your MWE compiles fine for me. I added a \listfiles in the preamble of your MWE and show you the output in the log file: *File List* article.cls 2007/10/19 v1.4h Standard LaTeX document class size10.clo ...


3

To determine the direction of the arrow, the package takes into account how the path has been set up. In the current case you draw the path from (0,0) towards (0,2) hence the arrow points to the last coordinate. To have it in the other direction, thus you may want to use: \draw (0,2) to [voltage source, v=$\underline{U}_{in}$] (0,0) ; This leads ...


2

For the arrows, you can use three small 'short' segments to put the arrows on the nodes: \begin{circuitikz} \draw (0,4) to [R, l=R1] (2,4) to [short, -*, i=$I_1$] (3,4) to [short, i<=$I_2$] (4,4) to [R, l=R2] (6,4) (3,4) to [short, i=$I_3$] (3,3) to [R, l=R3] (3,1) ; \end{circuitikz} I'm not sure I understood the label problem. I use a lx label, ...


0

qasm2png is looking for /bin/csh to interpret the code but it seems that this does not exist on your system. This is almost certainly because you do not have csh installed. You can install it using Ubuntu's package manager. The package might be called something like tcsh rather than csh. (On my system /bin/csh is provided by tcsh which is an ...


0

Two possibilities: Give the shell a path to work from or add the QASM directory to your PATH environment variable: $ ./qasm2png samples/test1.tex Your editor is incorrectly configured. Please provide your editor and its QASM-related settings.


5

try (using TikZ for red arrow with text): \documentclass[12pt,tikz,border=3mm]{standalone} \usepackage{circuitikz} %---------------------------------------------------------------% \begin{document} \begin{circuitikz}[american, scale = 0.7, transform shape]%\shorthandoff{<>} \draw (0,0) to[R, l = $R_1$] (0,3) to [short] (2,3) to ...


0

The swap gate is implemented using two bipoles. The disadvantage is that you have to add a line between the two centers. The advantage is that you don't have to worry about how far apart they are. I moved the default label location to the bottom so as to avoid the control anchor. \documentclass{standalone} \usepackage{circuitikz} \newlength{\ResRight} ...


2

Inspired by the code given by @qubyte HERE and after adding some new quantum logic gates and patience, drawing the plot is possible. Information: more inform Code \begin{document} \begin{tikzpicture}[thick] % `operator' will only be used by Hadamard (H) gates here. % `operator2' is for large U gates % `phase' is used for controlled phase gates ...



Top 50 recent answers are included