
\documentclass[tikz]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[european, scale=1]
\draw
(0,0) node[ocirc]{} --
++(right:1) node(point1){} to [R, l=$R$]
++(down:2) node(point2){} --
++(left:1) node[ocirc]{}
(node cs:name=point1) node[circ]{} --
++(right:2) to [C, l=$C$]
++(down:2) --
(node cs:name=point2) node[circ]{}
;
\end{circuitikz}
\end{document}
point1
(정의)와 (용법) 사이에 공백이 있는 이유는 무엇입니까 point1
?
답변1
이 질문에 답을 남기고 싶지 않습니다.
제안하는 의견 외에도 point1.center
작동 point2.center
합니다. 내 연구는 또한 격차를 줄이기 위한 또 다른 두 가지 대안을 찾아 답변으로 게시합니다.
- 위 댓글에서 밝혔습니다.
새로운 발견
- 명시적인 좌표를 사용합니다.
node
정의를 정의로 바꾸세요coordinate
.
암호
\documentclass[tikz]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[european, scale=1]
\draw
(0,0) node[ocirc]{} --
++(right:1) node(point1){} to [R, l=$R$]
++(down:2) node(point2){} --
++(left:1) node[ocirc]{}
(point1.center) node[circ]{} -- % use point1.center instead
++(right:2) to [C, l=$C$]
++(down:2) --
(point2.center) node[circ]{} % use point2.center instead
;
\end{circuitikz}
\begin{circuitikz}[european,scale=1]
\draw
(0,0) node[ocirc]{} --
++(right:1) node(point1){} to [R, l=$R$]
++(down:2) node(point2){} --
++(left:1) node[ocirc]{}
(1,0) node[circ]{} -- % explicit coordinate
++(right:2) to [C, l=$C$]
++(down:2) --
(1,-2) node[circ]{} % explicit coordinate
;
\end{circuitikz}
\begin{circuitikz}[european,scale=1]
\draw
(0,0) node[ocirc]{} --
++(right:1) coordinate(point1){} to [R, l=$R$] % use coordinate instead
++(down:2) coordinate(point2){} -- % use coordinate instead
++(left:1) node[ocirc]{}
(node cs:name=point1) node[circ]{} --
++(right:2) to [C, l=$C$]
++(down:2)--
(node cs:name=point2) node[circ]{}{}
;
\end{circuitikz}
\end{document}