I want to draw parallelograms with fixed angle, width and height, but it seems that trapezium in PGF/TikZ cannot specific the height without changing angles.
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
\tikzstyle{every node}=[trapezium, draw, minimum width=3cm,
trapezium left angle=120, trapezium right angle=60]
\node[trapezium stretches body]
at (0,0) {A};
\node[trapezium stretches body, rotate=-30]
at (0,1.5) {A rotate $-30^\circ$};
\node[minimum height=1cm, trapezium stretches body]
at (5,0) {B};
\node[minimum height=1cm, trapezium stretches body, rotate=-30]
at (5,1.8) {B rotate $-30^\circ$};
\node[minimum height=1cm]
at (0,-2) {C};
\node[minimum height=1cm, rotate=-30]
at (0,-4) {C rotate $-30^\circ$};
\node[minimum height=1cm, trapezium stretches]
at (5,-2) {D};
\node[minimum height=1cm, trapezium stretches, rotate=-30]
at (5,-4) {D rotate $-30^\circ$};
\end{tikzpicture}
\end{document}
The output:
I want a vertically fat version of A with the same width.
A and B have different angles, just adding "minimum height". Rotated version of A has vertical west/east sides, that's what I need. Rotated version of B does not have vertical west/east sides, however, I do need a "higher" parallelogram with the same angles and width as A.
C: Removing "trapezium stretches body" results in a parallelogram whose width and height out of control. D: Replacing "trapezium stretches body" with "trapezium stretches" helps nothing.


!in front of it to turn it into a link. A moderator or another user with edit privileges can then reinsert the!to turn it into an image again. – Qrrbrbirlbel Apr 05 '13 at 06:43\documentclassand the appropriate packages so that those trying to help don't have to recreate it.This is especially important for
– Peter Grill Apr 05 '13 at 06:49tikzas there are numerous libraries.rotate=-30uses a fixed point on the shape border of the node. So if the size changes the rotation axis changes. You can userotate aroundif that's you wish. But it might be something else you are after. – percusse Apr 05 '13 at 07:11every nodeor theevery trapezium nodestyle for common options (angles, minimum width). – Qrrbrbirlbel Apr 05 '13 at 07:21