To set margins in LaTeX, load the geometry package and specify them, e.g. \usepackage[margin=1in]{geometry}. Control paper size, binding offset, and more.