After placing a node in an arbitrary position between two horizontal lines, I would like to draw the diagonal line to a point B and then a series of oblique lines as in this picture:
They should all have the same slope.
The point A is a generic point between the two lines; the point B is a generic point belonging to the upper line. It is always right of A.
I tried with this code.
\documentclass[border=2mm,tikz]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,calc}
\begin{document}
\begin{tikzpicture}
\coordinate (a0) at (0,0);
\coordinate (a1) at (10,0);
\coordinate (a2) at (10,4);
\coordinate (Bbase) at (6,-1);
\draw (a0) -- (a1);
\draw (a0 |- a2) -- (a2);
\node (A) at (2,1) {A};
\draw (A) -- (Bbase |- a2) node[above] {B};
\end{tikzpicture}
\end{document}
This is the result:
How to proceed? The solution should not depend on the slope of this particular case: the correct slope should be determined whatever A and B are (as far as they respect the conditions listed above).



AandBand your parameters20mm,80mmand also the points(3,2) -- (19.1,2)? How did you choose them? – BowPark Apr 05 '18 at 15:19