但我在做圆形配置的电阻时遇到了麻烦,下面是我目前所做的:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{circuitikz}
\begin{document}
\begin{center}\begin{circuitikz}[scale=1.5]
\draw[->] (-3.5,0) -- (-3.1,0);
\node at (-3.5,0) [left] {$q_i$};
\filldraw (-3,0) circle (1.2pt) node [above] {\large{$E_{cni}$}};
\draw (-3,0) to[R,a=\Large{$\frac{1-\epsilon_{i}}{\epsilon_{i} A_{i}}$}, label distance=8pt,*-] (0,0);
\filldraw (0,0) circle (1.2pt) node [below] {$J_{i}$};
\draw[dotted, very thick] (0,0) circle (0.5);
% Draw the resistors
\draw (0,0) to [R=$(A_{i}F_{i1})^-1$] (230:2);
\draw (0,0) to [R=$(A_{i}F_{i3})^-1$] (60:2);
\draw (0,0) to [R=$(A_{i}F_{i2})^-1$] (130:2);
\draw (0,0) to [R=$(A_{i}F_{iN-1})^-1$] (2.2,0);
\draw (0,0) to [R=$(A_{i}F_{iN})^-1$] (310:2);
\foreach \angle/\label in {230/$J_1$, 130/$J_2$, 60/$J_3$, 310/$J_N$}
\node[circ,label={\label}] at (\angle:2) {};
\filldraw (2.2,0) circle (1.2pt) node [right] {$J_{N-1}$};
\end{circuitikz}\end{center}\end{document}
答案1
我想你是
circuitikz
将元素与手绘圆圈混合在一起,没有真正的理由;- 在需要时未能使用相对坐标(
++
事物) - 对同一元素混合使用极坐标和直角坐标
- 计算错误的角度(我始终将分支设置为 360/14 度的单位)
- 没有使用足够的空间使标签不相互重叠(如果它们不适合,它们就不适合)
- 缺少
rotate
选择label/align
尝试从这里开始:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{circuitikz}
\begin{document}
\begin{center}
\begin{circuitikz}
\draw[->] (-0.5,0) -- (-0.1,0);
\node [left] at (-0.5,0) {$q_i$};
\path (0,0) node[circ]{} node [above] {$E_{cni}$};
\draw (0,0) to[R,l=\Large{$\frac{1-\epsilon_{i}}{\epsilon_{i} A_{i}}$}, label distance=8pt,*-] (3,0);
\path (3,0) node[circ]{} node [above left=3mm] {$J_{i}$};
\draw[dotted, very thick] (3,0) circle (0.5);
\foreach \n in {1,2,...,3}{
\draw (3,0) to[R,a=$(A_{\n}F_{i\n})^-1$, label distance=8pt,*-o, label/align=rotate] ++(\n*360/14: 5cm) node[above]{$J_\n$};
}
\draw (3,0) to[R,a=$(A_{N-1}F_{iN-1})^-1$, label distance=8pt,*-o] ++(0:5cm) node[right]{$J_{N-1}$};
\draw (3,0) to[R,a=$(A_{N}F_{iN})^-1$, label distance=8pt,*-o] ++(-360/14:5cm) node[right]{$J_{N}$};
\end{circuitikz}
\end{center}
\end{document}
啊,您可能还想将...^{-1}
和该组一起使用,但我没有改变这一点。