I am learning LaTeX, and i was trying to follow some examples, and i came across this one from CircuiTikZ
\begin{circuitikz}[]
\draw (0,2) node[npn, tr circle](Q1){};
\ctikzset{transistor circle/relative thickness=2}
\draw (2,2) node[npn, tr circle](Q1){};
\ctikzset{transistor circle/color=red}
\draw (0,0) node[npn, tr circle](Q1){};
\ctikzset{transistor circle/color=default}
\ctikzset{transistor circle/dash={{4pt}{4pt}{1pt}{4pt}}}
\draw[color=blue] (2,0) node[npn, tr circle](Q1){};
\end{circuitikz}
I am using OverLeaf
As you can see, there is no cirle arround the transistors
and this error shows up I do not know the key '/tikz/tr circle' and I am going to ignore it. Perhaps you misspelled it.
I have read the documentation and searched online and cant find anything. Do you have any idea why this is not working?
Here is the total code
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{placeins}
\usepackage{pgfplots}
\usepackage{pgfkeys}
\usepackage{tikz}
\usepackage{circuitikz}
\usetikzlibrary{shapes,arrows}
\usetikzlibrary{matrix,shapes,arrows,positioning,chains}
\usetikzlibrary{intersections}
\begin{document}
\begin{circuitikz}[]
\draw (0,2) node[npn, tr circle](Q1){};
\ctikzset{transistor circle/relative thickness=2}
\draw (2,2) node[npn, tr circle](Q1){};
\ctikzset{transistor circle/color=red}
\draw (0,0) node[npn, tr circle](Q1){};
\ctikzset{transistor circle/color=default}
\ctikzset{transistor circle/dash={{4pt}{4pt}{1pt}{4pt}}}
\draw[color=blue] (2,0) node[npn, tr circle](Q1){};
\end{circuitikz}
\end{document}
tr circle
is very new --- probably overleaf has an older release. You can check this: tex.stackexchange.com/questions/524328/… – Rmano Feb 23 at 13:15tr circle
has been added in version 1.2.6 (2020-12-16), so it's highly improbable that overleaf has it. – Rmano Feb 23 at 13:18