Graphics, Figures & TablesTikz connection points in circuits

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

Tikz connection points in circuits

Post by todeilatiberia »

Is it possible to label the circles that mark the begging and the end of the circuit with name (similar to labels)?
also, can I change the shape into some diamonds?
and how can I add the value for the components?

Here is the code:

Code: Select all

\begin{circuitikz}[american currents,american voltages,line width=0.25mm]
    \onlyifstandalone{
      %\grid{0}{5}{5}{5}
    } 
    \draw (2,4) to [R=$R$,*-] 
    	  (2,2) to [C=$C_1$] 
    	  (2,0) node [ground] {};   
    \draw [o-o] (0,4) -- (10,4);
  \end{circuitikz}
Thanks
Attachments
labels2.png
labels2.png (9.35 KiB) Viewed 3646 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Tikz connection points in circuits

Post by rais »

If I understand you right, s.th. like

Code: Select all

\documentclass{article}
\usepackage{circuitikz}
\usetikzlibrary{arrows.meta}
\usepackage{siunitx}

\begin{document}
\begin{circuitikz}[american currents,american voltages,line width=0.25mm]
    \draw (2,4) to [R, l2^=$R$ and \SI{1}{\kilo\ohm},*-] 
    	  (2,2) to [C, l2_=$C_1$ and \SI{470}{\nano\farad}] 
    	  (2,0) node [ground] {};   
    \draw [{Turned Square[open]}-{Turned Square[open]}] (0,4) -- (10,4)
    node[below, at start]{label 1}
    node[below, at end]{label 2};
\end{circuitikz}
\end{document}
KR
Rainer
Post Reply