4

Consider the following MWE:

\documentclass[border={1mm}]{standalone}

\usepackage[europeanresistors]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0)to [R,o-o](3,0);
\end{circuitikz}
\end{document}

This is the output:

enter image description here

How can I add a text inside circuit component like figure below?

0

1 Answer 1

8

You can use name to name a compenent then you add what you want on it

\documentclass[border={1mm}]{standalone}

\usepackage[europeanresistors]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0)to [R,o-o,name=R](3,0);
\node at (R){a};
\end{circuitikz}
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .