Liquid crystals of hard rectangles on flat and cylindrical manifolds.