答案1
有很多方法可以做到这一点。一种可能性是使用 绘制on background layer
大scope
矩形fit
。
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit, backgrounds}
\begin{document}
\begin{tikzpicture}[mybox/.style={draw, ultra thick, gray!80, fill=gray!20, rounded corners, text=black, minimum height=1cm}, font=\sffamily]
\node[mybox](conv) at (0,1.5){Converter(-n) c};
\node[mybox](addf) at (4,0){AddForces add};
\draw[latex-, ultra thick] (conv.west)--++(-1.5,0)coordinate(RR){}node[above left]{(N F) b};
\draw[-latex, ultra thick] (addf.east)--++(1.5,0)node[above]{(N F) r};
\draw[-latex, ultra thick] (conv.east)--++(.75,0)|-(addf.170);
\draw[latex-, ultra thick] (addf.190)--(addf.190-|RR)node[above left]{(N F) d};
\scoped[on background layer]\node[mybox, fit=(conv)(addf), inner sep=5mm, yshift=2mm](BB){};
\node[below right=1mm] at (BB.north west){BoostedBreak(n)};
\end{tikzpicture}
\end{document}