Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How to get a list of appendices like the list of figures and list of tables? How to set it on a separate page, like the list of figures and list of tables?

share|improve this question
    
There are some related question to mine, I would read them :D first –  Verly Aug 28 '11 at 9:00
    
2  
You might want to consider accepting the best answer to this and to some of the other questions you've asked. You can do so by clicking on the check mark icon next to the selected answer. –  Gonzalo Medina Aug 29 '11 at 1:18

1 Answer 1

up vote 14 down vote accepted

I think that this post is not really the answer to Verly's question, as he doesn't seem to need a TOC for the appendix, merely a list of appendices like list of figures. It's the easiest way to use tocloft:

\documentclass{article}
\usepackage{tocloft}

\newcommand{\listappendicesname}{Appendices}
\newlistof{appendices}{apc}{\listappendicesname}
\newcommand{\appendices}[1]{\addcontentsline{apc}{appendices}{#1}}

\parindent0mm

\begin{document}

some text some text some text some text some text some text 

\appendices{appendix one} appendix  appendix appendix appendix appendix appendix

\appendices{appendix two} appendix  appendix appendix appendix appendix appendix

\appendices{appendix three} appendix  appendix appendix appendix appendix appendix

\appendices{appendix four} appendix  appendix appendix appendix appendix appendix

\listofappendices

\end{document}

Edit 1: If you want headings for the appendices, you may do something like this:

\documentclass[parskip]{scrartcl}
\usepackage{tocloft}

\newcommand{\listappendicesname}{Appendices}
\newlistof{appendices}{apc}{\listappendicesname}
\newcommand{\appendices}[1]{\addcontentsline{apc}{appendices}{#1}}

\newcommand{\newappendix}[1]{\section*{#1}\appendices{#1}}

\parindent0mm

\begin{document}

some text some text some text some text some text some text 
\newappendix{Appendix one} appendix  appendix appendix appendix appendix appendix
\newappendix{Appendix two} appendix  appendix appendix appendix appendix appendix
\newappendix{Appendix three} appendix  appendix appendix appendix appendix appendix
\newappendix{Appendix four} appendix  appendix appendix appendix appendix appendix

\listofappendices

\end{document}

This will produce something like this:

Appendices


Edit 2: for centered headings do it like this:

\documentclass[parskip]{scrreprt}
\usepackage[margin=15mm]{geometry}
\usepackage{tocloft}

\newcommand{\listappendicesname}{Appendices}
\newlistof{appendices}{apc}{\listappendicesname}
\newcommand{\appendices}[1]{\addcontentsline{apc}{appendices}{#1}}

\newcommand{\newappendix}[1]{\section*{#1}\appendices{#1}}

\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
  {-3.5ex \@plus -1ex \@minus -.2ex}%
  {2.3ex \@plus.2ex}%
  {\centering\normalfont\Large\bfseries}}
\makeatother

\parindent0mm

\begin{document}

some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text  
\newappendix{Appendix one} appendix  appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix 
\newappendix{Appendix two} appendix  appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix 
\newappendix{Appendix three} appendix  appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix 
\newappendix{Appendix four} appendix  appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix appendix 

\listofappendices

\end{document}

enter image description here


Edit 3: For a centered headline for the list of Appendices, change

\newcommand{\listappendicesname}{Appendices}

simply to

\newcommand{\listappendicesname}{\hfill Appendices \hfill}

and as we are at it, for aligned right:

\newcommand{\listappendicesname}{\hfill Appendices}
share|improve this answer
    
How to centering the title of Appendices ? –  Verly Sep 3 '11 at 5:26
    
sir, that was great answer, but how to centering the title of list appendix ? as to centering toc,lof,lot I do like this : '\renewcommand{\cfttoctitlefont}{\hfill\Large\bfseries\MakeUppercase}' '\renewcommand{\cftaftertoctitle}{\hfill}' –  Verly Sep 18 '11 at 16:12
    
adding \hfills before and after the headline will do –  Tom Bombadil Sep 19 '11 at 9:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.