Page LayoutList of Appendices

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
hiro
Posts: 3
Joined: Fri Nov 12, 2010 8:41 pm

List of Appendices

Post by hiro »

Hello,

I want to make a List of Appendices like below:

Table of Contents
Chap1......................1
Chap2......................10
Chap3......................20
Appendix...................30

List of Figure
Fig1.......................4
Fig2.......................7

List of Table
Tab1.......................10

List of Appendices
App1.......................30
App2.......................40

I searched same topics but could not figure out.
I tried appendix package, but it did not work.

Any suggestion would be appreciated

Thank you!

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

List of Appendices

Post by gmedina »

Hi,

you forgot to mention which document class you are using. The following solution should work with the standard classes book and report; in your code, use the \appcaption command immediately after each \chapter command corresponding to an appendix and use as mandatory argument the very same title of the appendix:

Code: Select all

\documentclass{book}

\newcommand\listappendixname{List of Appendices}
\newcommand\appcaption[1]{%
  \addcontentsline{app}{chapter}{#1}}
\makeatletter
\newcommand\listofappendices{%
  \chapter*{\listappendixname}\@starttoc{app}}
\makeatother

\begin{document}
\tableofcontents
\listofappendices

\chapter{Chapter one}
\chapter{Chapter two}

\appendix
\chapter{Appendix one}\appcaption{Appendix one}
...(contents of appendix one)...

\chapter{Appendix two}\appcaption{Appendix two}
...(contents of appendix two)...

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
hiro
Posts: 3
Joined: Fri Nov 12, 2010 8:41 pm

List of Appendices

Post by hiro »

Hi gmedina,

Thank you for your answer.
I'm using article document class.
Does your code work for it?

Thank you!
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

List of Appendices

Post by gmedina »

hiro wrote:...I'm using article document class.
Does your code work for it?
No. Change \chapter* to \section* in the definition of the \listofappendices command in my example code, and the command will work for the article class.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
hiro
Posts: 3
Joined: Fri Nov 12, 2010 8:41 pm

Re: List of Appendices

Post by hiro »

Hi gmedina,

Thanks, it works for article class document. :)

But I still have a problem. It lists all appendices in Table of Contents. But I want to show only the first page of Appendices.

How can I suppress all appendices to be shown in Table of contents, yet they are shown in List of Appendices?
I tried to modify \def\@part of article.cls, but it did not work.... :(

Thank you
Tobias_Denmark
Posts: 18
Joined: Sun Jun 06, 2010 1:59 pm

Re: List of Appendices

Post by Tobias_Denmark »

Hi, did you every manage to find a solution to your problem? I face the same problem now.
Post Reply