Adaption of the quartz spectrograph to precision measurement of length