Here is what I have right now:
\documentclass[12pt]{article}
\usepackage{siunitx}
\usepackage{amsmath}
\usepackage[margin=1in]{geometry}
\usepackage[american,siunitx]{circuitikz}
\usepackage{tikz}
%\pgfplotsset{compat=1.18}
\usetikzlibrary{shapes,arrows,automata, positioning}
\usetikzlibrary{decorations.markings}
\tikzset{positionarrow/.style n args={2}{
postaction = decorate,
decoration={markings,
mark= at position #1 with {\arrow{#2}} ,
},
postaction={decorate}
}
}
\begin{document}
\begin{center}
\begin{center}
\begin{circuitikz}
\draw [blue](0,5) circle[radius=1.5 pt];
\draw[blue, positionarrow={0.5}{Stealth[inset=0pt]}](0,5) to (3,5);
\draw [blue](3,5) circle[radius=1.5 pt];
\draw(0,4) to[short, i>^=$\hphantom{a}$, o-o](3,4);
\draw [blue](0,3) circle[radius=1.5 pt];
\draw[blue, positionarrow={0.5}{Stealth[inset=0pt]}](0,3) to (3,3);
\draw [blue](3,3) circle[radius=1.5 pt];
\draw(0,3) to[short, i>^=$\hphantom{a}$, o-o](3,3);
\end{circuitikz}
\end{center}
\end{center}
\end{document}
Output:
I seemed to manage to get the circle radius to match that for ocirc (as shown in the bottom figure, the black ocirc with its default radius perfectly "covers up" the blue). Let me know if there's a better way of doing so.
From there, I would like to get some desired outputs:
- I would like to have the line in
tikzcode to start from the edge of the circle and end at the other edge of the circle, like how the wires incircuitikzstart and end from theocircterminals, instead of starting and ending inside the circles. - I realized that the arrow shape in
tikzis not exactly the same as that incircuitikz(in reality, from my understanding, it isflowarrowthat is defined as a node, not a specific arrow shape). Is there a way to get atikzarrow shape that looks the same as that incircuitikz? If not, that's fine. - I realized the arrow in
tikzthat is positioned half-way (0.5) is not necessarily half-way as is the arrow forcircuitikz. Is there a way for one to get the arrow intikzto match up the position of that incircuitikz?
This is a follow up from this, as I want to utilize curved lines (or directional edges in the graph, in other words) in addition with features from circuitikz, which does not use curved lines for wires.


