228

I need some help with creating an appendix for my thesis. I have about 10 figures which need to be in the appendix. I have a good appendix with the following code:

\appendix 
\addcontentsline{toc}{chapter}{APPENDICES}

\chapter{XXXX}

I have a main thesis.tex file where I call this appendix.tex file after the last chapter. Problems are:

  1. The appendix starts without any notice that it is the appendix except for the chapter number being A, but I want to have either a separate page which says "Appendix" prior to the start of the appendix or on top of the first appendix page to explicitly say "Appendix".
  2. Now I use the \chapter{} command to have the title of the appendix but I think I will have only one chapter in the appendix. Is there some command which can make the title insited of chapter?
Stephen
  • 14,890
user13017
  • 2,289
  • 2
    Have you found any answer which you can accept? – Léo Léopold Hertz 준영 Mar 01 '17 at 08:25
  • 3
    6 years open and still no satisfying answer. Can you maybe clarify your question a bit more if you are still missing parts in the answers? –  Mar 29 '18 at 07:36
  • 5
    @Geliormth Considering this is the sole post of the OP in the entire SE realm, I think we could just consider Gonzalo's answer as de facto accepted, based on the votes. – Neinstein May 17 '18 at 21:07

4 Answers4

243

The appendix package could be used here; the toc and page package options and the appendices environment will do what you need:

\documentclass{book}
\usepackage[toc,page]{appendix}

\begin{document}
\tableofcontents

\chapter{Regular Chapter}
\begin{appendices}
\chapter{Some Appendix}
The contents...
\end{appendices}

\end{document}
Gonzalo Medina
  • 505,128
91

A different solution that I use is below.

\appendix
\section{\\Title of Appendix A}
% the \\ insures the section title is centered below the phrase: AppendixA

Text of Appendix A is Here

\section{\\Title of Appendix B}
% the \\ insures the section title is centered below the phrase: Appendix B

Text of Appendix B is Here
strpeter
  • 5,215
user24112
  • 911
5
\begin{document}
\bibliographystyle{phBYU}
\bibliographystyle{unsrt}
\maketitle
\begin{abstract}
% add abstract
\end{abstract}
\begin{acknowledgements}
% add acknowledgement
\end{acknowledgements}
\tableofcontents
\listoffigures
\listoftables
  \addtolength{\parskip}{10pt}
\chapter{\uppercase {Introduction}} %%add your chapter 1 title here
\setcounter{page}{1}
\pagenumbering{arabic}
\label{chapter1}
\input{chapter1} % filename in curly brackets
% add more chapters
\clearpage
**\appendix
\chapter{Name of Appendix A}
\label{whatever}
\input{appendixA} % filename in curly brackets
\chapter{Name of Appendix B}
\label{whatever}
\input{appendixB} % filename in curly brackets**
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{BIBLIOGRAPHY}
 \bibliographystyle{phBYU}
\bibliographystyle{unsrt}
\bibliography{phd}
Troy
  • 13,741
  • 5
    Welcome to stackexchange. Please learn how to use markup to display code as code. You might also want to describe how your answer improves on the other two here, which have been upvoted often. Yours is likely to be downvoted. – Ethan Bolker Mar 07 '17 at 17:35
  • 2
    Thanks Ethan for guidance. I am not sure my answer is better than the previous answers, but they were not working for me. I was frustrated. However, the script which I pasted worked for me, eventually. So I thought to share. In future I will try to follow your advice. – Asif Kazmi Mar 07 '17 at 17:46
  • 2
    That's an improvement. Next time you should provide a complete compilable document, including \documentclass , In fact the OP who asked the question should have done that too. – Ethan Bolker Mar 07 '17 at 18:27
  • Please comment in what way your code answers the OP. – jjmerelo Sep 06 '21 at 07:15
2

If your are trying to do this and you don´t have the expected output...verify where is declarated the \backmatter. You have to typped after the last appendix section or exactly above of \end{document} statement.