I am using document class report
. To ensure the word "appendix" appears in my table of contents, I have used the following:
\usepackage[title,titletoc,toc, page]{appendix}
and
\begin{appendices}
\include{SomeAp1}
\clearpage
\include{SomeAp2}
\end{appendices}
This adds the word appendix to my table of contents. However, it also creates a extra page with the heading "Appendices" right before the first appendix. Therefore, instead of showing something like the following in TOC:
Appendices page 11
Appendix A page 11
Appendix B page 17
I get
Appendices page 10
Appendix A page 11
Appendix B page 17
ADDED:
\documentclass{report}
\usepackage{comment}
\usepackage{amssymb}
\usepackage{xspace}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{enumerate}
\usepackage{amssymb}
\usepackage{multirow}
\usepackage[letterpaper,left=1in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage{tocbibind}
\usepackage[title,titletoc,toc,page]{appendix}
\usepackage[doublespacing]{setspace}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black}
\setcounter{secnumdepth}{3}
\begin{document}
\pagenumbering{roman}
\setcounter{page}{2}
\include{Abstract}
\include{Acknowledgements}
\tableofcontents
\listoffigures
\clearpage
\pagenumbering{arabic}
\setcounter{page}{1}
\include{someChapter}
\bibliographystyle{plain}
\bibliography{MyLib}
\begin{appendices}
\include{Ap1}
\clearpage
\include{Ap2}
\end{appendices}
\end{document}
ADDED: I added
\usepackage[toc,titletoc,title]{appendix}
instead of
\usepackage[title,titletoc,toc, page]{appendix}
And this almost gives me the effect I want, but it has one problem. In table of contents, first Appendix A is mentioned, then appendices, then Appendix B.
Thank you in advance
Best Answer
Don't use the
toc
option of theappendix
package. As the documentation says: "[It] puts a header (e.g., Appendices) into the ToC before listing the Appendices"As far as I can tell
gives the result you are after.