Text Formattingappendix | Appendix with Prefix in ToC

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
wes4829
Posts: 1
Joined: Sun Feb 19, 2012 7:51 pm

appendix | Appendix with Prefix in ToC

Post by wes4829 »

Hello,

I have been working for a long time on this and cannot figure it out so I thought I would try posting on here.

Right now I have my appendix style as this:

Code: Select all

\usepackage{appendix}
\newboolean{@@inappendix}
\newcommand{\@@appendixname}{Appendices}
\renewcommand{\appendix}{\par
  \setboolean{@@inappendix}{true}
  \setcounter{chapter}{0}%
  \setcounter{section}{0}%
%  \coversheet{\uppercase\expandafter{\@@appendixname}}  % REMOVE COVERSHEET
  \renewcommand{\@chapapp}{\appendixname}%
  \renewcommand{\thechapter}{\Alph{chapter}}
}
In the main body of the thesis I call the appendix like this:

Code: Select all

\appendix
\include{appendix1}
Then, in appendix1.tex I have the chapter name:

Code: Select all

\chapter{Flooding Test Graphs}
When I run the files, the output in the Table of Contents is:

A Flooding Test Graphs

I want it to say:

APPENDIX A: Flooding Test Graphs

Can anyone help me with this problem?
Last edited by Stefan Kottwitz on Sun Feb 19, 2012 8:17 pm, edited 1 time in total.

Recommended reading 2024:

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

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: appendix | Appendix with Prefix in ToC

Post by kaiserkarl13 »

Which document class are you using? If it's an article, they don't typically have chapters so you're getting a "Section 1" or "Section A" (section is implied, not explicit, of course) instead of "Appendix A" or "Chapter 1". Switching to the book or report classes might do what you want.

There is also an "appendix" package that makes it relatively easy to redefine appendix-related constructs.
Post Reply