The principles underlying the use of powder diffraction data in solving pharmaceutical crystal structures.