I like to draw the following picture:
It is generated with following code:
\documentclass[12pt,tikz,border=3mm]{standalone}
% \usepackage{zfc-book-standalone}
\usetikzlibrary{arrows.meta,positioning,shapes}
%---------------------------------------------------------------%
\begin{document}
\begin{tikzpicture}[
node distance = 0mm and 0mm,
L/.style = {line width=1mm, draw=gray,
arrows={-Stealth[fill=gray,inset=0pt,length=0pt 1.2,angle'=90]},
},
T/.style 2 args = {name=n#1,
draw=#2, fill=#2!20,% draw and fill color
trapezium,
trapezium stretches body,
trapezium left angle=105, trapezium right angle=75,
inner sep=0mm, outer sep=0mm,
text width=33mm, text height=4mm,
rotate=-15,
}
]
%--------
\node[T={1}{teal}] {} (0,0);
\node[T={2}{teal}, below right=of n1.bottom left corner,
anchor=top left corner] {};
\node[T={3}{teal}, below right=of n2.bottom left corner,
anchor=top left corner] {};
%--------
\node[T={4}{cyan}, trapezium left angle=75, trapezium right angle=105,
text height=3mm, %text width=33mm + 2.8977/2 mm,
rotate=30,
below left =of n3.bottom right corner,
anchor=top right corner] {};
%--------
\foreach \i [count=\xi from 4] in {5,6,7}
\node[T={\i}{teal},below right=of n\xi.bottom left corner,
anchor=top left corner] {};
%--------
\foreach \i in {1,2,...,7}
\draw[L,shorten <=11mm,shorten >=11mm]
\ifnum\i=4
(n4.east) -- (n4.west)
\else
(n\i.west) -- (n\i.east)
\fi;
%--------
\draw[red,ultra thin] (n1.top left corner) |- (n7.bottom left corner)
(n1.top right corner) |- (n7.bottom right corner);
%----------------
\end{tikzpicture}
\end{document}
I read all relevant questions here, but didn't find solution, hot to determine angles in trapezium such that left shapes border will be aligned (see discrepancy pointed out with red line on the left of stack).
Questions: Is there a way, beside guessing, to determine left and right trapezium for given rotate angle, trapezium width and height in such a way, that left (and right) shape borders are aligned, i.e. lie on vertical line?
Edit:
After reading again Drawing parallelogram with fixed angle, width and height?, as suggest 'percusse' I realise, that if I change in above MWE minimum width and height with fixed measures obtained by text width and text height, I solve most of problems:
Still open is the following question:
How to determine text width, that it will be independent from text height?
double
lines (with a adequatedouble distance
?pos
key.