This question is a follow up to Denis Bitouzé's question
Here is his code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary {matrix}
\begin{document}
\begin{tikzpicture}
\matrix (magic) [matrix of nodes]
{
1-1 & 1-2 & 1-3 \
& & \
3-1 & 3-2 & 3-3 \
};
\draw[red,->] (magic-1-1) |- (magic-2-2.center) -| (magic-3-3);
\end{tikzpicture}
\end{document}
I am particularly interesting in the following line of code:
\draw[red,->] (magic-1-1) |- (magic-2-2.center) -| (magic-3-3);
The second row in the matrix (mat) was created in order to draw a continuous double rotating line between the node (magic-1-1) and the node (magic-3-3). I do not want to do this since it seems like an unnecessary line of code. I also do not want to use the package that is called
ext.paths.ortho. This is due to the following fact: I do not like to use too much packages in latex, since the syntax could confuse me.
I have the following clue on how to create the diagram using only original latex code:
- Use the calc package to calculate the right coordinates.
My question is:
What is the best way to create a double rotating continuous line between two nodes in a tikz matrix?


I also do not want to use the package that is called ext.paths.ortho. This is due to the following fact: Packages obscure the syntax of latex.– daleif Jan 25 '24 at 09:48ext.paths.orthoany different than using, say, the matrix library? – samcarter_is_at_topanswers.xyz Jan 25 '24 at 09:52ext.paths.ortholibrary at https://tex.stackexchange.com/questions/478165/how-to-draw-tikz-paths-composed-only-of-horizontal-vertical-and-diagonal-segmen/685693#685693 – samcarter_is_at_topanswers.xyz Jan 25 '24 at 09:58