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}

手冊頁似乎有與非閘的條目:

\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,我也嘗試過tripolesdouble 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}

示範

相關內容