Page control for LaTeX