LaTeX forum ⇒ Graphics, Figures & Tablesconnection in one point only

Information and discussion about graphics, figures & tables in LaTeX documents.
todeilatiberia
Posts: 3
Joined: Fri Aug 02, 2019 2:58 pm

connection in one point only

Postby todeilatiberia » Wed Aug 14, 2019 1:49 pm

Hello all,

Is it possible to coonect the source of M1 to a defined path without knowing the coordinates?

\path (0,0) coordinate (IBGND);
\draw (IBGND) to [short,-] (15,0){};
\draw (0.5,0.5) to [C, l=$C_1$, name=C1, -] (0.5,1.5) %cap = 1
(0.5,0) -- (0.5,0.5) ;
\draw (1,1.5) node[pmos,anchor=drain,yscale=-1.5,xscale=1.5,rotate=270](M5){};
\draw (M5.drain) -- (0.5,1.5)
(M5.gate) to [short,-*] ++(0,-0.8) %%%% in this line I have to guess the coordinates of that point on the X axis
(M5.drain) node[above right] {$M_5$}
(M5.source) ++(0.5,0) node[nmos,anchor=gate,scale=1.5](M1){}
(M5.source) -- (M1.gate)
(M1.drain) node[below right] {$M_1$};


Thank you!
Attachments
pierce.PNG
pierce.PNG (10.13 KiB) Viewed 52 times

rais
Posts: 220
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Thu Aug 15, 2019 5:31 pm

you could use the (p1 |- p2) notation to use the horizontal component of coordinate p1 and the vertical component of coordinate p2, such as
  1. \documentclass{article}
  2. \usepackage[siunitx]{circuitikz}
  3.  
  4. \begin{document}
  5. \begin{circuitikz}
  6. \ctikzset{tripoles/mos style/arrows}
  7. \path (0,0) coordinate (IBGND);
  8. \draw (IBGND) to [short,-] (15,0){};
  9. \draw (0.5,0.5) to [C, l=$C_1$, name=C1, -] (0.5,1.5); %cap = 1
  10. \draw (C1.west) to [short, -*] (C1.west |- IBGND);
  11. \draw (1,1.5) node[pmos,anchor=drain,yscale=-1.5,xscale=1.5,rotate=270](M5){};
  12. \draw (M5.drain) -- (0.5,1.5)
  13. (M5.gate) to [short,-*] (M5.gate |- IBGND) %%%% in this line I have to guess the coordinates of that point on the X axis
  14. (M5.drain) node[above right] {$M_5$}
  15. (M5.source) ++(0.5,0) node[nmos,anchor=gate,scale=1.5](M1){}
  16. (M5.source) -- (M1.gate)
  17. (M1.drain) node[below right] {$M_1$};
  18. \draw (M1.source) to [short, -*] (M1.source |- IBGND);
  19. \end{circuitikz}
  20. \end{document}

KR

Rainer


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 6 guests