223

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?
3
  • 2
    Have you found any answer which you can accept? Mar 1, 2017 at 8: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?
    – user113552
    Mar 29, 2018 at 7:36
  • 4
    @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, 2018 at 21:07

4 Answers 4

234

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}
6
  • 29
    How can I change the 'Chapter A: Title' for 'Annex A:...'?
    – F_Jofre_A
    Aug 26, 2014 at 1:01
  • 6
    @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, 2017 at 17:05
  • 4
    @GonzaloMedina is there a way to delete the auto created page where it says "Appendices" in the middle of it?
    – 3kstc
    May 10, 2018 at 5:50
  • 6
    @3kstc: That is what the page option in \usepackage[toc,page]{appendix} is doing. Remove it and the page is gone.
    – Namoshek
    May 16, 2018 at 10:11
  • 3
    @Rodolfo better to ask a separate question for that than try and hope someone finds this.
    – JAD
    Sep 10, 2018 at 7:02
84

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
3
  • 4
    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, 2013 at 6:50
  • No need to use \newpage. Mar 26, 2013 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, 2016 at 14:53
6
\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}
4
  • 4
    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. Mar 7, 2017 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, 2017 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. Mar 7, 2017 at 18:27
  • Please comment in what way your code answers the OP.
    – jjmerelo
    Sep 6, 2021 at 7:15
-2
\begin{appendices}
\chapter{Some Appendix}
The contents...
\end{appendices}

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.