GeneralSeperate List of Appendices

LaTeX specific issues not fitting into one of the other forums of this category.
gbrauen
Posts: 1
Joined: Fri Feb 05, 2010 6:39 am

Seperate List of Appendices

Post by gbrauen »

Thanks to gmedina and S_David. This discussion helped me to figure out how I'm going to create a separate List of Appendices for my thesis. But in the end, the solution proposed here seemed more complicated than I need. I am using the book class which suits what I need. Going back to The LaTeX Companion (pg. 30-33), I came up with this.

Code: Select all

% define commands to create a separate list of appendices
\makeatletter

% define command to be inserted where the list is to be inserted - this creates
% an auxiliary file for the appendix list with a .app extension
\newcommand{\listofappendices}{\@starttoc{app}}

% define command to be used to insert an appendix string into the app
% table with entry type myappendix
\newcommand{\addtoappendixlist}[1]{\addcontentsline{app}{myappendix}{#1}}

% define the command actually used to start an Appendix - generate an
% unnumbered chapter header and then insert the string name into the table.
\newcommand{\appchapter}[1]{\chapter*{#1}\addtoappendixlist{#1}}

% define the required command needed to format a myappendix type entry in
% the table.  It uses the standard \@dottedtocline command to actually format
% the entry in the table.
\newcommand{\l@myappendix}[2]{\@dottedtocline{1}{1.5em}{2.3em}{#1}{#2}}
\makeatother
In the body of my document then, the List of Appendices is created using:

Code: Select all

\chapter*{List of Appendices}
\listofappendices
Then each appendix begins simply with:

Code: Select all

\appchapter{Appendix A: Some appendix-type material}
Glenn

Recommended reading 2024:

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

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

Post Reply