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
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}

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.