为什么我在触发器的输入端看到这些奇怪的线
\begin{document}
\begin{tikz}
\draw
(2,-.5) to[short] (2,-10)
(0,0) to[short, -*] (1,0)
(4,0) node[label,and port/] (myand1) {1}
(1,-1) node[label,american not port,rotate=270] (prvone)
(1,0) -| (myand1.in 1)
(2,-.5) -| (myand1.in 2)
(1,0) -| (prvone.in)
%node [american not port,rotate=270] (5,-3)
;
\end{tikz}
\结束{文档}
答案1
这更符合你的要求吗?
\documentclass[border=10pt]{standalone}
\usepackage{circuitikz}
\begin{document}
\ctikzset{logic ports=ieee}
\begin{circuitikz}
\draw
(0,0) to[short, -*] (1,0) -- (2,0) node[and port, anchor=in 1] (myand1) {1}
(1,-1) node[american not port,rotate=-90] (prvone) {}
(myand1.in 2) -| (2,-4)
(1,0) -| (prvone.in)
(myand1.south) node[and port, below=\baselineskip] (myand2) {2}% 0 would be touching
%(myand2.in 1) to[short,-*] (2,0 |- myand2.in 1)
(myand2.in 1) node[circ]{}% since they are already touching
(prvone.out) |- (myand2.in 2)
;
\end{circuitikz}
\end{document}