这就是我所拥有的小型触发器电路(当然它是不完整的)。
\begin{figure}[H]
\centering
\begin{circuitikz}
% A flip-flop circuit diagram
(0, 2) \node[american or port] (myOR1) {};
(0, 0) \node[american or port] (myOR2) {};
(2, 2) \node[american not port] (myNOT1) {};
(2, 0) \node[american not port] (myNOT2) {};
% Connections
\draw (myOR1.in 2) -- (myNOT2.out);
\draw (myOR2.in 1) -- (myNOT1.out);
\end{circuitikz}
\caption{A flip-flop circuit.}
\end{figure}
它产生的结果是:
我该如何解决?
答案1
你放置节点的方法是错误的。对于它们,与 TikZ 中的规则相同:
\documentclass{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
% A flip-flop circuit diagram
\node[american or port] at (0, 2) (myOR1) {};
\node[american or port] at (0, 0) (myOR2) {};
\node[american not port] at (2, 2) (myNOT1) {};
\node[american not port] at (2, 0) (myNOT2) {};
% Connections
\draw (myOR1.in 2) |- ++ (1.5,-0.5) -- ++ (1,-0.45) -| (myNOT2.out);
\draw (myOR2.in 1) |- ++ (1.5, 0.5) -- ++ (1, 0.45) -| (myNOT1.out);
\end{circuitikz}
\end{document}
这使:
嗯,我还没有完成你的人字拖计划。