I have a style requirement for headings. Header 1 = 16pt bold, Header 2 = 14pt bold underline. Font is required to be Palatino Linotype. I got this document shell from a classmate and have only made one real document in latex. I couldn't figure out how to modify headers without using the sectsty package, but when using sectsty I am getting "Undefined control sequence errors for my \section, \subsection, \tableofcontents and \begin but the formatting is correct. It's not messing the document up but I'd like to figure out why this is happening.
My sections aren't complicated(ex: /Section{Introduction})
\documentclass[11pt,titlepage]{article}
\usepackage{float}
\usepackage{graphicx, fancyvrb, natbib, setspace}
\usepackage{listings}
\usepackage[usenames,dvipsnames]{color}
\usepackage[usenames]{color}
\usepackage{geometry}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{caption}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{mathpazo}
\usepackage{sectsty}
\usepackage{fncychap}
\usepackage[normalem]{ulem}
\captionsetup[table]{font=bf}
\subsectionfont{\Large\PalatinoLinotype\underline}
\sectionfont{\LARGE\PalatinoLinotype}
\PalatinoLinotype
. Drop that, since you didn't mention any of that font-related requirement in your post.