General ⇒ Appendix possible in latex?
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.
Thanks in advance
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.
Thanks in advance
NEW: TikZ book now 40% off at Amazon.com for a short time.
Appendix possible in latex?
OK i have used the following commands:
it seems to the job, but im worried because this is what appears when im compiling the .tex file
how can i fix this problem?
Code: Select all
\appendix
\chapter{Questionnaire Requirement}
\chapter{Questionnaire Testing}
Code: Select all
! 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:
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Appendix possible in latex?
Hi,
it seems you typed \usepackage{appendix}, but that's not neccessary for an appendix. One small example:
Stefan
it seems you typed \usepackage{appendix}, but that's not neccessary for an appendix. One small example:
Code: Select all
\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}
Re: Appendix possible in latex?
cheers mate , works like a charm. your a star
-
- Posts: 12
- Joined: Sun Oct 02, 2016 5:09 am
Re: Appendix possible in latex?
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
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Appendix possible in latex?
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
Stefan
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
LaTeX.org admin
-
- Posts: 12
- Joined: Sun Oct 02, 2016 5:09 am
Re: Appendix possible in latex?
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
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Appendix possible in latex?
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
Stefan
\appendix
command that starts an appendix. Then, the code makes normal chapters. LaTeX just uses letters for numbering and starts with A.Stefan
LaTeX.org admin
-
- Posts: 12
- Joined: Sun Oct 02, 2016 5:09 am
Re: Appendix possible in latex?
Thanks again Stefan for your response. It worked:-) I just realized that I do have a typo error in the code which was causing the problem in reading figures of the appendices.