Text FormattingAdding Appendix to Table of Contents

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Re: Adding Appendix to Table of Contents

Post by west.logan »

! LaTeX Error: File `ucfthma.clo' not found
! LaTeX Error: File `ucfthti.clo' not found

I added those two files from the UCF website. Still running into errors at the "\makeintropages" command, I don't know why. However, I am no longer seeing "Chapter Chapter" so perhaps I can get somewhere now.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Re: Adding Appendix to Table of Contents

Post by west.logan »

After looking at it again and going through all the files, it looks to me like the \appendix command is working fine, and \@chapapp is being correctly changed. The fault (to me) looks like the section of code I pointed out before, where the word "CHAPTER" is hard-coded into the table of contents for each chapter-level entry. It typesets the word "chapter" and then whatever values are in the "addtocontents" command. This section appears to need redefinition. Perhaps there is something I'm missing but that's my take on it. Perhaps someone with more time can help.
ucf_436
Posts: 6
Joined: Mon Jun 06, 2011 7:15 pm

Re: Adding Appendix to Table of Contents

Post by ucf_436 »

I tried adding a section of code in the .tex file instead of changing the .cls file. The appendix appears on the Table of contents now but the formatting is all wrong. Can you help me fix that? I have attached a screenshot of the .tex file and the output of what I see. Thanks
This was the code which i added

\appendix
%\chapter{The First Appendix}
To make the appendix named Appendix: The First Appendix, change the above to:
\chapter*{APPENDIX A: Diffraction data for alpha-Alumina ($\alpha-Al_{2}O_{3}$)}
\addcontentsline{toc}{chapapp}{APPENDIX A: Diffraction data for alpha-Alumina ($\alpha-Al_{2}O_{3}$)}
\chaptermark{Appendix}
\markboth{Appendix}{Appendix}
Attachments
appendix.JPG
appendix.JPG (149.45 KiB) Viewed 3165 times
Post Reply