typesetting
table of content out of page?
\usepackage[breaklinks]{hyperref}
\usepackage[linktocpage]{hyperref}
see
http://jbdeaton.com/2012/fix-the-table-of-contents-line-breaking-headache-in-latex/
Force figures to stay on the same page
\usepackage{float}
\begin{figure}[H] % hold figure position