This circuit, which may have appeared elsewhere on this site, is from the integrated manufacturer's own component manual. These components accept equivalents and the adjustment must be made to a voltage 50 mV greater than Vz. The LM317 must be equipped with a heat sink.