A method and an apparatus for aligning the longitudinal direction of grooves
of
a diffraction grating to a predetermined direction. The method and apparatus detect
a diffracted light pattern sent from the diffraction grating, and displace the
diffraction grating such that the direction of an arranging direction obtained
from the diffracted light pattern is aligned in the predetermined direction.