[Tex/LaTex] Adding appendix in TOC as Appendix A, Appendix B using appendix package

appendicestable of contents

I am writing my thesis, I want to add appendix after the references in TOC.

I want the appendix in following format

Appendix A 107

Appendix B 115

Appendix C 120

How I can do this using appendix package?

Best Answer

This is an example of how to use the appendix package.

Insert your appendices inside the environment appendices.

\documentclass{article}
\usepackage[title,titletoc]{appendix}
\usepackage{lipsum} % only for the example

\begin{document}

\tableofcontents

\newpage

\section{First section}
\lipsum

\begin{appendices}

\section{First appendix}
\lipsum

\section{Second appendix}
\lipsum

\end{appendices}

\end{document} 

And this is how the Table of Contents will look like:

enter image description here