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.

I want my list of figures look like an ordinary chapter in my appendix. But right now my table of contents looks like this: enter image description here

This is how I add my list of figures:

\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures

Apparently \listoffigures uses \chapter* instead of \chapter. Basically I want the numbering to look like this:

Appendix
A. List of Figures
B. Appendix test chapter 1
C. Appendix test chapter 2

I tried using \patchcmd from etoolbox as suggested here but it had no effect.

\patchcmd{\listoffigures}{\chapter*}{\chapter}{}{}

Is it possible to do it like this? Is there a better way?

Edit: I just came up with the following hack:

\renewcommand\listfigurename{A. List of Figures}
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures
\setcounter{chapter}{1}

This fixes my table of contents but unfortunately the pdf bookmark for my list of figures is now name "A. List of Figures" as well but I want it to be simply "List of Figures".

Edit2 with MWE:

\documentclass{scrreprt}

\begin{document}

\tableofcontents{}

\chapter{Chapter 1}

\part{Appendix}

\appendix
\pagenumbering{Roman}

\listoffigures

\chapter{Appendix chapter 1}
\chapter{Appendix chapter 2}

\end{document}
share|improve this question
    
Can you at least tell what class you're using? A minimal working example (MWE) would be even better. –  egreg Mar 10 at 8:28
    
Sorry, forgot about that. I just started using Latex and I'm still a bit overwhelmed by all the features/classes ;) See my 2nd edit for an MWE. –  lukad Mar 10 at 8:42

2 Answers 2

up vote 5 down vote accepted

The scrreprt class already has the relevant feature:

\documentclass[listof=numbered]{scrreprt}

\begin{document}

\tableofcontents

\chapter{Chapter 1}

\cleardoublepage
\pagenumbering{Roman}
\appendix

\listoffigures

\chapter{Appendix chapter 1}
\chapter{Appendix chapter 2}

\end{document}

Add \cleardoublepage before changing the page numbering style (but the appendix with Roman page numbers is very unusual).

enter image description here

share|improve this answer
    
Thanks! I know the numbering style is unusual but it's required... –  lukad Mar 10 at 8:57

Based on my first edit I managed to fix my pdf bookmark problem using \texorpdfstring.

\renewcommand\listfigurename{A. List of Figures}
\addcontentsline{toc}{chapter}{\texorpdfstring{\listfigurename}{List of Figures}}
\listoffigures
\setcounter{chapter}{1}

Everything works now but I would still be interested in a prettier solution.

share|improve this answer

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.