To use this IC for the different range of required output voltage, you can proceed with various circuits available in LM723 datasheet with having your needed output range. For getting an output voltage range from 2v to 7v you can use the circuit below, which is a Basic Voltage Regulator circuit using LM723 voltage regulator IC.

To find the value of resistance R3 you can use the formula below:
R3 = (R1*R2) / (R1+R2)
You can adjust the voltage by using the potentiometer in the circuit to get the required regulated output voltage. For finding the value of output voltage for this circuit you can use the formula below:
Vout = Vref * (R2 / R1 + R2)