Page Layout ⇒ List of Appendices
List of Appendices
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!
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
List of Appendices
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}
List of Appendices
Thank you for your answer.
I'm using article document class.
Does your code work for it?
Thank you!
List of Appendices
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.hiro wrote:...I'm using article document class.
Does your code work for it?
Re: List of Appendices
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
-
- Posts: 18
- Joined: Sun Jun 06, 2010 1:59 pm