I'm trying to figure out what I did that screwed up the formatting of this course notes template. I apologize for not having a better MWE, but it seems to all have parts together to it.

MWE (edited): \documentclass[11pt]{article}

\newcommand{\classheader}[1]{\newpage\section*{#1}
}

\usepackage{fancyhdr}
\pagestyle{fancy}

\usepackage{hyperref}

\begin{document}

\thispagestyle{empty}
\tableofcontents

\newpage
\thispagestyle{empty}

\section*{Introduction}

\include{SecurityisMathematics}

\end{document}


Security is Mathematics.tex (as an MWE)

\classheader{Security is Mathematics}
\section{Security is Mathematics}\label{security-is-mathematics}

Insert Text Here


These two documents, compiled while in the same directory, provide the following first page as output. Not exactly what I'm looking for. Any thoughts on how to fix this and make it cleaner? Thanks all!

\documentclass[11pt]{article}

}

\usepackage{fancyhdr}
\pagestyle{fancy}

\usepackage{hyperref}

\begin{document}

\thispagestyle{empty}
\tableofcontents

\newpage
\thispagestyle{empty}

\section*{Introduction}

\include{SecurityisMathematics}

\end{document}


If you now comment out line 4 (\phantomsection...), you achieve the following output:

Applied to your original example, you get:

Apart from that, you might be interested in using a different documentclass like report or even book that are better suited for longer documents. They also provide the chapter command that automatically starts on a new page.