tikz 电容器板高度

tikz 电容器板高度

如何降低电容器板的高度tikz

我调查了circuits.ee.IEC文档,但我不太明白。

\documentclass{article}
\usepackage{graphicx}
\usepackage{amssymb,amsfonts,dsfont}
\usepackage{tikz}
\usetikzlibrary{circuits.ee.IEC}

\begin{document}

\begin{tikzpicture}[circuit ee IEC]
\draw (0,0) to [capacitor] (1,0);
\end{tikzpicture}

\end{document}

(我只想坚持tikz并且不想使用circuitikz

答案1

嗯,像这样:

编辑:
您可以将中的符号circuit ee IEC作为节点来处理,tikz只需定义它们的大小:

在此处输入图片描述

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{circuits.ee.IEC}

\begin{document}

\begin{tikzpicture}[circuit ee IEC,
every capacitor/.style={minimum height=12mm}
                    ]
\draw (0,0) to [capacitor] (1,0);
\end{tikzpicture}

\begin{tikzpicture}[circuit ee IEC,
                    ]
\draw (0,0) to [capacitor] (1,0);
\end{tikzpicture}

\begin{tikzpicture}[circuit ee IEC,
every capacitor/.style={minimum height=3mm}
                    ]
\draw (0,0) to [capacitor] (1,0);
\end{tikzpicture}

\end{document}

相关内容