I try making a simple trapez like shape using the TikZ shape library. The text inside the shape differs from its length. However, the shape should be as big as the shape with the longest text so all shapes have the same size in the end.
I try fixing some paramters like text width, but this does make short textnodes even longer ... Anyone an idea?
Here is the code:
\documentclass{article}
\usepackage{tikz,amsmath, amssymb,bm,color}
\usepackage[margin=0cm,nohead]{geometry}
\usepackage[active,tightpage]{preview}
\usetikzlibrary{shapes,arrows, matrix}
% needed for BB
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
[
output/.style ={trapezium,draw,fill=none, minimum height=10mm,
align=center, trapezium left angle=60, trapezium right angle=120, text
width=50}
]
\matrix [row sep=1.cm,ampersand replacement=\&, nodes in empty cells]
{
\node [output] (54) {This is a\\ long text}; \\
\node [output] (44) {short text};\\
\node [output] (44) {RQ1};\\
};
\end{tikzpicture}
\end{document}
This result in that picture:
Many thanks in advance for your help.


less /usr/local/texlive/2018/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibraryshapes.geometric.code.texbut gave up. This is a really lengthy code, which may or may not be improvable, but given its complexity I would like to argue that the above is the easier way to go. – Aug 01 '18 at 20:33