1

the following circuitikz snippet

\documentclass[tikz]{standalone}

\usepackage{circuitikz}

\begin{document}
    \begin{circuitikz}
        \draw (0,0) node[below]{$x(t)$} to[amp, >] (4,0);
        \draw (5,0) node[adder](adder){};
        \draw (4,0) to[short, i=$$] (adder.west);
    \end{circuitikz}
\end{document}

produces

got

how do I get the arrow left to the adder closer to the adder as with the amp?

Using the standard tikz arrow

    \begin{circuitikz}
        \draw (0,0) node[below]{$x(t)$} to[amp, >] (4,0);
        \draw (5,0) node[adder](adder){};
        \draw[->] (4,0) -- (adder.west);
    \end{circuitikz}

is at the correct position but has the wrong arrow shape.

got2

1

The trick is using the anchor=... option to position (any) node along your path.

For example:

\documentclass[tikz]{standalone}
\usepackage{circuitikz}

\begin{document}
    \begin{tikzpicture}
        \draw (0,0) node[below]{$x(t)$} to[amp, >] (4,0)
            node[adder, anchor=west](adder){};
        \node [inputarrow, anchor=tip] at (adder.west) {};
    \end{tikzpicture}
\end{document}

enter image description here

(Notice that standalone expects a tikzpicture, and it needs additional arguments to "wrap" correctly a circuitikz. But given that a circuitikz is exactly the same as a tikzpicture, I choose the easy way out.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.