Crystal structures. I. Patterns and symmetry