TransWikia.com

draw circuitikz

TeX - LaTeX Asked by Juliperezor on August 19, 2021

enter image description here

enter image description here

Hello friends, could you helpme? I need to draw this circuits but I dont know, thanks for your help.

2 Answers

As starting point:

documentclass{article}
usepackage{circuitikz}

begin{document}

begin{tikzpicture}
draw   (0,0)       to [short,o-] ++ (1,0) node[right] (p) {$p$}
        (p.east) -- ++ (1,0) node[right] (q) {$q$}
        (q.east)    to [short,-o] ++ (1,0);
end{tikzpicture}


begin{tikzpicture}
draw   (0,0)   to [short,o-] ++ (1,0) coordinate (a)
        (a) |- ++ (1, 0.5) node[right] (p) {$p$}
        (p.east) -| ++ (1,-0.5) coordinate (b) 
        (b) to [short,-o] ++ (1,0)
        (a) |- ++ (1,-0.5) node[right] (q) {$q$}
        (q) -| (b);
end{tikzpicture}

end{document}

enter image description here

Edit: Considered is @rmano comment.

Answered by Zarko on August 19, 2021

An alternate way of doing the same. It's mostly tikz. The node shape node[ocirc]{} from circuitikz is used.

documentclass[border=3mm]{standalone}
usepackage{circuitikz}
begin{document}
begin{circuitikz}
draw
(0,0)node[ocirc]{} 
-- node[fill=white]{$p$} ++(2,0)
-- node[fill=white]{$q$} ++(2,0)node[ocirc]{}

(0,-2)node[ocirc]{} 
-| ++(1,0.5) 
-- node[fill=white]{$p$} ++(2,0) 
|- ++(1,-0.5)node[ocirc]{}
-| ++(-1,-0.5) 
-- node[fill=white]{$q$} ++(-2,0)
-- ++(0,0.5)
;
end{circuitikz}
end{document}

enter image description here

Answered by nidhin on August 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP