如何在 circuitikz 中调整逆变器的大小

如何在 circuitikz 中调整逆变器的大小

我正在尝试减小 circuitikz 中逆变器默认值的尺寸,但找不到正确的ctikzset命令。

\begin{circuitikz} \draw
    (10,0) node[not port, rotate = 090] (s1c1) {}

    (05,2) node[not port, rotate = 180] (s2cr1) {}
    (10,6) node[not port, rotate = 090] (s2cr2) {}

    (03,4) node[not port, rotate = 090] (s2c1) {}
    (09,8) node[not port, rotate = 180] (s2c2) {}

    (2,6) node[not port, rotate = 90] (s3c1) {}
    (4,6) node[not port, rotate = 90] (s3c2) {}
    (7,7) node[not port, rotate = 180] (s3c3) {}
    (7,9) node[not port, rotate = 180] (s3c4) {}

    (s1c1.out) |- (s2cr1.in)
    (s1c1.out) |- (s2cr2.in)

    (s2cr1.out) -| (s2c1.in)
    (s2cr2.out) |- (s2c2.in)

    (s2c1.out) -| (s3c1.in)
    (s2c1.out) -| (s3c2.in)

    (s2c2.out) |- (s3c3.in)
    (s2c2.out) |- (s3c4.in)

    (s3c1.out) -- (s3c2.out)
    (s3c2.out) -| (s3c3.out)
    (s3c3.out) -- (s3c4.out)
    ;
\end{circuitikz}

手册页似乎有关于 NAND 门的条目:

\ctikzset{tripoles/american nand port/input height=.2}
\ctikzset{tripoles/american nand port/port width=.2}

基于此,我尝试将其插入到逆变器:

\ctikzset{bipoles/american not port/input height=.2}

代替bipoles,我还尝试了tripoles基于double bipoles手册页的 ,但我无法控制大小。

这是我的输出的样子,我想在工作中使用明显更小的逆变器:

大型逆变器:(

答案1

关于这些参数的文档不多。您必须找到源代码并进行搜索。我的编辑器有一个“在文件中查找...”选项,我已将其设置为搜索以下所有文件:C:\Program Files\MiKTeX 2.9\tex

\documentclass{standalone}
\usepackage{circuitikz}

\begin{document}
\ctikzset{bipoles/not port/height=.2}
\ctikzset{bipoles/not port/width=.2}
\begin{circuitikz} \draw
    (10,0) node[not port, rotate = 090] (s1c1) {}

    (05,2) node[not port, rotate = 180] (s2cr1) {}
    (10,6) node[not port, rotate = 090] (s2cr2) {}

    (03,4) node[not port, rotate = 090] (s2c1) {}
    (09,8) node[not port, rotate = 180] (s2c2) {}

    (2,6) node[not port, rotate = 90] (s3c1) {}
    (4,6) node[not port, rotate = 90] (s3c2) {}
    (7,7) node[not port, rotate = 180] (s3c3) {}
    (7,9) node[not port, rotate = 180] (s3c4) {}

    (s1c1.out) |- (s2cr1.in)
    (s1c1.out) |- (s2cr2.in)

    (s2cr1.out) -| (s2c1.in)
    (s2cr2.out) |- (s2c2.in)

    (s2c1.out) -| (s3c1.in)
    (s2c1.out) -| (s3c2.in)

    (s2c2.out) |- (s3c3.in)
    (s2c2.out) |- (s3c4.in)

    (s3c1.out) -- (s3c2.out)
    (s3c2.out) -| (s3c3.out)
    (s3c3.out) -- (s3c4.out)
    ;
\end{circuitikz}
\end{document}

演示

相关内容