I'm trying to create a Table of Contents but I am having some trouble getting it to look how I want.
At the moment I have the section headings underlined in the document and because of this when the table of contents is generated it underlines all the section headings. So my question is, is there a way to remove the unwanted underlines from the table of contents and keep them in the document.
My .tex
file.
\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage[english]{babel}
\usepackage{color} % color links
\usepackage{hyperref}
\hypersetup{
colorlinks=true, %set true if you want colored links
linktoc=all, %set to all if you want both sections and subsections linked
linkcolor=black, %color for links
}
\pagestyle{fancy}
\fancyhead{} % clear all header fields
\renewcommand{\headrulewidth}{0pt} % no line in header area
\fancyfoot{} % clear all footer fields
\renewcommand{\footrulewidth}{1pt} % line in footer
\fancyfoot[RE,LO]{\begin{flushleft}\large
name\newline title\end{flushleft}
\begin{flushright} \thepage\end{flushright}}
\begin{document}
\begin{titlepage}
\begin{center}
\end{center}
\end{titlepage}
\tableofcontents
\listoffigures
\listoftables
\newpage
\section{\underline{The Client}}
\subsection{Sub section 1}
\section{\underline{Scope}}
\subsection{Sub Section 2}
\end{document}
Any help would be appreciated.
hyperref
and the associated code as that does have an effect on the TOC (but problem occurs with or without it).