Install the
cm-super
package and put\usepackage{etex,microtype}
in your preamble.Enable clickable links with
\usepackage{hyperref}
and use\autoref{thm:foo}
.Write
\emph{this}
, not{\em this}
. Similarly, use\textbf{this}
, not{\bf this}
.For displayed formulas, use
\[ ... \]
, not$$ ... $$
.Use
chktex
, ideally integrated into your editor.
And for a lot more, see https://www.ctan.org/pkg/l2tabu-english.