5

It is easy to set a label to a component, but is it possible to place a label on a single node?

For example, what I would be after, circled in red here:

example

  • 1
    Please, add a complete document clearly illustrating your inetnt (i.e., a simple example of a circuit showing the "node" you want to label). – Gonzalo Medina Feb 4 '15 at 18:14
  • @GonzaloMedina sorry, done. – ACarter Feb 4 '15 at 18:55
  • Look at texample.net/tikz/examples/circuitikz The example is what you are looking for. – jotagah Feb 4 '15 at 19:43
10

You can use a standard TikZ node and its label key:

\documentclass{article}
\usepackage{circuitikz}

\begin{document}

\begin{circuitikz}
\draw 
  (0,0) 
    node[label={[font=\footnotesize]above:Node}] {}
  to[R,*-*] (2,0) 
    node[label={[font=\footnotesize]-30:$1$},label={[font=\footnotesize]150:$2$}] {}
  to[R,*-*] (4,0) 
    node[label={[font=\footnotesize]above:$3$}] {}
;
\end{circuitikz}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.