Synchrotron X-ray diffraction images are increasingly used to characterize crystallographic preferred orientation distributions (texture) of fine-grained polyphase materials. Diffraction images can be analyzed quantitatively with the Rietveld method as implemented in the software package Materials Analysis Using Diffraction. Here we describe the analysis procedure for diffraction images collected with high energy X-rays for a complex, multiphase shale, and for those collected in situ in diamond anvil cells at high pressure and anisotropic stress.