The figure shows how to obtain different voltages from a fixed voltage using a 7805. The circuit is from Radio Electronics from April 1985 and can be applied to other regulators with changes to the components.