LaTex: Table of Content
Using section heading to create table of content
\tableofcontents
\newpage
List of figures and tables
\begin{appendix}
\listoffigures
\listoftables
\end{appendix}
Set the depth of table of content by using
\setcounter{tocdepth}{1} %1: only shows section; 2 shows subsections;...
\begin{document}
\tableofcontents
\end{document}
or
\documentclass{article}
\begin{document}
\tableofcontents
\newpage
\section{name}
name
\subsection{name1}
name1
\addtocontents{toc}{\setcounter{tocdepth}{1}} %allow different depth
\section{year}
year
\subsection{year1}
year1
\addtocontents{toc}{\setcounter{tocdepth}{2}}
\end{document}
Spacing
\usepackage{setspace}
%...
\doublespacing %\singlespacing