Enantiodifferentiating photocyclodimerization of 2-anthracenecarboxylic acid mediated by gamma-cyclodextrins with a flexible or rigid cap.