Quantcast
Channel: Electric Circuit PsTricks - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 3

Electric Circuit PsTricks

$
0
0

Good morning,

I'm currently learning to make figures with PsTricks, but the documentation, as well as books and examples are very poor as usual.

I would like to make this circuit (in LaTeX, with psTricks package [or the sub package pst-circ]:

enter image description here

I would like to maintain the zigzag lines for the resistors, adding the label if possible.

I have tried some command but I let you imagine the mess it came out...

Thank you so much (from this example I will henceforth learn by myself how to run the following future ones).

Note: I would like to see also the "circuitikz" version, if possible. Just to compare and understand what is the best to use!

EDIT

I have came up with this code, trying to make things as I wanted to:

\begin{pspicture}(-2, 4)(4,2)\pnodes(0,0){A}(0,2){B}(3,2){C}(4,2){D}(5,2){E}(5,0){F}\battery(A)(B){}\lamp(B)(C){}\lamp[parallel, parallelsep=0.5](B)(C){}\lamp(C)(D){} \wire(D)(E){}\lamp(E)(F){}\lamp[parallel, parallelsep=0.5](E)(F){}\multidipole(F)(A)\lamp{} \lamp{} .\end{pspicture}

Which gives this output

enter image description here

But I am not satisfied.

I would like to have the two first parallel resistance (lamps) centered, that is the wire that splits into the two ones I would like to be at the middle when it splits. The same thing in the other parallel group.

How to do that?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images