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!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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
-
Tobias_Denmark
- Posts: 18
- Joined: Sun Jun 06, 2010 1:59 pm