![如何更改 circuitikz 缓冲区的线条粗细](https://linux22.com/image/375630/%E5%A6%82%E4%BD%95%E6%9B%B4%E6%94%B9%20circuitikz%20%E7%BC%93%E5%86%B2%E5%8C%BA%E7%9A%84%E7%BA%BF%E6%9D%A1%E7%B2%97%E7%BB%86.png)
设置\ctikzset{bipoles/thickness=1}
似乎会改变电阻、接地、函数发生器、电容器等的厚度...,但不会改变buffer
s 的厚度。我遗漏了什么,如何才能使缓冲区的厚度与文档中其他行的厚度相同?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage[siunitx]{circuitikz}
\usetikzlibrary{circuits.logic.US}
\usetikzlibrary{positioning}
\usetikzlibrary{shapes}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[circuit logic US, >=latex]
\ctikzset{bipoles/buffer/height=.375}
\ctikzset{bipoles/buffer/width=.375}
\ctikzset{bipoles/thickness=1}
\ctikzset{bipoles/buffer/thickness=1}
\node[draw] (eom) at (0,0) {EOM};
\def \ampsep{.2}
\draw (eom.west) to[vR] ++(-1.5, 0) node[buffer, anchor=out] (amp2) {}
(amp2.in) to[short] ++ (-\ampsep, 0) node[buffer, anchor=out] (amp1) {}
(amp1.in) to[vR] ++(-1.5, 0) node[buffer, anchor=out] (preamp6) {}
(preamp6.in) to[short] ++ (-\ampsep, 0) node[buffer, anchor=out, thickness=10] (preamp5) {}
(preamp5.in) to[short] ++ (-\ampsep, 0) node[draw, anchor=east] (hpf) {HPF}
(hpf.west) to[short] ++(-\ampsep, 0) node[buffer, anchor=out] (preamp4) {}
(preamp4.in) to[short] ++(-\ampsep, 0) node[buffer, anchor=out] (preamp3) {}
(preamp3.in) to[short] ++(-\ampsep, 0) node[buffer, anchor=out] (preamp2) {}
(preamp2.in) to[short] ++(-\ampsep, 0) node[buffer, anchor=out] (preamp1) {}
(preamp1.in) -| ++(-.5, -1) to[R=50] ++(0, -1.5) node[ground] {}
;
\end{tikzpicture}
\end{document}
答案1
似乎缓冲区不遵循厚度,例如电阻器。您可以使用line width = 1 pt
缓冲区来创建更粗的线:
...
(preamp6.in) to[short] ++ (-\ampsep, 0) node[buffer, anchor=out, line width=1] (preamp5) {}
...