LaTeX 绘制带拐点的连接线:区分节点间路径
\documentclass{article}\usepackage{tikz}\begin{document}\begin{tikzpicture}\node[rectangle, draw=black, line width=1pt] (A) at (-1,0) {A};\node[rectangle, draw=black, line width=1pt] (B) at (1,0) {B};\draw (A)--++(0,1)--(B)--++(0,-1); % A到B的路径\draw (B)--++(0,-1)--(A)--++(0,1); % B到A的路径\end{tikzpicture}\end{document}
原文地址: https://www.cveoy.top/t/topic/qb7m 著作权归作者所有。请勿转载和采集!