Use fullpage package.
Slightly cost function concept.