Open the options dialog found in the environment menu. Set margins, header and footer text.