## LaTeX forum ⇒ General ⇒ Appendix possible in latex? Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

### Appendix possible in latex?

Im attempting to add appendix into my report. I have tried different methods but not meeting my expectation.

I will need you guys help for the appendix please.

I'll the the appendix to appear on the contents page if possible but not as a chapter.

Tags:

ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm
OK i have used the following commands:

\appendix\chapter{Questionnaire Requirement}\chapter{Questionnaire Testing}

it seems to the job, but im worried because this is what appears when im compiling the .tex file

! LaTeX Error: File appendix.sty' not found. Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty) Enter file name: 

how can i fix this problem?

Stefan Kottwitz
Posts: 9450
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

it seems you typed \usepackage{appendix}, but that's not neccessary for an appendix. One small example:
\documentclass[a4paper,10pt]{report}\begin{document}\tableofcontents\chapter{One}\appendix%\addcontentsline{toc}{chapter}{Appendix}\addtocontents{toc}{\protect\contentsline{chapter}{Appendix:}{}}\chapter{Questionnaire Requirement}\chapter{Questionnaire Testing}\end{document}

Stefan

ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm
cheers mate , works like a charm. your a star

Ali Sultan
Posts: 12
Joined: Sun Oct 02, 2016 5:09 am
and must we put chapters "Questionnaire Requirement and Questionnaire testing" in separate .tex files or what? Is this the best method to create an appendix in a report document class consisting from 6 chapters and 3 long appendices each is composed of multiple figures and tables?

Stefan Kottwitz
Posts: 9450
Joined: Mon Mar 10, 2008 9:44 pm
Hi Ali,

welcome to the forum!

It is not necessary to put chapters in separate .tex files. The whole document can be a single .tex file.

It's just handy to use a file for each chapter and to use \include{filename} for including them in the main document. That's because you don't need to work with a huge file but split the work into small files for better handling. It's easy to comment out some \include (or to use \includeonly) so just the current chapter that you are working on is compiled.

Stefan

Ali Sultan
Posts: 12
Joined: Sun Oct 02, 2016 5:09 am
Thanks Stefan for your quick response. I agree that it is easier to put each chapter in a separate file and then call them in the main file which is exactly what I did. The problem is with appendices! I am still struggling with creating an appendix/appendices and call them in the main file as the case with chapters. Would you mind please provide a minimal code about how to create an appendix file and include it in the main file. Please include at least one figure and one table in the appendix file if possible. Should I save the created appendix file in the same folder with other chapters? Thanks again for your help

Stefan Kottwitz
Posts: 9450
Joined: Mon Mar 10, 2008 9:44 pm
There is no difference to normal chapters. Make chapters as files in the appendix exactly the same as normal chapters. LaTeX just treats them as appendix chapters because of the \appendix` command that starts an appendix. Then, the code makes normal chapters. LaTeX just uses letters for numbering and starts with A.

Stefan