I am trying to generate a LPF block with TikZ.
I have found out the option of drawing a LPF with CircuiTikZ:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,positioning}
\usetikzlibrary{arrows.meta}
\usepackage{circuitikz}
\tikzset{
block/.style = {draw, fill=white, rectangle, minimum height=3em, minimum width=3em},
tmp/.style = {coordinate},
input/.style = {coordinate},
output/.style= {coordinate},
pinstyle/.style = {pin edge={to-,thin,black}
}
}
\begin{document}
\begin{tikzpicture}
\node [input, name=input] {};
\node [block, right=20mm of input] (A) {A};
\node [block, right=20mm of A] (B) {B};
\draw [-{Latex[length=2mm]}] (A) to[lowpass](B);
\end{tikzpicture}
\end{document}
This has 2 problems:
- The line connecting blocks goes through them, and does not start at their edge.
- There is no arrow pointing towards the LPF
I have unsuccessfully tried to find a workaround to this.
Is there any way I could make it look like this?
(As a last request, is it also possible to make the border of the block have the same thickness as A and B?)
circuitikz
.