Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to add table of contents in LaTeX

📅 2012-Dec-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

To add a table of contents section to a LaTeX document use the command \tableofcontents. Add it at the location where you want the table. For example, to have a table of contents after the title:

\begin{document}

\maketitle
\tableofcontents
\chapter{First chapter of book}
%...

\end{document}

Tried with: MikTeX 2.9 and Windows 8 Pro