旋转符号形状,形状边框旋转不起作用

旋转符号形状,形状边框旋转不起作用

我正在尝试旋转信号形状而不旋转文本,但最终我找到了旋转节点和文本框的真正方法。从我读到的内容来看,正确的方法是使用“形状边框旋转”,但我无法做到这一点。

有没有更好的方法可以做到这一点?形状边框旋转不这样做有什么特殊原因吗?

在此处输入图片描述

\documentclass[]{article}
\usepackage{circuitikz}

\usetikzlibrary{shapes.symbols}

\begin{document}

\begin{circuitikz}
\draw node[shape=signal,draw=black, anchor=east]{Signal 1}
to [R=R1] ++(3,0) node[shape=signal,draw=black, anchor=west, ]{Signal 2};
;
\end{circuitikz}


\begin{circuitikz}
    \draw node[shape=signal,draw=black, anchor=east]{Signal 1}
    to [R=R1] ++(3,0) node[shape=signal,draw=black, anchor=east, rotate=180]{\rotatebox{180}{Signal 2}}; %This Works!!
    ;
\end{circuitikz}

\begin{circuitikz}
    \draw node[shape=signal,draw=black, anchor=east]{Signal 1}
    to [R=R1] ++(3,0) node[shape=signal,draw=black, anchor=east,  rotate=180]{Signal 2}; %This Doesn't!!
    ;
\end{circuitikz}

\begin{circuitikz}
    \draw node[shape=signal,draw=black, anchor=east]{Signal 1}
    to [R=R1] ++(3,0) node[shape=signal,draw=black, anchor=west, shape border rotate=180]{Signal 2}; %Nor Does This
    ;
\end{circuitikz}

\end{document}

答案1

使用选项signal to=west

\documentclass[]{article}
\usepackage{circuitikz}
\usetikzlibrary{shapes.symbols}

\begin{document}
    \begin{circuitikz}
\draw   node[signal,draw, anchor=east]{Signal 1} to [R=R1] ++(3,0)
        node[signal,draw, anchor=west]{Signal 2};
    \end{circuitikz}

    \begin{circuitikz}
\draw   node[signal,draw, anchor=east]{Signal 1}to [R=R1] ++(3,0)
        node[signal,signal to=west, draw, anchor=west]{Signal 2}; %This works!
    \end{circuitikz}
\end{document}

在此处输入图片描述

相关内容