I am using the report class and wish to add an appendix to my document. The problem is that I want to see the following in my pdf.
In the table of contents:
Appendix A: First appendix
Appendix B: Second appendix
At the appendices themselves:
Appendix A
First appendix
[some text...]
etc.
Is there a straightforward way of doing this? I have been googling for a long time...
Right now, I use the appendix package but this does not do what I want.
Thanx,
Mina
Code: Select all
\documentclass[a4paper,10pt]{report}
\usepackage{natbib}
\bibpunct{[}{]}{,}{s}{,}{,}
\usepackage[]{titlesec}
\titleformat{\chapter}[display]
{\normalfont\Large\bfseries}{\thechapter}{11pt}{\Large}
\titleformat{\section}
{\normalfont\large\bfseries}{\thesection}{11pt}{\large}
\titlespacing*{\chapter}{0pt}{0pt}{15pt} %left, beforesep, aftersep, right
\titlespacing*{\section}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
\usepackage[title,titletoc]{appendix}
\begin{document}
\tableofcontents
\chapter{Introduction}
\section{Project}
\input{Sections/project}
\bibliographystyle{unsrtnat}
\bibliography{Bibliography/report}
\addcontentsline{toc}{chapter}{\bibname}
\begin{appendices}
\chapter{First appendix}
[some text...]
\chapter{Second appendix}
[some more text...]
\end{appendices}
\end{document}