2

enter image description here

\documentclass[border=1cm]{standalone}

\usepackage{circuitikz}

\begin{document}

\begin{circuitikz}[straight voltages]

    \draw(0,0)to[R,l_=$R$,*-*](4,0);

\end{circuitikz}

\end{document}

Currently the above diagram has the 6 apexes of the resistor however what I want to do is to increase the number of it.

Is it able to be done using circuitikz?

2

The key is resistors/zigs=6 (default 3). See manual, "3.5.3 Resistive components customization".

\documentclass{article}

\usepackage{circuitikz}

\begin{document}

\begin{circuitikz}
\draw (0,1.5) to[R, l=$R$] ++(4,0);
\ctikzset{resistors/scale=1.5}
\draw (0,-0) to[R, l=$R$] ++(4,0);
\ctikzset{resistors/zigs=6, resistors/scale=.75,
  resistors/width=1.6}
\draw (0,-1.5) to[R, l=$R$] ++(4,0);
\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.