169

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?
  • 2
    Have you found any answer which you can accept? – Léo Léopold Hertz 준영 Mar 1 '17 at 8:25
  • 2
    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? – Hans Janssen Mar 29 '18 at 7:36
  • 1
    @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
195

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}
  • 23
    How can I change the 'Chapter A: Title' for 'Annex A:...'? – F_Jofre_A Aug 26 '14 at 1:01
  • 2
    @F_Jofre_A: \renewcommand{\appendixname}{Annex}. If you use toc or page, you'll need to renew \appendixtocname or \appendixpagename as well. – AstroFloyd Nov 10 '17 at 17:05
  • 1
    @GonzaloMedina is there a way to delete the auto created page where it says "Appendices" in the middle of it? – 3kstc May 10 '18 at 5:50
  • 2
    @3kstc: That is what the page option in \usepackage[toc,page]{appendix} is doing. Remove it and the page is gone. – Namoshek May 16 '18 at 10:11
  • 2
    @Rodolfo better to ask a separate question for that than try and hope someone finds this. – JAD Sep 10 '18 at 7:02
62

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
  • 2
    Welcome to TeX.sx! Instead of using line breaks in the document body, centering section titles should be done in the preamble, e.g., with the titlesec package. – lockstep Jan 8 '13 at 6:50
  • No need to use \newpage. – JohnTortugo Mar 26 '13 at 20:45
  • @JohnTortugo In my case I also need to add \clearpage or \newpage as bibliography and appendices do not start from a new page. – hrust Dec 28 '16 at 14:53
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}
  • 2
    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 7 '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 7 '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 7 '17 at 18:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.